ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ying Wang <yingw...@hawaii.edu>
Subject Re: [ejbjar] Could not resolve ... ejb-jar_1_1.dtd to a local entity?
Date Wed, 27 Feb 2002 22:59:53 GMT
I have the same problem. When i check the source code of the ant1.4.1. It
seems that it did not assign the value for one of the publicId.

But this is just the warning message.

Ying Wang

On Wed, 27 Feb 2002, Tenchi-kun (Elliott) wrote:

> Hi,
>
> I'm an Ant newbie using 1.4.1.  I was trying to compile an EJB for our
> WebLogic 5.1 server---which compiles fine normally, btw.  The error tham I'm
> seeing is:
>
>     [ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD
>     Enterprise JavaBeans 1.1//EN, systemId: http://java.sun.com/j2ee/dtds
>     /ejb-jar_1_1.dtd) to a local entity
>
> The relevant build.xml target contains:
>
>     <ejbjar
>         srcdir="${dirCompileTempBase}"
>         destdir="${dirJarsDist}"
>         descriptordir="${dirCompileTempBase}/${dirEjbXml}"
>         naming="ejb-name">
>       <include name="**/*.xml" />
>       <include name="**/*.class" />
>       <weblogic
>           destdir="${dirJarsDist}">
> 	<classpath>
> 	  <pathelement path="${java.class.path}" />
> 	  <pathelement path="${dirCompileTempBase}" />
> 	  <pathelement path="${dirClassesDist}" />
> 	  <pathelement path="${weblogicClasses}" />
> 	</classpath>
>       </weblogic>
>     </ejbjar>
>
> The properties of interest are:
>
>     dirCompileTempBase: I've javac'd our sources into this dir.
>     dirJarsDist:        Where the EJB JARs should end up.
>     weblogicClasses:    Just the WLS class dirs.
>     dirEjbXml:          Just the META-INF dir holding the deployment XMLs.
>
> In the ejb-jar.xml file for this bean I have:
>
>     <?xml version="1.0"?>
>
>     <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
>     JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
>
>     <ejb-jar>
>       <enterprise-beans>
>         <entity>
>           <ejb-name>demlabel</ejb-name>
>             ... yada yada ...
>
> I looked up several examples on the Web and I thought I had it right.  Can
> someone point out what I'm doing wrong...?
>
> Thanks,
> - e?
>
>
>
> --
> 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