简体   繁体   English

JBoss EAP 6中的Grails 3应用为404

[英]Grails 3 app is 404 in JBoss EAP 6

If I create a new web profile app, and generate-all, it runs fine in my local and deploys without error to JBoss. 如果我创建一个新的Web配置文件应用程序并生成所有应用程序,它将在我的本地运行良好,并没有错误地部署到JBoss。 But when I try to access the app all URLs return 404. I know the app started up successfully, because it created tables in the database. 但是,当我尝试访问该应用程序时,所有URL均返回404。我知道该应用程序已成功启动,因为它在数据库中创建了表。

Here's what I'm doing. 这就是我在做什么。

  1. grails 3.1.4> create-app demo grails 3.1.4>创建应用演示
  2. create-domain-class Book 创建域类的书
  3. create-domain-class Author 创建域类作者
  4. Edit domain classes 编辑域类
  5. generate-all * 全部生成*
  6. change tomcat dependency from compile to provided in build.gradle 将tomcat依赖项从compile更改为build.gradle中提供的
  7. change dataSource in application.yml to use my JNDI Oracle connection 更改application.yml中的dataSource以使用我的JNDI Oracle连接
  8. Add server: contextPath: /demo to application.yml 将服务器:contextPath:/ demo添加到application.yml
  9. run-app -> Works 运行应用程序->作品
  10. gradle war dle战
  11. Deploy to JBoss EAP 6.4.0.GA 部署到JBoss EAP 6.4.0.GA

JBoss says deployment and activation of the app was successful. JBoss说,该应用程序的部署和激活已成功。 There are no errors of any sort in any JBoss log file. JBoss日志文件中没有任何类型的错误。 And dbCreate: update made the DDL changes to my Oracle database, so I know it got that far. dbCreate:update对我的Oracle数据库进行了DDL更改,所以我知道它已经到了。 But all URLs for the app return 404. 但是该应用程序的所有URL都返回404。

This is a known bug: Issue-9481 这是一个已知的错误: Issue-9481

It has been added to grails 3.1.5 milestone. 它已添加到grails 3.1.5里程碑中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM