tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Rataj" <arturra...@gmail.com>
Subject STrange problem with a thread made in Servlet.init()
Date Wed, 22 Feb 2006 16:33:07 GMT
I made a servlet that starts on startup, and in its init() method a
new thread is started. The thread reads from a FS and uses JDBC, yet,
it does not work, as many errors similar to that occur:

Feb 22, 2006 5:26:27 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load java.util.Scanner.  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:1238)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at org.algstoch.trafficlogger.Logger.<init>(Logger.java:50)
        at logger.LoggerThread.run(LoggerThread.java:35)


If the same thread is run outside webapp, it works ok.

What can it be?

Best regards,
Artur

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message