If I use cactuswar to specify a war inside of cactifyear, I get a
NullPointerException. The war is one generated in a previous step with
cactifywar. I checked the target directory and the war is generated. If I
remove the cactuswar task, cactifyear works and puts the default
cactus.war into the ear. I've also tried generating the war inside
cactifyear with cactuswar with the same result so it can't be the
pre-generated war file.
<!-- Cactify the web-app archive -->
<cactifywar srcfile="./myfile.war"
destfile="${target.dir}/myfile-cactified.war">
<classes dir="${target.classes.cactus.dir}"/>
<lib file="${clover.jar}"/>
</cactifywar>
<cactifyear srcfile="${jboss.release.dir}/${project.name.file}.ear"
destfile="${target.dir}/${project.name.file}-cactified.ear">
<cactuswar srcfile="${target.dir}/myfile-cactified.war"/>
</cactifyear>
BUILD FAILED
java.lang.NullPointerException
at org.apache.crimson.tree.TextNode.cloneNode(TextNode.java:222)
at
org.apache.crimson.tree.ElementNode2.createCopyForImportNode(ElementNode2.java:167)
at
org.apache.crimson.tree.ElementNode2.createCopyForImportNode(ElementNode2.java:164)
at
org.apache.crimson.tree.ElementNode2.createCopyForImportNode(ElementNode2.java:164)
at
org.apache.crimson.tree.XmlDocument.importNode(XmlDocument.java:1261)
at
org.codehaus.cargo.module.webapp.AbstractDescriptor.addElement(AbstractDescriptor.java:246)
at
org.codehaus.cargo.module.application.DefaultApplicationXml.addWebModule(DefaultApplicationXml.java:192)
at
org.apache.cactus.integration.ant.CactifyEarTask.cactifyApplicationXml(CactifyEarTask.java:173)
at
org.apache.cactus.integration.ant.CactifyEarTask.execute(CactifyEarTask.java:121)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Total time: 3 seconds
java.lang.NullPointerException
at org.apache.crimson.tree.TextNode.cloneNode(TextNode.java:222)
at
org.apache.crimson.tree.ElementNode2.createCopyForImportNode(ElementNode2.java:167)
at
org.apache.crimson.tree.ElementNode2.createCopyForImportNode(ElementNode2.java:164)
at
org.apache.crimson.tree.ElementNode2.createCopyForImportNode(ElementNode2.java:164)
at
org.apache.crimson.tree.XmlDocument.importNode(XmlDocument.java:1261)
at
org.codehaus.cargo.module.webapp.AbstractDescriptor.addElement(AbstractDescriptor.java:246)
at
org.codehaus.cargo.module.application.DefaultApplicationXml.addWebModule(DefaultApplicationXml.java:192)
at
org.apache.cactus.integration.ant.CactifyEarTask.cactifyApplicationXml(CactifyEarTask.java:173)
at
org.apache.cactus.integration.ant.CactifyEarTask.execute(CactifyEarTask.java:121)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
-Shay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]