Hi,
I built an EAR (on WebLogic) that contains 2 session EJB which share
some common Java classes (utility methods for example).
I made a .jar with the .class of the common classes and I put it in
directory META-INF/lib of the EAR.
For the EJB to find the common library, I added the following line in
the MANIFEST.MF of the .jar of the EAR :
Class-Path: META-INF/lib
But when deploying on WebLogic, the EJB cannot find the common classes.
What goes wrong ?
I tried to put the .class directly in the EJB (duplicating the shared
classes) but it did not work.
I also tried to modify the MANIFEST.MF of the .jar of the EJB but it did
not work neither.
Thanks for your help.
Marc
Nedim Cholich - 20 Jan 2004 01:52 GMT
Jaring all shared classes and putting that jar in the root of an ear
file will work for sure.
What version of WS are you using? WS has had various classloader problems.
> Hi,
>
[quoted text clipped - 18 lines]
> Thanks for your help.
> Marc
Nedim Cholich - 20 Jan 2004 01:53 GMT
Jaring all shared classes and putting that jar in the root of an ear
file will work for sure.
What version of WS are you using? WS has had various classloader problems.
> Hi,
>
[quoted text clipped - 18 lines]
> Thanks for your help.
> Marc
Doug Pardee - 21 Jan 2004 04:56 GMT
> I built an EAR (on WebLogic) that contains 2 session EJB which share
> some common Java classes (utility methods for example).
[quoted text clipped - 6 lines]
> Class-Path: META-INF/lib
> But when deploying on WebLogic, the EJB cannot find the common classes.
You are close. The Manifest Class-Path must give the actual Jarfile
name (the same as in an ordinary classpath):
Class-Path: META-INF/lib/mycommon.jar
or whatever you called your Jar file.