Timothy Washington
Sun, 22 Feb 2009 06:07:34 -0800
Hi there, I've got a strange problem trying to run cactus using ant integration and I get the error below (fig. 2). I'm using the loaded cactus target on a 'cactified' war file (see fig. 1). I don't know why this error is coming up as one of the containers that is explicitly supported by default is tomcat5. The only thing I can see is that some dependent classes weren't loaded (even after including them into the cactus classpath - see fig. 3). Has anyone seen this before?
Thanks in advance.
<target name='cactus-run' depends='cactus-deploy' >
<property name="CATALINA_HOME" value="${tomcat.home}" />
<property name="CATALINA_BASE" value="${tomcat.home}" />
<property name="CATALINA_TMPDIR" value="${tomcat.home}/temp" />
<exec executable="${tomcat.home}/bin/setclasspath.sh">
</exec>
<cactus warfile="${dir.build}/bookkeeping-cactus.war"
printsummary="yes" failureproperty="tests.failed">
<classpath >
<path refid="bookkeeping.classpath"/>
</classpath>
<containerset>
<tomcat5x dir="${tomcat.home}" port="8070" />
</containerset>
<formatter type="xml"/>
<batchtest>
<fileset dir="${dir.test.src}">
<!-- <include name="**/CactusTests.java"/> -->
<exclude name="**/TestAll.java"/>
</fileset>
</batchtest>
</cactus>
</target>
fig. 1
BUILD FAILED
/Users/timothyw/Projects/Bookkeeping/build.xml:455: Class
org.apache.cactus.integration.ant.ContainerSet doesn't support the nested
"tomcat5x" element.
at
org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:463)
at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:329)
at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:565)
at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:326)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:182)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
at org.apache.tools.ant.Task.perform(Task.java:363)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
fig. 2
$ ant -debug cactus-run
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
...
Finding class org.codehaus.cargo.ant.CargoTask
Loaded from
/Users/timothyw/Projects/Bookkeeping/lib/cactus/cargo-ant-1.0-beta-2.jar
org/codehaus/cargo/ant/CargoTask.class
Class org.codehaus.cargo.ant.CargoTask loaded from ant loader (parentFirst)
Class org.apache.cactus.integration.ant.CargoElement loaded from ant loader
(parentFirst)
Finding class org.codehaus.cargo.generic.ContainerFactory
Loaded from
/Users/timothyw/Projects/Bookkeeping/lib/cactus/cargo-core-uberjar-1.0-beta-2.jar
org/codehaus/cargo/generic/ContainerFactory.class
Class org.codehaus.cargo.generic.ContainerFactory loaded from ant loader
(parentFirst)
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
BUILD FAILED
/Users/timothyw/Projects/Bookkeeping/build.xml:455: Class
org.apache.cactus.integration.ant.ContainerSet doesn't support the nested
"tomcat5x" element.
at
org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:463)
fig. 3
Tim
__________________________________________________________________
Reclaim your name @ymail.com or @rocketmail.com. Get your new email address
now! Go to http://ca.promos.yahoo.com/jacko/