I'm getting a lot of Ant headaches this morning! I'm using ejbjar to try to
build an EJB JAR. However I get a SAXException when I use the ejbjar task,
but I'm using the same descriptors that work successfully when I build using
batch files (using the same Weblogic instance). Has anyone ever experienced
this?

********* buildfile ****************

        <target name="buildEJB" >
                <ejbjar srcdir="${classesOutput}"
                        descriptordir="${basedir}\descriptors">
                        <weblogic destdir="${outputJars}"
                                classpath="${ejbBuildClasspath}"/>
                </ejbjar>
        </target>



********* error ****************

buildEJB:
   [ejbjar] 2 deployment descriptors located.

BUILD FAILED

D:\Work\Phoenix\bin\buildejb.xml:99: SAXException while parsing
'brokerportal-ejb-jar.xml'. This probably indicates badly-formed XML.
Details: com.sun.xml.parser/P-055 D:\Work\Phoenix\dtd\ejb-jar_1_1.dtd
--- Nested Exception ---
org.xml.sax.SAXParseException: com.sun.xml.parser/P-055
D:\Work\Phoenix\dtd\ejb-jar_1_1.dtd
        at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
        at com.sun.xml.parser.Parser.fatal(Parser.java:2811)
        at com.sun.xml.parser.Parser.parseSystemId(Parser.java:2412)
        at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2390)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1100)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.processDesc
riptor(GenericDeploymentTool.java, Compiled Code)
        at
org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java,
Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 0 seconds

I downloaded the dtds locally.


__________________________________________________

Richard Atherton
Andersen - Project Phoenix
Phone: +32 2 678 8351
Mobile: +44 7939 583728
E-mail: [EMAIL PROTECTED]
__________________________________________________


Reply via email to