JBoss 3.0.1 Problem using Manifest.mf???
dgantenbein Jul 28, 2002 8:43 PMHi -
I am using JBoss 3.0.1 RC1. I am having a strange problem that seems to indicate that my manifest.mf files are ignored (or incorrectly specified) when deploying my ears. I have two ears that each deploy the same util.jar. Running the first ear gets the correct util.jar classes. Next, running the second ear shows that its util.jar classes are from the first ear!
Here is a description of my two ears that are deployed.
app1.ear:
....META-INF/application.xml: modules ejb1.jar, web1.war
....ejb1.jar:
.......META-INF/ejb-jar.xml: contains <ejb-client-jar>ejb1_client.jar<ejb-client-jar>
.......META-INF/Manifest.mf: Class-Path: ./library/ejb1_client.jar
....web1.war:
........WEB-INF/lib/ejb1_client.jar
........WEB-INF/web.xml
........WEB-INF/jboss-web.xml
....library:
........ebj1_client.jar:
............META-INF/Manifest.mf: Class-Path: ./util.jar
........util.jar:
app2.ear:
....META-INF/application.xml: modules ejb2.jar, web2.jar
....ejb2.jar:
........META-INF/ejb-jar.xml: contains <ejb-client-jar>ejb2_client.jar<ejb-client-jar>
........META-INF/Manifest.mf: Class-Path: ./library2/ejb2_client.jar
....web2.war:
........WEB-INF/lib/ejb2_client.jar
........WEB-INF/web.xml
........WEB-INF/jboss-web.xml
....library2:
........ebj_client.jar:
............META-INF/Manifest.mf: Class-Path: ./util.jar
........util.jar:
If I run the cactus tests on app1.ear first, then the classes in util.jar show the class loader as app1.ear/71.app1.ear-contents/library/ejb1_client.jar. Next, I run the a servlet in app2.ear, then the classes in util jar show the previous class loader as ebj1_client.jar. Therfore, the util.jar packaged in my app2.ear is never being used.
Also if I reverse my test order and run app2 and then app1. I see that util.jar from app1.ear is never used.
I would like to keep my two applications independent of each other. Each application using its own version of util.jar. How can I do this?
Any help is greatly appreciated. THANKS!
Dorothy