tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Major Tomcat classloading issues with javaagent command line switch
Date Wed, 07 Apr 2010 00:48:35 GMT
2010/4/7 Arshan Dabirsiaghi <>:
> Just to close the loop here, the problem was that the class was being loaded twice -
once from inside the *agent* jar, and another duplicate later from WEB-INF/classes. I guess
Tomcat or Java was confused as to which version they wanted to use. Not 100% sure what happened,
but removing it from the agent jar fixed the problem.

The servlet spec requires that the webapp classes and libraries were
preferred over the ones provided by Tomcat. More details in [1]    At
the same time, web applications are short-lived and can be stopped /
undeployed at any time, at which point their classloader and their
classes become unavailable.  Using those for something that is
JVM-wide may lead to leaked memory at best, or do not work at all.


Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message