我无法使用最新的jhipster 3.0版运行jhipster应用程序

时间:2016-03-25 10:42:35

标签: jhipster

我使用新版本的jhipster 3.0,我创建了一个jhipster应用程序,当我运行我的应用程序时,我没有错误,但我的浏览器上没有显示任何东西,我无法理解这个问题。

我将我的应用程序导入intellij,然后从intellij运行它。 以下是我在intellij运行控制台中获得的内容:

 2016-03-25 01:39:33.675 DEBUG 3220 --- [nio-8080-exec-1]c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 01:39:33 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2016-03-25 01:39:33.736 DEBUG 3220 --- [nio-8080-exec-1] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null 2016-03-25 01:39:34.094 DEBUG 3220 --- [nio-8080-exec-1] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access 2016-03-25 01:39:39.922 DEBUG 3220 --- [nio-8080-exec-5] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 01:39:39 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]2016-03-25 01:39:39.923 DEBUG 3220 --- [nio-8080-exec-5] c.lyance.test.aop.logging.LoggingAspect : Exit:org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null 2016-03-25 01:39:39.923 DEBUG 3220 --- [nio-8080-exec-5] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access 2016-03-25 02:03:14.549 DEBUG 3220 --- [nio-8080-exec-6] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:11 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]2016-03-25 02:03:15.076 DEBUG 3220 --- [nio-8080-exec-6] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:15.620 DEBUG 3220 --- [nio-8080-exec-6] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:03:21.547 DEBUG 3220 --- [nio-8080-exec-9] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:21 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:03:21.548 DEBUG 3220 --- [nio-8080-exec-9] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:21.549 DEBUG 3220 --- [nio-8080-exec-9] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:03:31.991 DEBUG 3220 --- [nio-8080-exec-6] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:31 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:03:31.992 DEBUG 3220 --- [nio-8080-exec-6] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:31.992 DEBUG 3220 --- [nio-8080-exec-6] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:03:39.009 DEBUG 3220 --- [nio-8080-exec-2] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:39 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:03:39.009 DEBUG 3220 --- [nio-8080-exec-2] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:39.010 DEBUG 3220 --- [nio-8080-exec-2] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:03:43.700 DEBUG 3220 --- [nio-8080-exec-1] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:43 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:03:43.701 DEBUG 3220 --- [nio-8080-exec-1] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:43.701 DEBUG 3220 --- [nio-8080-exec-1] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:03:48.072 DEBUG 3220 --- [nio-8080-exec-9] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:48 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:03:48.072 DEBUG 3220 --- [nio-8080-exec-9] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:48.073 DEBUG 3220 --- [nio-8080-exec-9] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:03:51.393 DEBUG 3220 --- [nio-8080-exec-5] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:03:51 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:03:51.393 DEBUG 3220 --- [nio-8080-exec-5] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:03:51.421 DEBUG 3220 --- [nio-8080-exec-5] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:05:13.542 DEBUG 3220 --- [nio-8080-exec-7] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:05:13 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:05:13.543 DEBUG 3220 --- [nio-8080-exec-7] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:05:13.544 DEBUG 3220 --- [nio-8080-exec-7] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access
2016-03-25 02:05:19.580 DEBUG 3220 --- [nio-8080-exec-1] c.lyance.test.aop.logging.LoggingAspect : Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Fri Mar 25 02:05:19 GMT-08:00 2016, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
2016-03-25 02:05:19.581 DEBUG 3220 --- [nio-8080-exec-1] c.lyance.test.aop.logging.LoggingAspect : Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null
2016-03-25 02:05:19.582 DEBUG 3220 --- [nio-8080-exec-1] c.l.t.s.Http401UnauthorizedEntryPoint : Pre-authenticated entry point called. Rejecting access

这是.yo-rc.json文件的代码:

{
  "generator-jhipster": {
"jhipsterVersion": "3.0.0",
"baseName": "test2",
"packageName": "com.lyance.test",
"packageFolder": "com/lyance/test",
"serverPort": "8080",
"authenticationType": "oauth2",
"hibernateCache": "ehcache",
"clusteredHttpSession": "no",
"websocket": "spring-websocket",
"databaseType": "sql",
"devDatabaseType": "postgresql",
"prodDatabaseType": "postgresql",
"searchEngine": "no",
"buildTool": "maven",
"useSass": true,
"applicationType": "monolith",
"testFrameworks": [
  "gatling"
],
"enableTranslation": true,
"nativeLanguage": "fr",
"languages": [
  "fr"
]
  }
}

npm install&凉亭安装:

npm WARN optional Skipping failed optional dependency / chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture : fsevents@1.0.9

2 个答案:

答案 0 :(得分:0)

从您的.yo-rc.json文件中,我可以看到您使用SASS,很可能未生成CSS,请尝试运行gulp sass

同样对于您的开发人员工作流程,您应该考虑运行maven和gulp,如文档(使用Java服务器和Gulp)中所述:https://jhipster.github.io/development/

答案 1 :(得分:0)

你好@chouchato和@gaël-marziou 最近,我不得不面对chouchato的错误。我花了很多时间找到解决问题的方法。错误对我来说没有意义,我做了那些(很多)步骤,如试错,然后问题再也没有出现了:

npm = 3.8.9 node = 5.9.0

1)更新NPM
2)将所有npm包更新为LTS版本
3)更新yoeman包(现在1.8.1)
4)关注@gaël-marziou的建议:删除目录node_modules /和bower_components /
5)我必须运行npm rebuild来为Sass重新编译C ++包 6)跑npm install & bower install

就是这样。现在一切都像魅力一样。