you'll need Ant 1.5.1 or higher to use the Cactus tasks (which is stated in the docs IIRC). I think the problem you're reporting here is caused by using an earlier version of Ant.
-chris
Mark Lybarger wrote:
I'm migrating my testing from win2k to solaris. I'm trying to create an empty cactified war file, but the task is throwing this exception. Any suggestions/ideas? I saw one message in the list archives about this, but no solution. The taskdef goes ok, it's during execution of the task that this happens. something is probably not in the classpath correctly, but.. what?
Here's how I define the tasks: <path id="cactus.classpath"> <pathelement location="${basedir.source.web-inf.lib}/cactus.jar" /> <pathelement location="${basedir.source.web-inf.lib}/cactus-ant.jar" /> <pathelement location="${basedir.source.web-inf.lib}/commons-httpclient.jar" /> <pathelement location="${basedir.source.web-inf.lib}/commons-logging.jar" /> <pathelement location="${basedir.source.web-inf.lib}/aspectjrt.jar" />
</path> <taskdef resource="cactus.tasks" classpathref="cactus.classpath" />
And here's my error message:
BUILD FAILED
java.lang.NoSuchMethodError
at
org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector(CactifyWar
Task.java:601)
at
org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(CactifyWarTas
k.java:662)
at
org.apache.cactus.integration.ant.CactifyWarTask.execute(CactifyWarTask.java
:421)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 2 seconds java.lang.NoSuchMethodError at org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector(CactifyWar Task.java:601) at org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(CactifyWarTas k.java:662) at org.apache.cactus.integration.ant.CactifyWarTask.execute(CactifyWarTask.java :421) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235)
-- Christopher Lenz /=/ cmlenz at gmx.de
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
