tomcat 部署出现的错误解决

错误信息:

11-Jul-2018 07:03:00.001 INFO [cron4j::scheduler[6353d5ec1d26517f0ef247c600000164866ed5f947383a37]::launcher[6353d5ec1d26517f3ac6bc9e00000164866f04a03b0f07e5]] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [it.sauronsoftware.cron4j.TaskTable]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [it.sauronsoftware.cron4j.TaskTable]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1372)
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1360)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1219)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(Unknown Source)
        at it.sauronsoftware.cron4j.LauncherThread.run(Unknown Source)


Exception in thread "cron4j::scheduler[6353d5ec1d26517f0ef247c600000164866ed5f947383a37]::launcher[6353d5ec1d26517f3ac6bc9e00000164866f04a03b0f07e5]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(Unknown Source)
        at it.sauronsoftware.cron4j.LauncherThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [it.sauronsoftware.cron4j.TaskTable]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1362)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1219)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
        ... 2 more
Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [it.sauronsoftware.cron4j.TaskTable]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1372)
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1360)
        ... 4 more
Exception in thread "cron4j::scheduler[6353d5ec1d26517f0ef247c600000164866ed5f947383a37]::launcher[6353d5ec1d26517f3ac6bc9e00000164866fef0020ea99f9]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(Unknown Source)

        at it.sauronsoftware.cron4j.LauncherThread.run(Unknown Source)


解决:tomcat版本过高,war包中依赖的jar不匹配导致的该问题。降低tomcat版本号,问题解决。。。

猜你喜欢

转载自blog.csdn.net/JoeFan_Fan/article/details/80987257