[jboss-user] [Installation, Configuration & DEPLOYMENT] - classloader problem with a ear + sar inside
DeMarco2
do-not-reply at jboss.com
Thu Sep 25 07:42:51 EDT 2008
Hi jboss specialists.
I try to deploy an ear containg 1 sar 1 ejb and multible shared jars.
I try the follwing structure of the ear:
app.ear
|
|--- META-INF
| |
| |--- application.xml
| |--- jboss-app.xml
|
|--- lib
| |
| |--- lib1.jar
| |--- lib2.jar
| |--- .....
|
|--- service.sar
|--- ejb.jar
The service.sar also contains some jar-files which only should by loaded by the sar-classes. So the sar-file and it's packages should be loaded in seperate classloader.
For that reason, the sar file also contains a jboss-app.xml with the following entry:
<loader-repository>com.test.app:loader=service.sar</loader-repository>
If I deploy the sar-file standalone to jboss, this works fantastic. I see in the jmx-console that a new loader-repository is created.
But if I try to pack the sar in ear, no loader-repository is created for the sar-file!!!
So why is this entry in this way ignored?
The loader-repository entry in the jboss-app.xml of the ear does not help, because both ejb and sar should run in a different repositorys. the ejb-.jar must run in
the ucl because it uses some libraries of the common jboss lib-path.
You are asking why everything is packed together in the same ear-file? Both (sar and ear) share libraries (in a special version) in a in the lib path, and they should only deployed once...
Thanks for help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178769#4178769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178769
More information about the jboss-user
mailing list