ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Katz" <vadim.k...@verizon.com>
Subject RE: problem with specifying dtd location for ejbjar element
Date Wed, 07 Aug 2002 15:00:30 GMT
Thanks for your suggestions.
I have verified that the IDs are the same and the mapping is successful.
However, I am still getting the error.
In addition, I am only including ejb-jar.xml and excluding ias-ejb-jar.xml
but the error indicates that IASEjb_jar_1.0.dtd is not found while parsing
ejb-jar.xml!!! Why is it trying to use ias specific dtd to parse/verify
generic ejb-jar.xml?

thanks,

vadim


-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Tuesday, August 06, 2002 8:27 PM
To: Ant Users List
Subject: Re: problem with specifying dtd location for ejbjar element


Vadim Katz wrote:
> I am trying to specify a local copy of IASEjb_jar_1_0.dtd because the
> default on-line version does not exist anymore.
> I am getting the following error:
> SAXException while parsing 'ejb-jar.xml'. This probably indicates
> badly-formed XML.  Details: File
> "http://www.iplanet.com/j2ee/dtds/IASEjb_jar_1_0.dtd" not found.
> For some reason ant ignores my request to use local copy of the dtd or
> reports a misleading message.
> In any case, I would appreciate any comments/suggestions.
> Please, see relevant information below.
>
> thanks,
>
> vadim
>
> build.xml snippet:
>
>      <ejbjar srcdir="${build.classdir}"
>              destdir="${assemble}"
>              descriptordir="."
>              basejarname="${ejbjar}">
>              <iplanet destdir="${assemble}"
>                       classpath="${ias.ejbc.cpath}"/>
>              <include name="**/*ejb-jar.xml"/>
>              <exclude name="**/*ias-*.xml"/>
>              <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans 1.1//EN"
>                   location="${ias.home}/dtd/ejb-jar_1_1.dtd"/>
>              <dtd publicId="-//Sun Microsystems, Inc.//DTD iAS Enterprise
> JavaBeans 1.0//EN"
>                   location="${ias.home}/dtd/IASEjb_jar_1_0.dtd"/>
>      </ejbjar>
>
> ant version: 1.5
> jdk version: 1.3.1

A few things to do. Run with -debug. Ejbjar will report what it has
successfully mapped to a publicID. You will need to make sure the IDs
match exactly and the local resource is being found.

Conor



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message