But for me the issue is different for me. I have some applications in ROOT folder & after some time (2 to 3 hours) apparently the class is getting loaded from other jars (having the same class) are getting loaded from other webapps directory.
I guess it's related to class caching done at the class loader level. -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false. & -Xonclassgc both seems to work fine. But not sure about the implications. Auke Noppe wrote: > > Hi, > > > > I have an application that uses the embedded version of tomcat. > > In my classpath I have some jars that are the same as the webapp I deploy > in > tomcat. > > Now the problem is, that the webapp uses the jars from the classpath of > the > ‘root’ application and not the jars that the webapp has in his > classpath(e.g. libs dir). How can I prevent the webapplication from using > the jars from the ‘root’ application? > > I tried to start the program and tomcat with different classloaders, but > nothing changed. > > > > Regards, > > > > Auke > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.9/1155 - Release Date: > 27-11-2007 > 20:30 > > > -- View this message in context: http://www.nabble.com/Tomcat-and-ClassLoaders-tp13990806p19044611.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]