tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Illegal access: this web application instance has been stopped already and NoClassDefFoundError
Date Mon, 10 Jun 2013 14:18:10 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Bob,

On 6/8/13 11:14 PM, ruxing bao wrote:
> I'am using Zookeeper client API in java web application.When I shut
> down tomcat,I am getting this error :
> 
> 
> 
> 2013-06-07 12:01:29,676 ERROR [org.apache.zookeeper.ClientCnxn]
> (xxx-startStop-1-SendThread(xxx.net:12183)) from
> xxx-startStop-1-SendThread(xxx.net:12183) 
> java.lang.NoClassDefFoundError:
> org/apache/zookeeper/server/ZooTrace at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1115)
>
> 
Caused by: java.lang.ClassNotFoundException:
org.apache.zookeeper.server.ZooTrace
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
>
> 
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
> ... 1 more
> 
> 
> 
> 
> at the same time,the following is also in catalina.out:
> 
> 
> 
> INFO: Illegal access: this web application instance has been
> stopped already.  Could not load
> org.apache.zookeeper.server.ZooTrace.  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:1597)
>
> 
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
> at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1115)
>
> 
> 
> 
> I searched google and mail list ,couldn't find any solution,please
> help me.
> 
> 
> Enviroment info:
> 
> JDK:1.6.0_45
> 
> Tomcat:7.0.40
> 
> Zookeeper:3.4.5

Can you give us any more of the stack trace? It looks like this is
happening during shutdown, but all the ServletContextListeners should
complete before the WebappClassLoader starts shedding its loaded classes.

Are you explicitly shutting-down the ClientCnxn thread in a SCL's
destroy() method? If not, you need to do that.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRteAiAAoJEBzwKT+lPKRY/74P/j1a6Q1VcLTR6gfvw87IcxM1
nq25eAb33r6YU7vAYAbRgSLdC3EvHrmDLS+R4BTSwAkMxdeciivAgRFHpCvaJRJZ
/LyP2dBUkxGolIHK5GMMheCdWJlSR4cRKUBPZLYiMs58fxgsTLblS0PCS+Dbkvkr
zVIU5taOHiMyCoAtH4TKflFIULGxqk/jknvct3s4928Wtf/lOVuKZ9JXPTo9uudl
BfMG+ZI+bmXBNZtwUI7mEsVhACEqCowS++y65F3sgFTBF+RV/6YqjHk63lCG6CLM
J8NVlPj+TTd/Tnu9bywAP+I1BpC8PqoctTSfwbVb2iwaAZbkzsR2qVpo1wkHeO4J
ybCzhKDtKIVh8oTRnwl+zVBaefJ+PIQg8IjNlEJZqi4BnU5nCiYJATKHOPz6XoYZ
wm7pQDjbMs7TTFZyXbP24TwK/35ZB2yykiiey/CAfJIfa26pT5/WqG1tQSumFfMt
8pqYf3MrEigtylMG1LrAHl3Cou/a2jzro9bCKJMJXA2hNQDUUlyXf9m8EO2tgu1m
deAuF/BA/AurMF8QtGmS9RqtrK6QGFe2SrEvVE5rNi9U0kC1tmFoInZ+HGa8ROM1
tTsj7ju4ETuG5JyeWTYEJyUeiH9gasGYCwn8ZYOnT3HomOldDFYtrwOZEnJ8m9Fy
2WrgP4n4/k9GzUeaK1/T
=us8T
-----END PGP SIGNATURE-----

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


Mime
View raw message