Yes, put your common classes in the EJB JAR.

EJB JAR's can't see classes in your WAR.
WAR's can see classes in your EJB JAR.

-mike

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Josh P Motto
> Sent: Saturday, March 17, 2001 10:21 PM
> To: Orion-Interest
> Subject: REFERENCE WAR CLASSES FROM EJB-JAR FILES
>
>
> Hello,
> Can anyone help me with this quick question?
>
> I developed several javabeans (not ejb) that I use to pass data
> to and from
> my EJBs from servlets and Custom Tag Libraries... IE address.java contains
> the standard address address fields like street city, etc.
>
> I store these "pass by value" regular javabeans in the same directory tree
> as my servlets - and they get compiled successfully into a war file, and
> then I compile my EJBs into several Jar files, and finally into
> an EAR file.
>
> However, when starting orion, I get a NoClassDefFoundError indicating that
> the EJB jar file cannot succesully import the javabean package
> into the from
> the web war file into the ejb.jar file.
>
> My question:  IS IT POSSIBLE TO IMPORT (reference) WEB WAR CLASSES (IE
> REGULAR JAVABEANS) STORED IN THE SAME FOLDER AS SERVLETS INTO EJBS (ie war
> file)?????
>
> THANK YOU VERY MUCH!!!!
>
>
>
> HERE IS THE ERROR
>
> Auto-deploying usr-ejb.jar (No previous deployment found)...
> java.lang.NoClassDefFoundError: com/taskpro/web/usr/UsrLoginCredentia
> lsPBV
>         at java.lang.Class.getMethods0(Native Method)
>         at java.lang.Class.getMethods(Class.java:742)
>         at com.evermind.server.ejb.compilation.gb.ah8(JAX)
>         at com.evermind.server.ejb.compilation.fm.s_(JAX)
>         at com.evermind.server.ejb.compilation.ga.s_(JAX)
>         at com.evermind.server.ejb.EJBContainer.bz(JAX)
>         at com.evermind.server.Application.bz(JAX)
>         at com.evermind.server.Application.gf(JAX)
>         at com.evermind.server.ApplicationServer.rv(JAX)
>         at com.evermind.server.ApplicationServer.aqb(JAX)
>         at com.evermind.server.ApplicationServer.gf(JAX)
>         at com.evermind.server.hg.run(JAX)
>         at java.lang.Thread.run(Thread.java:484)
>         at com.evermind.util.f.run(JAX)
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>


Reply via email to