ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wieser Daniel <Daniel.Wie...@softlab.de>
Subject RE: <ejbjar>, <ejb-ref> Problem
Date Fri, 12 Jan 2001 12:26:32 GMT
Conor,

so far so good, but do I misunderstood something (or I'm too stupid)? 
I don't know how to change my descriptor. You wouldn't have an example?

Daniel

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cognet.com.au]
> Sent: Friday, January 12, 2001 12:20 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: <ejbjar>, <ejb-ref> Problem
> 
> 
> Daniel,
> 
> In Ant 1.2, ejbjar would find the CMP descriptor by assuming 
> it had the
> same naming scheme as that of your ejb-jar and 
> weblogic-ejb-jar deployment
> descriptors. It would then map that, within the generated jar 
> file, to a
> name, "weblogic-cmp-rdbms-jar.xml". That scheme is not vey 
> nice for two
> reasons
> 
> 1. you can't have more than one CMP descriptor for the ejb-jar file
> 2. Your weblogic descriptor needs to refer to the CMP 
> descriptor by the
> name "weblogic-cmp-rdbms-jar.xml", even though it may 
> actually be named
> Fubar-weblogic-cmp-rdbms-jar.xml on your disk.
> 
> In ant 1.3, this problem goes away. Now the weblogic 
> descriptor is parsed
> to actually find the CMP files and these are added under 
> their actual name
> into the ejbjar. This is definitely the way to go so I wanted 
> to encourage
> people to make the change without breaking backward 
> compatability. So I
> introduced oldCMP, defaulting to true but with the ugly deprecation
> warning.
> 
> To change to the new scheme, you need to set oldCMP="false" 
> and change your
> weblogic descriptor to correctly name the CMP file. If your 
> CMP file is
> already named this way, then just setting the attribute should be
> sufficient.
> 
> It is pretty ugly, so I am tempted to change it to log this message at
> verbose level to reduce the annoyance factor.
> 
> What do you think?
> 
> Conor
> 
> 
> ----- Original Message -----
> From: "Wieser Daniel" <Daniel.Wieser@softlab.de>
> To: <ant-user@jakarta.apache.org>
> Sent: Friday, January 12, 2001 9:54 PM
> Subject: RE: <ejbjar>, <ejb-ref> Problem
> 
> 
> > Conor,
> >
> > thanks a lot, it works.
> >
> > The only thing I'm not quite sure what it means is the 
> following (output
> > from ant):
> >
> > [ejbjar] The old method for locating CMP files has been DEPRECATED.
> > [ejbjar] Please adjust your weblogic descriptor and set 
> oldCMP="false" to
> > use the new CMP descriptor inclusion mechanism.
> >
> >
> > Daniel
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Conor MacNeill [mailto:conor@cognet.com.au]
> > > Sent: Friday, January 12, 2001 11:28 AM
> > > To: ant-user@jakarta.apache.org
> > > Subject: Re: <ejbjar>, <ejb-ref> Problem
> > >
> > >
> > > Daniel,
> > >
> > > > Hi all,
> > > >
> > > > I have a EJB Deployment Descriptior that uses the 
> <ejb-ref> tag to
> > > reference
> > > > other
> > > > EJBs.
> > > >
> > > > When deploying the EJB using Ant, a
> > > java.io.FileNotFoundException occurs
> > > > describing that the Class of the referenced bean (described
> > > in <ejb-ref>)
> > > > could not be found?
> > > >
> > > > If I remove the <ejb-ref> tag from my *-ejb-jar.xml and the
> > > > <reference-descriptor>
> > > > from *-weblogic-ejb-jar.xml than it is deployed well.
> > > >
> > > > Any suggestion?
> > > >
> > >
> > > Yes, you will need to upgrade to ant 1.3 alpha - a recent
> > > nightly build, in
> > > other words. I fixed this after ant 1.2 was released.
> > >
> > > Conor
> > >
> > >
> > >
> 

Mime
View raw message