EJB 2 and J2EE Packaging:
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html

I think you'll find your answers here. I haven't read them yet, but by
browsing through them it seems that they addresses your problem.

/kjetilhp

> -----Original Message-----
> From: Rickard [mailto:[EMAIL PROTECTED]]
> Sent: 10. januar 2002 15:17
> To: [EMAIL PROTECTED]
> Subject: Packaging problem
> 
> 
> I have a packaging problem that I'm curious how people get around.
> 
> My code consist of
> 1) EJB beans and interfaces
> 2) servlet layer JavaBeans
> 3) external libraries
> 
> Everything needs to be packaged into an EAR.
> 
> 2) references classes in 1), including the bean classes. And 
> that's the
> problem: I want to package the servlet layer stuff in /WEB-INF/classes
> in my WAR file, and my EJB's in an EJB-JAR file, but that just doesn't
> work, since then 2) then cannot see 1). If I package classes 
> in 1) in a
> jar and reference it from the EAR's manifest, then deployment of EJB's
> fail (using Orion at least) since the classes cannot be found in the
> EJB-JAR (which now only contains the DD).
> 
> One option would be to use the "alt-dd" in the module 
> description in the
> EAR DD, and keep all classes in one jar, but this whole 
> scheme seems broken.
> 
> And it seems it is the classloading logic used that messes things up,
> i.e. Java2 classloading. If I did things the way I *really* want it to
> work, i.e. keep servlet stuff in /WEB-INF/classes (or 
> /WEB-INF/lib) and
> EJB code in an EJB-JAR, then the classloading logic would have to be
> changed to a mode that allow loading of classes that are on a 
> "parallel"
> level and not necessarily "above" in the classloader hierarchy (i.e. a
> la JBoss 3.0).
> 
> Have others run into this problem? How did you solve it? Is 
> it solvable..?
> 
> /Rickard
> 
> -- Rickard �berg
> 
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and 
> include in the body
> of the message "signoff EJB-INTEREST".  For general help, 
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
> 

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to