Tomcat 404页面错误



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

GRAILS:

$ 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中解决了这个问题。

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"

相关内容

  • 没有找到相关文章

最新更新