Conor,
I used the nested DTD element, and it couldn't find the local DTD. Not sure
if something was wrong if my setup though.
It did try mapping to a weblogic DTD, however that does not exist on my
filesystem.
I downloaded the DTDs, and referred to them using the DTD elements. I use
ant1.4 beta2.
The verbose output extract is:
deploy:
[ejbjar] 1 deployment descriptors located.
[ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans
1.1//EN to resource /weblogic/ejb20/dd/xml/ejb11-jar.dtd
[ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans
2.0//EN to resource /weblogic/ejb20/dd/xml/ejb20-jar.dtd
[ejbjar] Resolved -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN
to local resource /weblogic/ejb20/dd/xml/ejb20-jar.dtd
[ejbjar] The old method for locating CMP files has been DEPRECATED.
[ejbjar] Please adjust your weblogic descriptor and set newCMP="true" to
use
the new CMP descriptor inclusion mechanism.
<target name="deploy" depends="init, compileProject, jarException,
jarResource, jarState">
<ejbjar descriptordir="${src.dir}/${project.path.ejb}"
srcdir="${build.dir}"
basejarname="AppServer-Deploy">
<weblogic destdir="${domain.applications.dir}"
keepgeneric="false"
rebuild="false"
newCMP="false">
<classpath refid="project.class.path"/>
<wlclasspath refid="ejb.descriptor.build.classpath"/>
</weblogic>
<include name="ejb-jar.xml"/>
<exclude name="weblogic-ejb-jar.xml"/>
<support dir="${build.dir}">
<include name="${project.path}/**/*.class"/>
<exclude name="${project.path}/**/*Test.class"/>
</support>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN"
location="${buildfile.dir}/ejb-jar_1_1.dtd"/>
<dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
location="${buildfile.dir}/weblogic-ejb-jar_5_1_0.dtd"/>
<!--dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0
EJB//EN"
location="${buildfile.dir}/weblogic-ejb-jar_6_0.dtd"/-->
</ejbjar>
</target>
T Master.
----- Original Message -----
From: "Conor MacNeill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 8:16 AM
Subject: Re: Using EJB Task
> Have you read the documentation? Try here
> http://jakarta.apache.org/ant/manual/OptionalTasks/ejb.html
>
> That is the 1.3 documentation. You can also download the 1.4 Beta (Beta 2)
> and check out a few changes.
>
>
> Finally, the zip file here
> http://jakarta.apache.org/~conor/ejb-naming.zip
> has examples of the naming conventions which you can use with ejb-jar
task.
>
> As to your specific problem, you should be using the <dtd> nested elements
> to tell <ejbjar> where to find you local DTDs so it doesn't try to find
> them over the net.
>
> Conor
>
> ----- Original Message -----
> From: "Sachin Shah" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 29, 2001 12:08 AM
> Subject: Using EJB Task
>
>
> > Hi ,
> >
> > Can anyone guide me as to how to go about using EJBTasks for
> > creating EJB jars. I tried compiling the same, but it is giving me
> external
> > entity could not be found for the DTD reference made to weblogic site. I
> > don't want to change my Deployment Descriptors.
> >
> > Thanks
> > Sachin
> >
>