2016-11-15 138 views
0

我在使用tomcat部署我的應用程序時遇到了404頁面,在日誌啓動過程中沒有錯誤,每個事情看起來都很正常,但是當我嘗試在Web瀏覽器中訪問應用程序時,它給出了404 tomcat錯誤頁面,面臨類似的錯誤?以下是關於環境的細節。Tomcat 404頁面錯誤

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 
+0

您使用的是什麼版本的grails? Grails 3.2.0有一個已知的問題。請嘗試改爲使用Grails 3.2.2。 – Joe

+0

我正在使用grails 3.1.5添加,使用grails信息更新了我的文章。 – mehmood

回答

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" 
0

下面是使用Grails 3.2.0的問題與解決方法記錄,並解決了Grails的3.2。 2。

Grails 404 with Tomcat 3.2.0

+0

我以前看過這個帖子,沒有幫助。我的build.gradle中沒有groovy-ant依賴。 – mehmood