2014-01-24 224 views
0

試圖部署.war文件並收到此錯誤消息。這讓我感到非常意外,因爲我剛剛在前一天部署了一個.war文件,並且兩者之間的變化很小(更改了跟蹤日期的變量的值,直到cron作業執行)。我確實忽略了IntelliJ創建的自動生成的.iml文件,可以這樣做嗎?需要幫助解決錯誤信息

'2014-01-24 08:47:45,480 [Thread-10] WARN config.ConfigurationFactory - No configuration found. Configuring ehcac            he from ehcache-failsafe.xml found in the classpath: jar:file:/var/opt/tomcat/webapps/PerformanceEvaluations-moved            /WEB-INF/lib/ehcache-core-2.4.6.jar!/ehcache-failsafe.xml 
''2014-01-24 08:47:46,117 [Thread-10] WARN hibernate.AbstractEhcacheRegionFactory - Couldn't find a specific ehca            che configuration for cache named [edu.wisc.radiology.performanceevaluations.Role]; using defaults. 
' ==> PerformanceEvaluations_main.log <== '2014-01-24 08:47:45,480 [Thread-10] WARN config.ConfigurationFactory - No configuration found. Configuring ehcac            he from ehcache-failsafe.xml found in the classpath: jar:file:/var/opt/tomcat/webapps/PerformanceEvaluations-moved            /WEB-INF/lib/ehcache-core-2.4.6.jar!/ehcache-failsafe.xml 
''2014-01-24 08:47:46,117 [Thread-10] WARN hibernate.AbstractEhcacheRegionFactory - Couldn't find a specific ehca            che configuration for cache named [edu.wisc.radiology.performanceevaluations.Role]; using defaults. 
' ==> catalina.out <== 
'2014-01-24 08:47:49,046 [Thread-10] WARN servlet.DefaultGrailsApplicationAttributes - ApplicationContext not fou            nd in org.codehaus.groovy.grails.APPLICATION_CONTEXT attribute of servlet context. 
' ==> PerformanceEvaluations_main.log <== 
'2014-01-24 08:47:49,046 [Thread-10] WARN servlet.DefaultGrailsApplicationAttributes - ApplicationContext not fou            nd in org.codehaus.groovy.grails.APPLICATION_CONTEXT attribute of servlet context. 
' ==> catalina.out <== 
'2014-01-24 08:47:50,112 [Thread-10] WARN module.ModuleDeclarationsFactory - 'grails.resources.modules' in config            does not define any modules 
'==> PerformanceEvaluations_main.log <== 
'2014-01-24 08:47:50,112 [Thread-10] WARN module.ModuleDeclarationsFactory - 'grails.resources.modules' in config            does not define any modules 
' ==> catalina.out <== 
Parsing DB Changelog 
+0

發現此帖子 http://grails.1312388.n4.nabble.com/Unsolvable-warnings-due-to-db-reverse-engineer-plugin-td4427619.html – paul

+0

這似乎有一個類似的問題,問題是錯誤日誌記錄太高 – paul

回答

3

我看不到任何錯誤消息,只有警告。而且都是無害的。例如關於Ehcache的標準。如果你沒有提供自定義的ehcache.xml,它默認爲jar文件中的一個,並打印出一些消息。您可以創建自己的 - 通常是默認文件的修改版本 - 並將其放入類路徑的根目錄中(grails-app/conf和src/java中的非Groovy文件將被複制到類路徑中,所以它是一個很好的位置),它將被用來代替。即使您只是在文件中保留默認值,這也是一個很好的做法,以便稍後進行配置。默認值是比較保守的,例如TTL默認只有2分鐘。

+0

感謝burt,你對你的帖子和編輯有幫助 – paul