Tomcat 404页面错误

Tomcat 404 page error

我在 tomcat 下部署我的应用程序时出现 404 页面,日志中的启动期间没有错误,一切似乎都很正常,但是当我尝试在 Web 浏览器中访问应用程序时,它显示 404 tomcat 错误页面,有没有人遇到过类似的错误?以下是有关环境的详细信息。

圣杯:

$ grails -version
| Grails Version: 3.1.5
| Groovy Version: 2.4.6
| JVM Version: 1.8.0_111

JAVA:

$ java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

$ javac -version
javac 1.8.0_111

TOMCAT:

$ /opt/tomcat/bin/catalina.sh version
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Server version: Apache Tomcat/8.0.35
Server built:   May 11 2016 21:57:08 UTC
Server number:  8.0.35.0
OS Name:        Linux
OS Version:     3.10.0-327.36.3.el7.x86_64
Architecture:   amd64
JVM Version:    1.8.0_111-b15
JVM Vendor:     Oracle Corporation

这是 Grails 3.2.0 的问题,记录在案并在 Grails 3.2.2 中解决。

Grails 404 with Tomcat 3.2.0

build.gradle 中删除以下行后它起作用了。

compile "org.grails:grails-plugin-rest"     
compile "org.grails:grails-plugin-interceptors"     
compile "org.grails:grails-plugin-services"     
compile "org.grails:grails-plugin-datasource"       
compile "org.grails:grails-plugin-databinding"      
compile "org.grails:grails-plugin-async"        
compile "org.grails:grails-logging"     
provided "org.grails:grails-plugin-domain-class"