需要帮助解决错误消息

时间:2014-01-24 15:03:23

标签: grails

刚尝试部署.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

1 个答案:

答案 0 :(得分:3)

我没有看到任何错误消息,只有警告。而且一切都是无害的。例如,关于Ehcache的是标准的。如果您不提供自定义ehcache.xml,则默认为jar文件中的一个,并打印一些消息。您可以创建自己的 - 通常是默认文件的修改版本 - 并将其放在类路径的根目录中(grails-app / conf和src / java中的非Groovy文件被复制到类路径中,因此它是一个很好的位置)它将被替代使用。即使您只是保留文件中的默认值,这也是一个很好的建议,以便以后更容易配置。默认值相当保守,例如TTL默认只有2分钟。