Passing JVM Arguments to Cargo

"Ranganathan, Shobana" <[email protected]> Wed, 31 Mar 2010 07:48:06 -0700
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <42F741D6CF15D847928C7D4ABB9111E6A3AD229C9D@PISCES.LA.FRD.DIRECTV.COM>
--_000_42F741D6CF15D847928C7D4ABB9111E6A3AD229C9DPISCESLAFRDDI_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I am using cargo-core-uberjar-0.9.jar, cargo-ant-0.9.jar, cactus.core.frame=
work.uberjar.javaEE.14-1.8.0.jar, cactus.integration.ant-1.8.0.jar.


I am having trouble getting my application to deploy via the cargo task as =
I need to pass some jvm args for startup. Not sure if cargo is recognizing =
and using what I pass it. My cargo task is below:


<cactus fork=3D"true" forkmode=3D"once" haltonfailure=3D"yes" showoutput=3D=
"yes" printsummary=3D"on"
    warfile=3D"dtv7255.war">

            <cactusproperty server=3D"false"
                             propertiesFile=3D"conf/cactus.client.log4j.pro=
perties"/>
                            <cactusproperty server=3D"true"
                 propertiesFile=3D"conf/cactus.server.log4j.properties"/>
            <sysproperty key=3D"net.sourceforge.cobertura.datafile"
                                    file=3D"${basedir}/cobertura.ser" />
            <classpath>
                        <pathelement path=3D"${test.build.dir}"/>
                        <path refid=3D"classpath.clientside" />
            </classpath>

            <containerset>
                        <cargo containerId=3D"tomcat5x" home=3D"${env.TOMCA=
T_HOME}" output=3D"C:/cmgt/sdk4/output.log" log=3D"C:/cmgt/sdk4/cargo.log" =
action=3D"start">
                                    <configuration home=3D"${env.TOMCAT_HOM=
E}/bin}">
                                    <property name=3D"cargo.servlet.port" v=
alue=3D"8080"/>
                                    <property name=3D"cargo.logging" value=
=3D"high"/>
                                    <property name=3D"cargo.jvmargs" value=
=3D"-Dcomergent.preferences.store=3Dc:\oom\prefs.xml -DComergent.WritableDi=
rectory.share.private.noloadable=3Dc:\oom\models3\"/>
                                    <deployable type=3D"war" file=3D"dtv725=
5.war"/>
                            </configuration>
                        </cargo>
            </containerset>

            <formatter type=3D"brief" usefile=3D"false"/>
            <formatter type=3D"xml"/>

            <test name=3D"com.comergent.dtv.broadband.TestEligibilityParame=
ters"
                        outfile=3D"cactus.output">
            </test>
</cactus>


How else can I pass jvmargs? Does cargo use the Catalina.bat file for start=
ing up tomcat from my tomcat/bin directory or is there someway I can specif=
y what startup script it needs to use?

Is there anyway to point cargo to an exploded war directory versus giving i=
t a war file?

Please help.

Thank you.


Regards,
Shobana


--_000_42F741D6CF15D847928C7D4ABB9111E6A3AD229C9DPISCESLAFRDDI_--