jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Mach - machen" <Mach.C...@acxiom.com>
Subject Problems in running Cactus sample with Ant
Date Wed, 03 Jun 2009 04:14:34 GMT
Hi,
 
It's the first time I tried Cactus. I was just trying to run the servlet
testing sample shipped with the package of Cactus v1.8.1.  There was no
problem when I run this test with Maven. But I got the following
exception when I run it with Ant:
 
test:
     [echo] Please take a deep breath while Cargo gets the Tomcat for
running the sample servlet tests...
 
BUILD FAILED
java.lang.NoSuchMethodError:
org.apache.cactus.integration.ant.CactusTask.addClasspathEntry(Ljava/lan
g/String;)V
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1338)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NoSuchMethodError:
org.apache.cactus.integration.ant.CactusTask.addClasspathEntry(Ljava/lan
g/String;)V
        at
org.apache.cactus.integration.ant.CactusTask.init(CactusTask.java:108)
        at
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.jav
a:222)
        at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:411)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:1
60)
        at org.apache.tools.ant.Task.perform(Task.java:347)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        ... 7 more
--- Nested Exception ---
java.lang.NoSuchMethodError:
org.apache.cactus.integration.ant.CactusTask.addClasspathEntry(Ljava/lan
g/String;)V
        at
org.apache.cactus.integration.ant.CactusTask.init(CactusTask.java:108)
        at
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.jav
a:222)
        at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:411)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:1
60)
        at org.apache.tools.ant.Task.perform(Task.java:347)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
 
Can anybody give me a guide on this? 
 
Thanks,
 
Mach

 

 
***************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
****************************************************************************

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message