ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Lyon" <m...@stargus.com>
Subject RE: <dtd> nested element with WebLogic 6.0
Date Wed, 24 Oct 2001 13:48:11 GMT
Paul, 

Well, now that you mention it, the SAX parser actually was one factor in
my decision to reference the DTD's locally for my <ejbjar> tasks. The
copy of weblogic.jar included with Bea WebLogic 6.0 contains an old SAX
parser, so if you are using jdom you can run into conflicts if you put
weblogic.jar on the CLASSPATH before jdom. As I understand it, the local
references aren't actually necessary. However, to paraphrase the Ant
User Manual, "The supported vendor-specific nested elements know the
location of the required DTDs within the vendor class hierarchy; this
means, however, that the vendor's class hierarchy must be available in
the classpath when Ant is started.". I thought that a  cleaner solution
would be to run Ant without requiring the vendor classes (a.k.a
weblogic.jar) in the classpath, and use a nested <dtd> element to
reference the files locally. Another argument for doing this is that
using a local DTD is much faster than loading the DTD across the net
(not to mention that if you are running ejbjar behind a firewall you may
not even be able to access the remote DTD). Don't know if I understood
the question you were asking correctly, however?

Cheers,

Matt

-----Original Message-----
From: Paul Cody [mailto:paul.cody@lucidainc.com]
Sent: Wednesday, October 24, 2001 1:51 AM
To: 'ant-user@jakarta.apache.org'
Subject: RE: <dtd> nested element with WebLogic 6.0


Curious:  Why are these local dtd references necessary for <ejbjar>?  Do
these messages originate in the SAX parser?  I poked around the source
without enlightenment.

Paul 

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> Sent: Tuesday, October 23, 2001 6:37 PM
> To: ant-user@jakarta.apache.org
> Subject: RE: <dtd> nested element with WebLogic 6.0
> 
> 
> The DTDs are in the weblogic.jar and can be extracted to 
> local files for
> <dtd> elements. Saves you a download. Look at this path in the jar
> 
> /weblogic/ejb20/dd/xml/
> 
> Conor
> 
> 
> > -----Original Message-----
> > From: Matt Lyon [mailto:matt@stargus.com]
> > Sent: Wednesday, 24 October 2001 4:57 AM
> > To: ant-user@jakarta.apache.org
> > Subject: RE: <dtd> nested element with WebLogic 6.0
> >
> >
> > T Master,
> >
> > Thanks for the information; I figured out a solution just prior to
> > receiving your post. The one trick for me was that I had to 
> download the
> > DTD's for this to work with WebLogic 6.0/Ant 1.4. I seem to remember
> > that they were included with the WebLogic 5.x 
> distributions, but maybe I
> > am just suffering EJB-related stress disorders. In any 
> case, storing and
> > referencing the DTD's locally works quite well!
> >
> > Cheers,
> >
> > Matt
> >
> 
> Conor
> 

Mime
View raw message