ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milind Nirgun" <Nirg...@C-IV.org>
Subject RE: problem with specifying dtd location for ejbjar element
Date Wed, 07 Aug 2002 17:35:02 GMT
I have the same thing working with weblogic. I have the files ejb-jar_1_1.dtd and weblogic-ejb-jar.dtd
in the directory specified in the location attribute of <dtd>. If either of this file
is deleted, it gives the same error you are getting. So double check the location and names
of the dtds.

script snippet:

  <target name="genEjb" depends="compile" >
    <ejbjar descriptordir="${dir.src}"
	    srcdir="${dir.classes}"
	    naming="basejarname"
	    basejarname="${ejbname}"
	    flatdestdir="true" >
      <include name="**/ejb-jar.xml" />
      <exclude name="**/*weblogic*.xml" />
      <weblogic destdir="${dir.dist}" newCMP="true" >
		<classpath>
		  <path refid="build_classpath" />
		</classpath>
		<wlclasspath>
		  <path refid="build_classpath" />
		</wlclasspath>
      </weblogic>
      <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
	  location="${dir.lib}/ejb-jar_1_1.dtd "/>
      <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
          location="${dir.lib}/weblogic-ejb-jar.dtd" />
    </ejbjar>
  </target>


-Milind


> -----Original Message-----
> From: Vadim Katz [mailto:vadim.katz@verizon.com]
> Sent: Tuesday, August 06, 2002 5:16 PM
> To: ant-user@jakarta.apache.org
> Subject: problem with specifying dtd location for ejbjar element
> 
> 
> 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
> 
> 
> --
> 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