-
1. Re: JBoss 4.0 EJB depending on external libraries
frito Dec 1, 2004 4:43 AM (in response to bjiang)Deploy your EJB jar and your dependency library within one EAR.
-
2. Re: JBoss 4.0 EJB depending on external libraries
frito Dec 1, 2004 4:57 AM (in response to bjiang)Addition:
in fact you can even just throw the dependency lib in you deploy directroy. But I would prefer the EAR. -
3. Re: JBoss 4.0 EJB depending on external libraries
j_ri Dec 6, 2004 3:57 AM (in response to bjiang)yes, you can just put it in the deploy dir, but then all deployed applications share that libraries.
putting the library in the ear doesn't work in JBoss 4.0.0 default configuration. it would only work, if you define the path to that library in the manifest class-path og your ejb jar-file. but then it gets loaded in the system classloader and not in the isolated classloader of the application.
I'm still looking for a solution......
cheers
jochen -
4. Re: JBoss 4.0 EJB depending on external libraries
chuisman9955 Dec 10, 2004 11:27 AM (in response to bjiang)Jochen, or anybody else
Have you figured this problem out? I am having the same problem.
Thanks,
Chris. -
5. Re: JBoss 4.0 EJB depending on external libraries
darranl Dec 10, 2004 11:32 AM (in response to bjiang)What is the same problem that you are experiencing?
Are you trying to make a library available to your components or are you trying to make a library available to your components whilst keeping the library confined the issolated classloader of your application? -
6. Re: JBoss 4.0 EJB depending on external libraries
j_ri Dec 13, 2004 2:32 AM (in response to bjiang)the second guess is what I'm trying to do.
I want to make a library available to my components and want to keep it isolated together with that component in its isolated classloader.
putting an entry in the manifest doesn't do this, right?
and having the library in the system classloader doesn't work. on one hand for isolation reason bewteeen different versions of the same libraries, on the other hand I get problems with the library dynamically loading classes from my components via reflection. -
7. Re: JBoss 4.0 EJB depending on external libraries
gquintana Dec 13, 2004 9:41 AM (in response to bjiang)I have the same problem. With JBoss 3.2, I placed my libraries jars in MyEJB.jar/META-INF/lib/ and it worked. But with JBoss 4.0.1RC2, the trick doesn't work anymore :-(
-
8. Re: JBoss 4.0 EJB depending on external libraries
roberto72 Dec 15, 2004 2:24 AM (in response to bjiang)Deploy your shared components in
/default/ dir packed in a .JAR (NOT .EAR)
files.
.JAR it's shared by classloader.
bye
Roberto Colmegna -
9. Re: JBoss 4.0 EJB depending on external libraries
j_ri Dec 15, 2004 3:14 AM (in response to bjiang)that's exactly what I do at the moment as temporary workaround.
but what can I do, if I have two different versions of that jar for two different applications (.ear files). each of that utility jar-files have to be in the classloader of the corresponding application.....
is it possible to have a "jboss-app.xml" file in a utility (not ejb) jar-file where I can set the same loader-repository as in the ear file? -
10. Re: JBoss 4.0 EJB depending on external libraries
tagman Dec 15, 2004 1:14 PM (in response to bjiang)Check out this page on Class Loading Configuration;
http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration -
11. Re: JBoss 4.0 EJB depending on external libraries
narayanrm Dec 16, 2004 7:16 AM (in response to bjiang)
If you are packaging in an ear in 4.0.0 try with
false
in the ear-deployer.xml