Mansour Al Akeel | 3 Feb 23:57
Picon

Run with tomcat7

I am trying to run an existing application using cargo ant.

The example given on the page http://cargo.codehaus.org/Ant+support

deletes the resulting exploded war, then creates a tomcat installation in the target dir. Therefore I am unable to see the application.

<property name="tomcat.home" value="/opt/tomcat"/>
    <property name="tomcatlog.dir" value="target"/>
    <property name="tomcatconfig.dir" value="target/tomcat"/>
    <property name="mywarfile" value="target/webapps/myWebapp"/>
   
    <taskdef resource="cargo.tasks">
    <classpath>
        <fileset dir="cargo">
        <include name="**/*.jar"/>
        </fileset>
    </classpath>
    </taskdef>
   
    <target name="cargostart" depends="war">
    <delete dir="${tomcatconfig.dir}" />
    <mkdir dir="${tomcatlog.dir}"/>
    <mkdir dir="${tomcatconfig.dir}"/>
    <echo message="Starting Cargo..."/>
    <echo message="Using tomcat.home = ${tomcat.home} "/>
    <echo message="Using war = ${mywarfile} "/>
    <!-- <echo message="Jars used = ${cargo-uberjar} , ${cargo-antjar}"/> -->
   
    <cargo containerId="tomcat7x" home="${tomcat.home}" output="${tomcatlog.dir}/output.log"
           log="${tomcatlog.dir}/cargo.log" action="run">
        <configuration home="${tomcatconfig.dir}">
        <property name="cargo.servlet.port" value="8080"/>
        <property name="cargo.logging" value="low"/>
        <deployable type="war" file="${mywarfile}"/>
        </configuration>
    </cargo>

    </target>


Should I generate the war after I start tomcat, or there's something I am missing ?




S. Ali Tokmen | 4 Feb 12:06
Gravatar

Re: Run with tomcat7

Hi Mansour

Did you try with ${basedir}/target in the various variables to have full
paths?

Thank you

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com

On 2012/02/03 23:57, Mansour Al Akeel wrote:
> I am trying to run an existing application using cargo ant.
>
> The example given on the page http://cargo.codehaus.org/Ant+support
>
> deletes the resulting exploded war, then creates a tomcat installation
> in the target dir. Therefore I am unable to see the application.
>
> <property name="tomcat.home" value="/opt/tomcat"/>
>     <property name="tomcatlog.dir" value="target"/>
>     <property name="tomcatconfig.dir" value="target/tomcat"/>
>     <property name="mywarfile" value="target/webapps/myWebapp"/>
>    
>     <taskdef resource="cargo.tasks">
>     <classpath>
>         <fileset dir="cargo">
>         <include name="**/*.jar"/>
>         </fileset>
>     </classpath>
>     </taskdef>
>    
>     <target name="cargostart" depends="war">
>     <delete dir="${tomcatconfig.dir}" />
>     <mkdir dir="${tomcatlog.dir}"/>
>     <mkdir dir="${tomcatconfig.dir}"/>
>     <echo message="Starting Cargo..."/>
>     <echo message="Using tomcat.home = ${tomcat.home} "/>
>     <echo message="Using war = ${mywarfile} "/>
>     <!-- <echo message="Jars used = ${cargo-uberjar} ,
> ${cargo-antjar}"/> -->
>    
>     <cargo containerId="tomcat7x" home="${tomcat.home}"
> output="${tomcatlog.dir}/output.log"
>            log="${tomcatlog.dir}/cargo.log" action="run">
>         <configuration home="${tomcatconfig.dir}">
>         <property name="cargo.servlet.port" value="8080"/>
>         <property name="cargo.logging" value="low"/>
>         <deployable type="war" file="${mywarfile}"/>
>         </configuration>
>     </cargo>
>
>     </target>
>
>
> Should I generate the war after I start tomcat, or there's something I
> am missing ?
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Mansour Al Akeel | 4 Feb 12:40
Picon

Re: Run with tomcat7

woops! my fault. I had to add the full path to <at> file.

Thank you.


On Sat, Feb 4, 2012 at 6:06 AM, S. Ali Tokmen <nospam-E60e9lgXWaDl4B4owWWCMA@public.gmane.org> wrote:
Hi Mansour

Did you try with ${basedir}/target in the various variables to have full
paths?

Thank you

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com


On 2012/02/03 23:57, Mansour Al Akeel wrote:
> I am trying to run an existing application using cargo ant.
>
> The example given on the page http://cargo.codehaus.org/Ant+support
>
> deletes the resulting exploded war, then creates a tomcat installation
> in the target dir. Therefore I am unable to see the application.
>
> <property name="tomcat.home" value="/opt/tomcat"/>
>     <property name="tomcatlog.dir" value="target"/>
>     <property name="tomcatconfig.dir" value="target/tomcat"/>
>     <property name="mywarfile" value="target/webapps/myWebapp"/>
>
>     <taskdef resource="cargo.tasks">
>     <classpath>
>         <fileset dir="cargo">
>         <include name="**/*.jar"/>
>         </fileset>
>     </classpath>
>     </taskdef>
>
>     <target name="cargostart" depends="war">
>     <delete dir="${tomcatconfig.dir}" />
>     <mkdir dir="${tomcatlog.dir}"/>
>     <mkdir dir="${tomcatconfig.dir}"/>
>     <echo message="Starting Cargo..."/>
>     <echo message="Using tomcat.home = ${tomcat.home} "/>
>     <echo message="Using war = ${mywarfile} "/>
>     <!-- <echo message="Jars used = ${cargo-uberjar} ,
> ${cargo-antjar}"/> -->
>
>     <cargo containerId="tomcat7x" home="${tomcat.home}"
> output="${tomcatlog.dir}/output.log"
>            log="${tomcatlog.dir}/cargo.log" action="run">
>         <configuration home="${tomcatconfig.dir}">
>         <property name="cargo.servlet.port" value="8080"/>
>         <property name="cargo.logging" value="low"/>
>         <deployable type="war" file="${mywarfile}"/>
>         </configuration>
>     </cargo>
>
>     </target>
>
>
> Should I generate the war after I start tomcat, or there's something I
> am missing ?
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



S. Ali Tokmen | 4 Feb 12:54
Gravatar

Re: Run with tomcat7

Cheers :)

S. Ali Tokmen http://ali.tokmen.com/ GSM (ch): +41 79 207 29 22 [Swisscom] GSM (fr): +33 7 70 10 33 79 [Virgin Mobile] GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger and Yahoo IM contact details are on http://contact.ali.tokmen.com
On 2012/02/04 12:40, Mansour Al Akeel wrote:
woops! my fault. I had to add the full path to <at> file.

Thank you.


On Sat, Feb 4, 2012 at 6:06 AM, S. Ali Tokmen <nospam-E60e9lgXWaDl4B4owWWCMA@public.gmane.org> wrote:
Hi Mansour

Did you try with ${basedir}/target in the various variables to have full
paths?

Thank you

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 7 70 10 33 79 [Virgin Mobile]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com


On 2012/02/03 23:57, Mansour Al Akeel wrote:
> I am trying to run an existing application using cargo ant.
>
> The example given on the page http://cargo.codehaus.org/Ant+support
>
> deletes the resulting exploded war, then creates a tomcat installation
> in the target dir. Therefore I am unable to see the application.
>
> <property name="tomcat.home" value="/opt/tomcat"/>
>     <property name="tomcatlog.dir" value="target"/>
>     <property name="tomcatconfig.dir" value="target/tomcat"/>
>     <property name="mywarfile" value="target/webapps/myWebapp"/>
>
>     <taskdef resource="cargo.tasks">
>     <classpath>
>         <fileset dir="cargo">
>         <include name="**/*.jar"/>
>         </fileset>
>     </classpath>
>     </taskdef>
>
>     <target name="cargostart" depends="war">
>     <delete dir="${tomcatconfig.dir}" />
>     <mkdir dir="${tomcatlog.dir}"/>
>     <mkdir dir="${tomcatconfig.dir}"/>
>     <echo message="Starting Cargo..."/>
>     <echo message="Using tomcat.home = ${tomcat.home} "/>
>     <echo message="Using war = ${mywarfile} "/>
>     <!-- <echo message="Jars used = ${cargo-uberjar} ,
> ${cargo-antjar}"/> -->
>
>     <cargo containerId="tomcat7x" home="${tomcat.home}"
> output="${tomcatlog.dir}/output.log"
>            log="${tomcatlog.dir}/cargo.log" action="run">
>         <configuration home="${tomcatconfig.dir}">
>         <property name="cargo.servlet.port" value="8080"/>
>         <property name="cargo.logging" value="low"/>
>         <deployable type="war" file="${mywarfile}"/>
>         </configuration>
>     </cargo>
>
>     </target>
>
>
> Should I generate the war after I start tomcat, or there's something I
> am missing ?
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Gmane