Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法加载net.sf.ehcache.store.component.CompoundStore$KeySet。在Tomcat7.0.42应用程序上部署Grails2.5时_Java_Tomcat_Grails - Fatal编程技术网

Java 无法加载net.sf.ehcache.store.component.CompoundStore$KeySet。在Tomcat7.0.42应用程序上部署Grails2.5时

Java 无法加载net.sf.ehcache.store.component.CompoundStore$KeySet。在Tomcat7.0.42应用程序上部署Grails2.5时,java,tomcat,grails,Java,Tomcat,Grails,在Tomcat7.0.42上部署Grails2.5.0应用程序时,我发现了以下问题 INFO: Illegal access: this web application instance has been stopped already. Could not load net.sf.ehcache.store.compound.CompoundStore$KeySet. The eventual following stack trace is caused by an error thrown

在Tomcat7.0.42上部署Grails2.5.0应用程序时,我发现了以下问题

INFO: Illegal access: this web application instance has been stopped already. Could not load net.sf.ehcache.store.compound.CompoundStore$KeySet. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
        at net.sf.ehcache.store.compound.CompoundStore.keySet(CompoundStore.java:216)
        at net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.run(DiskStorageFactory.java:670)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
通过RunAppGrails应用程序运行应用程序可以正常工作!我意识到Tomcat版本之间存在差异,嵌入式版本是内置的:Tomcat:7.0.54,环境是Apache Tomcat/7.0.42


我在建议的“降级”版本中发现了最接近的问题,目前这不是一个可行的解决方案!哪个可能是这个问题的原因?tomcat或应用程序版本中存在错误?

是否升级正在运行的tomcat?您部署到的tomcat比构建配置中的要旧,所以您肯定应该升级tomcat而不是降级构建配置吗?