Why does Throw NoClassDefFoundError exist when Tomcat finishes?

My project includes Apache commons-* library .
Throw an exception at the end of tomcat, without exception, if you run the default example.

Catalina :

INFO: Illegal Access: This web application instance has already been stopped. Failed to load org.apache.log4j.spi.ThrowableInformation. A possible next stack trace is caused by an error created for debugging purposes, as well as an attempt to terminate a thread that caused illegal access and has no functional impact.

INFO: Illegal Access: This web application instance has already been stopped. Failed to load org.apache.log4j.spi.ThrowableInformation. A possible next stack trace is caused by an error created for debugging purposes, as well as an attempt to terminate a thread that caused illegal access and has no functional impact.

 INFO: Destroying ProtocolHandler ["http-bio-8080"] Sep 24, 2012 4:00:14 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance ses ahas been stopped already. Could not load org.apache.commons.pool.impl.CursorableLinkedList$Cursor. The eventual following stack trace is caused by an error thrown for debugging purpos 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 org.apache.commons.pool.impl.CursorableLinkedList.cursor(CursorableLinkedList.java:305) at org.apache.commons.pool.impl.GenericObjectPool.evict(GenericObjectPool.java:1536) at org.apache.commons.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1749) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Exception in thread "Timer-0" java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/CursorableLinkedList$Cursor at org.apache.commons.pool.impl.CursorableLinkedList.cursor(CursorableLinkedList.java:305) at org.apache.commons.pool.impl.GenericObjectPool.evict(GenericObjectPool.java:1536) at org.apache.commons.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1749) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool.impl.CursorableLinkedList$Cursor at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) ... 5 more 
+5
source share
1 answer

For me, this problem disappeared after I stopped tomcat, deleted the extended military folder and started tomcat again.

0
source

Source: https://habr.com/ru/post/1435868/


All Articles