RE: Problems in running Cactus sample with Ant

"Chen Mach - machen" <[email protected]> Wed, 3 Jun 2009 15:58:15 +0800
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
The problem has been solved by copying the library ant-junit-1.6.5.jar =
to the ANT lib folder.

Thanks.=20

-----Original Message-----
From: sach Beeharry [mailto:[email protected]]=20
Sent: 2009=C4=EA6=D4=C23=C8=D5 13:37
To: Cactus Users List
Subject: Re: Problems in running Cactus sample with Ant

Hi,

Try to add strutstest-2.1.4-2.4-patched-cactus180.jar (
http://danlipofsky.com/technical/cactus/) to your classpath and see if =
it helps.
Regards,
Sach
2009/6/3 Chen Mach - machen <[email protected]>

> Hi,
>
> It's the first time I tried Cactus. I was just trying to run the=20
> servlet testing sample shipped with the package of Cactus v1.8.1. =20
> There was no problem when I run this test with Maven. But I got the=20
> following exception when I run it with Ant:
>
> test:
>     [echo] Please take a deep breath while Cargo gets the Tomcat for=20
> running the sample servlet tests...
>
> BUILD FAILED
> java.lang.NoSuchMethodError:
> org.apache.cactus.integration.ant.CactusTask.addClasspathEntry(Ljava/l
> an
> 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(DefaultExec
> ut
> 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/l
> an
> g/String;)V
>        at
> org.apache.cactus.integration.ant.CactusTask.init(CactusTask.java:108)
>        at
> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.j
> av
> 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/l
> an
> g/String;)V
>        at
> org.apache.cactus.integration.ant.CactusTask.init(CactusTask.java:108)
>        at
> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.j
> av
> 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(DefaultExec
> ut
> 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=20
> legally privileged.
>
> If the reader of this message is not the intended recipient, you are=20
> hereby notified that any dissemination, distribution or copying of=20
> this communication is strictly prohibited.
>
> If you have received this communication in error, please resend this=20
> communication to the sender and delete the original message or any=20
> copy of it from your computer system.
>
> Thank You.
>
> **********************************************************************
> ******
>