on 06-13-2006 9:51 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.