Hi,

During deploying some applications on JBoss I've discovered following
interesting thing :

Suppose I have this structure in my ear file :
- test.jar (simple session bean - not used at all in this case)
- test.war (one simple servlet)
- META-INF folder with application.xml file.

1) If my servlet class is placed ONLY in test.war, then the classloader
for the servlet is : AdaptiveClassLoader (normal case, I assume);
2) If I place my servlet ALSO in test.jar (let's say by mistake), then
the classloader for the servlet is : java.net.URLClassLoader@4df764
3) If I place my servlet ONLY in test.jar, then the classloader for the
servlet is (again) : java.net.URLClassLoader@4df764

Question is : why servlet is taken from .jar and not from .war archive
for case #2 ? Why servlet is found in case #3 after all ?

Is there anything that I'm missing here, or is this a bug ?

I hope someone could help me.

I'm using : Windows NT 4.0, JDK 1.3.1, JBoss 2.2.1-Tomcat (and also
JBoss 2.2.2-Tomcat).

For testing I attached to this mail following ear archives : testW.ear
(for case #1), testJW.ear (fro case #2), testJ.ear (for case #3).
A simple test is to point the browser to : http://localhost:8080/mytest/
and see the information in JBoss console.

Thank you in advance,

Remus.

testW.ear

testJW.ear

testJ.ear

Reply via email to