cancel
Showing results for 
Search instead for 
Did you mean: 

EJB JAR building by ANT problem

Former Member
0 Kudos

I have this task in my build file:

[code]

<target name="build"

depends="compile">

<ejbjar srcdir="$"

descriptordir="META-INF"

destdir="$"

>

</ejbjar>

</target>

[/code]

which is generating this error message:

build:

[ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer - dependent class not found: org/apache/bcel/classfile/ClassParser

[ejbjar] BUILD FAILED: file:d:/my projects/MyApp/Bean/build.xml:82: SAXException while parsing 'ejb-j2ee-engine.xml'. This probably indicates badly-formed XML. Details: Relative URI "ejb-j2ee-engine.dtd"; can not be resolved without a base URI.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Well, for the time being this is my solution:

[code]

<target name="build"

depends="compile">

<zip destfile="${ant.project.name}.jar">

<fileset dir="$" />

<fileset dir="$"

includes="META-INF/**"/>

</zip>

</target>

[/code]

The resulting jar file has the same contents as the jar which is produced by the Netw. Dev. Studio

Former Member
0 Kudos

I solved the first error by adding the 'dependency="none"' parameter to the task.

Now I still have the message about that DTD...

Does anybody know how to solve that?