Loading...

cactus-user@jakarta.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: ContainerSet doesn't support the nested "tomcat5x" element. Timothy Washington Mon Feb 23 03:04:25 2009


Oh geez, I didn't see the 1.8 section of the docs. Coding in anger I guess :|  

Muchos gracias :)
Tim




________________________________
From: Petar Tahchiev <[EMAIL PROTECTED]>
To: Cactus Users List <[EMAIL PROTECTED]>
Sent: Sunday, February 22, 2009 10:54:05 AM
Subject: Re: ContainerSet doesn't support the nested "tomcat5x" element.

Hi Timothy,

as this url describes:

http://jakarta.apache.org/cactus/integration/ant/task_cactus1.8.html

put this in your containerset:


        <cargo containerId="tomcat5x" output="${logs.dir}/output.log"
log="${logs.dir}/cargo.log" home="TOMCAT_HOME">
            <configuration>
                <property name="cargo.servlet.port"
value="${cargo.servlet.port}"/>
                <property name="cargo.logging" value="${cargo.logging}"/>
                <deployable type="${cactus.sample.archive.type}"
                  file="${cactified.servlet.archive.name}"/>
            </configuration>
        </cargo>

and replace the TOMCAT_HOME, ${cactus.sample.archive.type}, ${
cactus.sample.archive.name}
with the appropriate values.

Cheers, Petar.



2009/2/22 Timothy Washington <[EMAIL PROTECTED]>

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



-- 
Regards, Petar!
Karlovo, Bulgaria.
- - - - - - - -
| Author @ Manning Publications.
| Senior Solution Architect @ Unic
| BGJUG-Bulgarian Java User Group Leader.
| Apache Maven Developer.
| Apache Jakarta PMC member.
| Jakarta Cactus Lead Developer.
| Codehaus Plexus Developer
| Blogger: http://weblogs.java.net/blog/paranoiabla/
- - - - - - - -
Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611



      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.