Bugs item #688624, was opened at 2003-02-18 14:20 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=688624&group_id=22866
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Rami H�nninen (rajualf) Assigned to: Nobody/Anonymous (nobody) Summary: Classloader mixes static objects Initial Comment: JBoss Release: JBoss-3.0.4 CVSTag=JBoss_3_0_4 Java version: 1.3.1_01,Sun Microsystems Inc. Java VM: Java HotSpot(TM) Server VM 1.3.1_01,Sun Microsystems Inc. OS-System: Linux 2.4.18-3,i386 While running several versions of closely related Web Applications in a JBoss server, I found out that JBoss classloaders mix static method invokations and data accross different web applications. The problem occurs at least in jboss-3.0.4_tomcat-4.0.6 and jboss-3.0.0_tomcat-4.0.3. The problem manifests itself when the server contains two web applications that both contain a different version of the same class, and the classes contain the same static method, and a different version of the same private static final object. The bug is, that if the static methods reference the private static final object, they always get a reference to the object from the class residing in the application THAT WAS DEPLOYED FIRST. The method in the class residing in the application deployed last gets therefore access to an invalid object, taken from a wrong web application scope. Included is a tar-ball containing two simple WAR -files that demonstrate the problem. Please deploy 'a.war' first, and note that 'http:/localhost/a' reports a string originating from application 'A'. Deploy then 'b.war', and note, that 'http:/localhost/b' reports that the is string also originates from application 'A' (should be 'B'). Remove then both, and deploy first 'B' and then 'A' to reverse the situation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=688624&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
