I have an ant target that uses the jebjar task:
<ejbjar destdir="${build.dir}"
srcdir="${build.dir}/classes/main"
descriptordir="${conf.dir}/j2ee"
basejarname="${component}-ejb"
genericjarsuffix=".jar"
dependency="none">
<include name="ejb-jar.xml" />
<include name="jboss.xml" />
</ejbjar>
It finds ejb-jar.xml and has problems parsing it.
IOException while parsing'ejb-jar.xml'. This probably indicates that the descriptor doesn't exist. Details: no protocol: ejb-jar_2_0.dtd
ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"ejb-jar_2_0.dtd">
<ejb-jar>
.
.
.
The dtd and xml are in the same directory (${conf.dir}/j2ee). More importantly the target which uses this task runs successfully if I invoke it from the command line. Any ideas?
[Updated on: Tue, 15 December 2009 06:09] by Moderator