znerd / xins

XML Interface for Network Services
http://xins.sourceforge.net/
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

ExpiryStrategy thread continues after webapp died #12

Open znerd opened 14 years ago

znerd commented 14 years ago

Here is an message I noticed in the log, with XINS 3.0-beta2-dev (very very close to -beta1, probably same line numbers):

30-apr-2010 22:47:24 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.log4j.spi.NOPLoggerRepository.  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:1273)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
    at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:175)
    at org.apache.log4j.LogManager.getLogger(LogManager.java:199)
    at org.apache.log4j.Logger.getLogger(Logger.java:105)
    at org.xins.common.Log.log_1406(Log.java:1092)
    at org.xins.common.collections.expiry.ExpiryStrategy$TimerThread.run(ExpiryStrategy.java:391)
Exception in thread "org.xins.common.collections.expiry.ExpiryStrategy # 0 [timeOut=3600000L; precision=180000L] timer thread" java.lang.NoClassDefFoundError: org/apache/log4j/spi/NOPLoggerRepository
    at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:175)
    at org.apache.log4j.LogManager.getLogger(LogManager.java:199)
    at org.apache.log4j.Logger.getLogger(Logger.java:105)
    at org.xins.common.Log.log_1406(Log.java:1092)
    at org.xins.common.collections.expiry.ExpiryStrategy$TimerThread.run(ExpiryStrategy.java:391)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.spi.NOPLoggerRepository
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
    ... 5 more