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 RE: Problems in running Cactus sample with Ant
Date Wed, 03 Jun 2009 07:58:15 GMT
The problem has been solved by copying the library ant-junit-1.6.5.jar to the ANT lib folder.

Thanks. 

-----Original Message-----
From: sach Beeharry [mailto:sachtruth@googlemail.com] 
Sent: 2009年6月3日 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 <Mach.Chen@acxiom.com>

> 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/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 
> 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.
>
> **********************************************************************
> ******
>

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


Mime
View raw message