I am trying to avoid upgrade. This version was tested thoroughly and if I am not sure that this is a bug in tomcat, I prefer not to upgrade the tomcat since the upgrade is not trivial
-----Original Message----- From: Michal Singer Sent: ג 26 אפריל 2011 16:13 To: Tomcat Users List Subject: RE: problems with class loader on different web applications The problem is that some of the classes are loaded with the right class loader and some with the wrong (if it is a new class - it is loaded Correctly, if it is a class received from AMQ onMessage callback, a wrong class loader is used). And so, when I ask if one class is instanceof the other as I need to in the code, it returns false, and this causes problems. -----Original Message----- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: ג 26 אפריל 2011 15:40 To: Tomcat Users List Subject: RE: problems with class loader on different web applications > From: Michal Singer [mailto:michal.sin...@expand.com] > Subject: problems with class loader on different web applications > Hi, I am using tomcat 6.0.18. Move up - that's almost three years old, and lots of fixes have gone in since then. > The Thread.currentThread.getContextLoader() shows a wrong > class loader, that of the other web context. At what point are you looking? > This causes many problem. Such as? > If I create a new object the right class loader is used but > if I check the class loader of the thread it is a different > class loader. To be facetious - don't look. If classes are being loaded properly, what's the problem? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org