[Opensource] Ejb with expresso, classloader problem, pls help
Peter A. J. Pilgrim
peterp at xenonsoft.demon.co.uk
Mon Nov 18 10:51:49 PST 2002
Innovest Ken wrote:
> hi all,
>
> The problem comes when the ejb need to use the classes
> in expresso. NoClassDefFound exception occurs! I'm
> using Weblogic 7.0 with expresso 4.02. I have deployed
> 2 ejb on weblogic.
>
> So the workaround is: I set the system classpath to
> point to web-inf\classes to point to all the classes
> of expresso and also point to all the jar files in the
> lib of expresso. Then the error went away.
>
> I have read that the better way is to use manifest.mf
> files to point to the jar files shared between EJB and
> webApplication. But this can only be done if expresso
> can be created in war file. I tried to put expresso
> into war file but encounter deployment problems.
> Unless I put everything in expresso.ear file without
> any war file, then it works.
Yes.
I am not sure if this is the right answer.
You are supposed to be able to add to MANIFEST.MF to the
WAR file.
class-path: acmeejb.jar
Apparent this will allow classes in WAR file to access
EJBs packed in the `acmeejb.jar'. Not sure about the
other way around.
>
> Can anybody share his experience in deploying EJB with
> expresso? Did you also define your classpath in the
> startweblogic.cmd?
>
How are you finding EJB and Expresso?
--
Peter Pilgrim
ServerSide Java Specialist
My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
More information about the Opensource
mailing list