ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schmoll, Brett x66244" <Brett_Schm...@adp.com>
Subject Generic ejbjar task
Date Mon, 18 Nov 2002 23:36:30 GMT
Hi, 

I'm having a problem (*surprise*) with resolving a local dtd reference while
generating a generic ejbjar. I've tried with ant 1.4.1 and 1.5.1 to no avail
and searched the list-archives as well. I'm sure this is going to be
painfully obvious to someone (everyone?) as to my mistake but it is killing
me. Here is the build.xml

<project name="StatefulEJB" default="simple_jar" basedir="./">
	<target name="simple_jar">
		<mkdir dir="temp/simple_classfiles" />
		<javac
			srcdir="."
			destdir="./temp/simple_classfiles"
			classpath="c:\bea\wlserver6.1\lib\weblogic.jar"
			includes="**/testcase/*.java"
		/>
		<ejbjar
			descriptordir="testcase/META-INF"
			srcdir="./temp/simple_classfiles"
			basejarname="simple_temp"
			destdir="./temp/jar" 
			>
			<dtd publicId="-//Sun Microsystems, Inc.//DTD
Enterprise JavaBeans 2.0//EN"
             location="weblogic/ejb20/dd/xml/ejb-jar_2_0.dtd" />
			<include name="**/ejb-jar.xml"/>
			<exclude name="**/weblogic*.xml"/>
			<classpath>
				<pathelement
path="c:\bea\wlserver6.1\lib\weblogic.jar"/>
			</classpath>
		</ejbjar>
	</target>
</project>

The result from ant -debug:
simple_jar:
fileset: Setup scanner in dir D:\Develop\StatefulEJB_Testcase with
patternSet{ includes: [**/testcase/*.java] excludes: [] }
    [javac] testcase\SimpleEJBHome.java omitted as
D:\Develop\StatefulEJB_Testcase\temp\simple_classfiles\testcase\SimpleEJBHom
e.cla
ss is up to date.
    [javac] testcase\Simple.java omitted as
D:\Develop\StatefulEJB_Testcase\temp\simple_classfiles\testcase\Simple.class
is up to da
te.
    [javac] testcase\SimpleEJB.java omitted as
D:\Develop\StatefulEJB_Testcase\temp\simple_classfiles\testcase\SimpleEJB.cl
ass is up
 to date.
   [ejbjar] Unable to load dependency analyzer:
org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
fileset: Setup scanner in dir
D:\Develop\StatefulEJB_Testcase\testcase\META-INF with patternSet{ includes:
[**/ejb-jar.xml] excludes
: [**/weblogic*.xml] }
   [ejbjar] 1 deployment descriptors located.
   [ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD
Enterprise JavaBeans 2.0//EN, systemId: http://java.sun.com
/j2ee/dtds/ejb-jar_2_0.dtd) to a local entity

BUILD FAILED
file:D:/Develop/StatefulEJB_Testcase/build.xml:15: IOException while
parsing'ejb-jar.xml'.  This probably indicates that the descrip
tor doesn't exist. Details: Server returned HTTP response code: 403 for URL:
http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd

So why can't I get it to resolve the <dtd> reference? I've tried everything
I can think of, extracted the dtd from the weblogic.jar to reside in the
same directory, etc.

Also, what's with the "Unable to load dependency analyzer"? It's in the
ant.jar, so it should load right?

-Brett Schmoll
ADP/SIS

--
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