ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: ejbjar doesn't include dependent classes in jarfile?
Date Mon, 08 Jan 2001 23:01:02 GMT
Yes, ejbjar does not include support files at the moment. Support classes
continue to be difficult. If they are shared across beans and those beans
are in separate jars, then should they be in each jar? I don't find that
very nice. In my particular case, we leave them out of the ejb-jars and
include them as a separate jar. That works for us but it may not be the way
other people want to build their jars. Therefore, I will shortly be adding a
<support> element to ejbjar that will allow you to include arbitrary classes
and resources from a fileset. Any feedback on that feature is welcome.


Conor MacNeill
Cortex eBusiness

> -----Original Message-----
> From: Mount, Dave []
> Sent: Tuesday, 9 January 2001 5:00
> To: ''
> Subject: RE: ejbjar doesn't include dependent classes in jarfile?
> I noticed the same thing, but I thought it was a nice feature of
> Ant that it
> doesn't need to include all of the dependencies to run ejbc on
> the EJB jar.
> WebLogic seems to be okay with this as long as the dependency classes are
> found in the WebLogic classpath (I use POST_CLASSPATH in the
> startWebLogic.cmd script).  The hypothesis around here is that WebLogic's
> class loader let's us get away with that.
> On the other hand, it has always seemed weird to have to include custom
> dependency classes, whereas you don't have to include JDK classes, for
> example.
> And yes, before I started using Ant (two weeks ago), my build
> scripts would
> unjar my custom libraries into an temp EJB directory along with deployment
> descriptors, then re-jar and ejbc the whole thing.  With multiple EJBs all
> depending on my custom library, it meant lots of duplication,
> which doesn't
> settle too well.
> -Dave Mount
> -----Original Message-----
> From: Ed Staub []
> Sent: Monday, January 08, 2001 8:22 AM
> To: ''
> Subject: ejbjar doesn't include dependent classes in jarfile?
> It looks like ejbjar only includes .class files which are
> explicitly called
> for in the deployment descriptor.
> I have dependent .class files which I need to include also.
> I would have thought that this is a very common case.
> Am I correct about ejbjar?
> If so, how do other people handle this?  Unjar and rejar with the missing
> pieces?
> Thanks,
> -Ed Staub

View raw message