Hi Atherton..

  I used your the code you send about the ejbjar, but
when I ran the build it says..

D:\vicsa\Construccion\afiliaciontest.xml:58: Could not
create task of type: ejbjar. Common solutions are to
use taskdef to declare your task
, or, if this is an optional task, to put the
optional.jar in the lib directory of your ant
installation (ANT_HOME).

  So, could you candly explain me how do I use the
ejbjar in a build project?? Because in the manual of
ant, there are some samples, but is the same story.
either them or yours can run :-(

  am I doing something wrong???

thanks
VES

--- Atherton Richard - Z9V
<[EMAIL PROTECTED]> wrote:
> 
> Conor,
> 
> I specify the local dtd's and I now the program just
> hangs. I'm closing to
> giving up and just using the batch files I have that
> work.
> 
> Is there a sample out there for Ant 1.3 Weblogic
> 5.1.0, with code,
> descriptors, build file etc? Perhaps that would be
> the best place to start.
> 
> Cheers,
> Richard.
> 
> -----Original Message-----
> From: Conor MacNeill
> [mailto:[EMAIL PROTECTED]]
> Sent: mercredi 29 ao�t 2001 14:06
> To: [EMAIL PROTECTED]
> Subject: Re: ejbjar headaches
> 
> 
> From: "Atherton Richard - Z9V"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 29, 2001 7:24 PM
> Subject: ejbjar headaches
> >
> > I'm getting a lot of Ant headaches this morning!
> I'm using ejbjar to try
> to
> > build an EJB JAR. However I get a SAXException
> when I use the ejbjar
> task,
> > but I'm using the same descriptors that work
> successfully when I build
> using
> > batch files (using the same Weblogic instance).
> Has anyone ever
> experienced
> > this?
> >
> > ********* buildfile ****************
> >
> >     <target name="buildEJB" >
> >     <ejbjar srcdir="${classesOutput}"
> >            
> descriptordir="${basedir}\descriptors">
> >       <weblogic destdir="${outputJars}"
> >                 classpath="${ejbBuildClasspath}"/>
> >         </ejbjar>
> >     </target>
> >
> >
> >
> 
> 
> Richard,
> 
> It is hard to tell what the error is since the
> parser is trying to emit a
> locale-appropriate error message but can only come
> up with the code. If you
> try an English locale we may get more info (Sorry
> :-( ). Anyway, I can
> guess that the parser is complaining that it cannot
> find the DTDs for the
> EJB jar deployment descriptor. When you run ejbjar
> you need to tell it
> where the DTDs are so that the parser will not go
> looking on the net for
> them (I'll guess you are behind a firewall). There
> are two ways to do this
> 
> 1. Run Ant with weblogic in your classpath. The dtd
> are contained in the
> weblogic.jar and if it is in the classpath, Ant will
> be able to find the
> dtds from there.
> 
> 2. Most people, however, do not want to have
> weblogic in their ant
> classpath. <ejbjar>, therefore, allows you to
> specify where to find the
> dtds directly. Look at the documentation for the
> <dtd> nested element.
> Since you have downloaded the DTDs (you need the Sun
> one and the
> corresponding Weblogic one), create <dtd> elements,
> pointing to the DTDs.
> 
> Let me know if that doesn't resolve your problem..
> 
> Conor
> 
> 


=====

_________________________________________________________________

"Puedes sentirte desilusionado si fallas, pero est�s condenado si no lo intentas."

"You can get disappointed if you fail down, but you are doomed if you do not try it."

ICQ #  22338121


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Reply via email to