You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by kasim ahmed <ma...@googlemail.com> on 2009/12/09 10:23:40 UTC

tomcat server start-up with ant target

Hi,

I have target which start-up Tomcat server, I have some external jar(which I
shouldnot keep in common/lib) which need to lookup while server startup. I
have added property also fileset for jar lookup, but it is not referring the
jar where I have specified the location.

my target is:


<target name="tomcat-start" description="Start Tomcat Server"
depends="copy.bfconf,check.javaagent">
        <require-property property="bf.tomcat.dir"
                          error-suffix="Please ensure tomcat's location is
set in build.${environment}.properties"/>
        <property name="catalina.home" location="${bf.tomcat.dir}"/>
        <property name="catalina.base"
location="${target.root}/Build/target/tomcat/"/>
        <property name="bf.server.conf.location" value="BFConf/"/>
        <property name="BFconfigLocation"
location="${bf.server.conf.location}"/>
        <property name="log4j.location"
value="file:/${bf.server.conf.location}conf/bankfusion.log4j.conf"/>
        <echo message="${log4j.location}"/>
        <property name="xdebug" value=""/>
        <property name="xrunjdwp" value=""/>
        <property name="xjpda" value=""/>
       <!-- Here is the changes I have done -->
* <property name="db2jcc.jar"
location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc.jar"/>
        <property name="db2jcc_javax"
location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc_javax"/>
        <property name="db2jcc_license_cu"
location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc_license_cu"/>
        <fileset dir="${target.root}/Build/target/Tomcat/shared/lib" >
            <patternset>
                <include name="**/*.jar"/>
            </patternset>
        </fileset>
    *
        <java jar="${bf.tomcat.dir}/bin/bootstrap.jar" fork="true"
logerror="true" taskname="tomcat">
            <jvmarg value="-Dcatalina.home=${catalina.home}"/>
            <jvmarg value="-Dcatalina.base=${catalina.base}"/>
            <jvmarg value="-DBFconfigLocation=${BFconfigLocation}\"/>
            <jvmarg value="-DCE=on"/>

            <jvmarg
value="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"/>
            <jvmarg
value="-Djava.util.logging.config.file=tomcatLogs/conf/logging.properties"/>

            <jvmarg
value="-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl"/>
            <jvmarg
value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger"/>
            <jvmarg value="-Dlog4j.configuration=${log4j.location}"/>
            <!--<jvmarg
value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger"/>-->

            <!--<jvmarg
value="-Dlog4j.configuration=file:/C:/BF/tools/logs/server/log4j.xml"/>-->
            <jvmarg
value="-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
            <jvmarg value="-Xms128m"/>
            <jvmarg value="-Xmx768m"/>
            <jvmarg value="-Xrs"/>
            <jvmarg value="${xdebug}"/>
            <jvmarg value="${xrunjdwp}"/>
            <jvmarg value="${xjpda}"/>
            <jvmarg
value="-javaagent:${systemtestbase.jar}=${tomcat-wait-port},${tomcat-shutdown-port}"/>
        </java>
    </target>




On Wed, Dec 9, 2009 at 2:49 PM, <us...@ant.apache.org> wrote:

> Hi! This is the ezmlm program. I'm managing the
> user@ant.apache.org mailing list.
>
> I'm working for my owner, who can be reached
> at user-owner@ant.apache.org.
>
> Acknowledgment: I have added the address
>
>   mail2kasim@googlemail.com
>
> to the user mailing list.
>
> Welcome to user@ant.apache.org!
>
> Please save this message so that you know the address you are
> subscribed under, in case you later want to unsubscribe or change your
> subscription address.
>
>
> --- Administrative commands for the user list ---
>
> I can handle administrative requests automatically. Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
>
> To subscribe to the list, send a message to:
>   <us...@ant.apache.org>
>
> To remove your address from the list, send a message to:
>   <us...@ant.apache.org>
>
> Send mail to the following for info and FAQ for this list:
>   <us...@ant.apache.org>
>   <us...@ant.apache.org>
>
> Similar addresses exist for the digest list:
>   <us...@ant.apache.org>
>   <us...@ant.apache.org>
>
> To get messages 123 through 145 (a maximum of 100 per request), mail:
>   <us...@ant.apache.org>
>
> To get an index with subject and author for messages 123-456 , mail:
>   <us...@ant.apache.org>
>
> They are always returned as sets of 100, max 2000 per request,
> so you'll actually get 100-499.
>
> To receive all messages with the same subject as message 12345,
> send a short message to:
>   <us...@ant.apache.org>
>
> The messages should contain one line or word of text to avoid being
> treated as sp@m, but I will ignore their content.
> Only the ADDRESS you send to is important.
>
> You can start a subscription for an alternate address,
> for example "john@host.domain", just add a hyphen and your
> address (with '=' instead of '@') after the command word:
> <us...@ant.apache.org>
>
> To stop subscription for this address, mail:
> <us...@ant.apache.org>
>
> In both cases, I'll send a confirmation message to that address. When
> you receive it, simply reply to it to complete your subscription.
>
> If despite following these instructions, you do not get the
> desired results, please contact my owner at
> user-owner@ant.apache.org. Please be patient, my owner is a
> lot slower than I am ;-)
>
> --- Enclosed is a copy of the request I received.
>
> Return-Path: <ma...@googlemail.com>
> Received: (qmail 48622 invoked by uid 99); 9 Dec 2009 09:19:22 -0000
> Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
>    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 09:19:22
> +0000
> X-ASF-Spam-Status: No, hits=-1.5 required=5.0
>        tests=AWL,BAYES_00,HTML_MESSAGE
> X-Spam-Check-By: apache.org
> Received-SPF: pass (athena.apache.org: domain of mail2kasim@googlemail.comdesignates 209.85.223.188 as permitted sender)
> Received: from [209.85.223.188] (HELO mail-iw0-f188.google.com)
> (209.85.223.188)
>    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 09:19:19
> +0000
> Received: by iwn26 with SMTP id 26so4149789iwn.14
>        for <user-sc.1260350278.cpjepplobihgapkhcbek-mail2kasim=
> googlemail.com@ant.apache.org>; Wed, 09 Dec 2009 01:18:59 -0800 (PST)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>        d=googlemail.com; s=gamma;
>        h=domainkey-signature:mime-version:received:in-reply-to:references
>         :date:message-id:subject:from:to:content-type;
>        bh=nSu5oz81mV1XpvDyxc9ea4QBDx/KypBoAMGJneJoNAU=;
>        b=J3mxXC+U1nkKJQIQ74BUluVbrGNosqwztSzRh96QE39zjwrNabXhQ1slgDN08pTV3I
>
> RFphL16Y5mHUpGXe3A6+NrA3V/cVUVqiypMT3ZAxnBa2pdTQJC1bA7k4dmSR+e3+wBJY
>         zfSTlKTvyny+YY6MoqPxYeal7vPgrkivXG2J0=
> DomainKey-Signature: a=rsa-sha1; c=nofws;
>        d=googlemail.com; s=gamma;
>
>  h=mime-version:in-reply-to:references:date:message-id:subject:from:to
>         :content-type;
>        b=xnRZHZv2eTdItk55Zc/KGBnFf6wfgW6pHebQNspaanswP90INvkBaIrOKLQ3u6NfM+
>
> zUmbVy2mtbAX+PFhsnWBwRS8+2ExqCg8q0JH/4y9Beb9NqP44jBZSIib9O8tNRbURmz7
>         AXPUS/VDE36F2bncWpqQApGorBNWEfWH4oK2M=
> MIME-Version: 1.0
> Received: by 10.231.83.75 with SMTP id e11mr1690965ibl.11.1260350338952;
> Wed,
>        09 Dec 2009 01:18:58 -0800 (PST)
> In-Reply-To: <12...@ant.apache.org>
> References: <12...@ant.apache.org>
> Date: Wed, 9 Dec 2009 14:48:58 +0530
> Message-ID: <23...@mail.gmail.com>
> Subject: Re: confirm subscribe to user@ant.apache.org
> From: kasim ahmed <ma...@googlemail.com>
> To: user-sc.1260350278.cpjepplobihgapkhcbek-mail2kasim=googlemail.com@
> ant.apache.org
> Content-Type: multipart/alternative; boundary=000e0cd6aa063eed1d047a482e82
>
> --000e0cd6aa063eed1d047a482e82
> Content-Type: text/plain; charset=ISO-8859-1
>
> confirm
>
> On Wed, Dec 9, 2009 at 2:47 PM, <us...@ant.apache.org> wrote:
>
> > Hi! This is the ezmlm program. I'm managing the
> > user@ant.apache.org mailing list.
> >
> > I'm working for my owner, who can be reached
> > at user-owner@ant.apache.org.
> >
> > To confirm that you would like
> >
> >   mail2kasim@googlemail.com
> >
> > added to the user mailing list, please send
> > a short reply to this address:
> >
> >   user-sc.1260350278.cpjepplobihgapkhcbek-mail2kasim=googlemail.com@
> > ant.apache.org
> >
> > Usually, this happens when you just hit the "reply" button.
> > If this does not work, simply copy the address and paste it into
> > the "To:" field of a new message.
> >
> > or click here:
> >        mailto:user-sc.1260350278.cpjepplobihgapkhcbek-mail2kasim=
> > googlemail.com@ant.apache.org
> >
> > This confirmation serves two purposes. First, it verifies that I am able
> > to get mail through to you. Second, it protects you in case someone
> > forges a subscription request in your name.
> >
> > Some mail programs are broken and cannot handle long addresses. If you
> > cannot reply to this request, instead send a message to
> > <us...@ant.apache.org> and put the
> > entire address listed above into the "Subject:" line.
> >
> >
> > --- Administrative commands for the user list ---
> >
> > I can handle administrative requests automatically. Please
> > do not send them to the list address! Instead, send
> > your message to the correct command address:
> >
> > To subscribe to the list, send a message to:
> >   <us...@ant.apache.org>
> >
> > To remove your address from the list, send a message to:
> >   <us...@ant.apache.org>
> >
> > Send mail to the following for info and FAQ for this list:
> >   <us...@ant.apache.org>
> >   <us...@ant.apache.org>
> >
> > Similar addresses exist for the digest list:
> >   <us...@ant.apache.org>
> >   <us...@ant.apache.org>
> >
> > To get messages 123 through 145 (a maximum of 100 per request), mail:
> >   <us...@ant.apache.org>
> >
> > To get an index with subject and author for messages 123-456 , mail:
> >   <us...@ant.apache.org>
> >
> > They are always returned as sets of 100, max 2000 per request,
> > so you'll actually get 100-499.
> >
> > To receive all messages with the same subject as message 12345,
> > send a short message to:
> >   <us...@ant.apache.org>
> >
> > The messages should contain one line or word of text to avoid being
> > treated as sp@m, but I will ignore their content.
> > Only the ADDRESS you send to is important.
> >
> > You can start a subscription for an alternate address,
> > for example "john@host.domain", just add a hyphen and your
> > address (with '=' instead of '@') after the command word:
> > <us...@ant.apache.org>
> >
> > To stop subscription for this address, mail:
> > <us...@ant.apache.org>
> >
> > In both cases, I'll send a confirmation message to that address. When
> > you receive it, simply reply to it to complete your subscription.
> >
> > If despite following these instructions, you do not get the
> > desired results, please contact my owner at
> > user-owner@ant.apache.org. Please be patient, my owner is a
> > lot slower than I am ;-)
> >
> > --- Enclosed is a copy of the request I received.
> >
> > Return-Path: <ma...@googlemail.com>
> > Received: (qmail 48051 invoked by uid 99); 9 Dec 2009 09:17:58 -0000
> > Received: from athena.apache.org (HELO athena.apache.org)
> (140.211.11.136)
> >    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 09:17:58
> > +0000
> > X-ASF-Spam-Status: No, hits=-0.4 required=5.0
> >        tests=BAYES_00,HTML_MESSAGE,TVD_SPACE_RATIO
> > X-Spam-Check-By: apache.org
> > Received-SPF: pass (athena.apache.org: domain of
> mail2kasim@googlemail.comdesignates 209.85.223.188 as permitted sender)
> > Received: from [209.85.223.188] (HELO mail-iw0-f188.google.com)
> > (209.85.223.188)
> >    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 09:17:56
> > +0000
> > Received: by iwn26 with SMTP id 26so4149325iwn.14
> >        for <us...@ant.apache.org>; Wed, 09 Dec 2009 01:17:35
> > -0800 (PST)
> > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
> >        d=googlemail.com; s=gamma;
> >
>  h=domainkey-signature:mime-version:received:date:message-id:subject
> >         :from:to:content-type;
> >        bh=0GPwIrQgWdylG4KO4AE7jpntFPh6O3tB6XBvzDgu7ZU=;
> >
>  b=vX2aWmh4XESFP3/R1a196QoTWPv30PPLluW8L1SsE4hpqLmEpIdeA8yHro2d6m5Sie
> >
> > +wGRBzk0gXEY20+62+3qJuz7zBOtKMDTxhwe33uq6GCY4RhdCMD041hSvqeW7Pe9ZwEc
> >         tfXtard4vk6qGw53KI7qYcpiN5lHaBdZH/O+U=
> > DomainKey-Signature: a=rsa-sha1; c=nofws;
> >        d=googlemail.com; s=gamma;
> >        h=mime-version:date:message-id:subject:from:to:content-type;
> >
>  b=BoyXZ/Av8wR8fMaFmjhV2+Sz1t596L41JUyZAfhdI5XrH+pJnbV3EC5UBqJYahYjFC
> >
> > qSRxr9m1f9ML/i0sIC8H0mqCGCibX2vH8dhBW1wOsFzb09D8YKrqoe30ZiT2kDdq0Aoh
> >         48tNvM5ex+oQ4qfzY2tGKQjgyoNc0/jv8Ts8g=
> > MIME-Version: 1.0
> > Received: by 10.231.122.103 with SMTP id
> k39mr1357891ibr.10.1260350255476;
> >        Wed, 09 Dec 2009 01:17:35 -0800 (PST)
> > Date: Wed, 9 Dec 2009 14:47:35 +0530
> > Message-ID: <238c963d0912090117u23f1d670q225b4fdd0025f05f@mail.gmail.com
> >
> > Subject: subscribe
> > From: kasim ahmed <ma...@googlemail.com>
> > To: user-subscribe@ant.apache.org
> > Content-Type: multipart/alternative;
> boundary=0016e646084845306e047a4829a0
> >
> > --0016e646084845306e047a4829a0
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> >
> >
> > --0016e646084845306e047a4829a0
> > Content-Type: text/html; charset=ISO-8859-1
> >
> > <br>
> >
> > --0016e646084845306e047a4829a0--
> >
>
> --000e0cd6aa063eed1d047a482e82
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> confirm<br><br><div class=3D"gmail_quote">On Wed, Dec 9, 2009 at 2:47 PM,
>  =
> <span dir=3D"ltr">&lt;<a href=3D"mailto:user-help@ant.apache.org
> ">user-help=
> @ant.apache.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"
> =
> style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt
> 0.8=
> ex; padding-left: 1ex;">
> Hi! This is the ezmlm program. I&#39;m managing the<br>
> <a href=3D"mailto:user@ant.apache.org">user@ant.apache.org</a> mailing
> list=
> .<br>
> <br>
> I&#39;m working for my owner, who can be reached<br>
> at <a href=3D"mailto:user-owner@ant.apache.org">user-owner@ant.apache.org
> </=
> a>.<br>
> <br>
> To confirm that you would like<br>
> <br>
>  =A0 <a href=3D"mailto:mail2kasim@googlemail.com">
> mail2kasim@googlemail.com=
> </a><br>
> <br>
> added to the user mailing list, please send<br>
> a short reply to this address:<br>
> <br>
>  =A0 user-sc.1260350278.cpjepplobihgapkhcbek-mail2kasim=3D<a
> href=3D"http:/=
> /googlemail.com" target=3D"_blank">googlemail.com</a>@<a href=3D"
> http://ant=
> .apache.org" target=3D"_blank">ant.apache.org</a><br>
> <br>
> Usually, this happens when you just hit the &quot;reply&quot; button.<br>
> If this does not work, simply copy the address and paste it into<br>
> the &quot;To:&quot; field of a new message.<br>
> <br>
> or click here:<br>
>  =A0 =A0 =A0 =A0mailto:<a href=3D"mailto:
> user-sc.1260350278.cpjepplobihgapk=
>
> hcbek-mail2kasim">user-sc.1260350278.cpjepplobihgapkhcbek-mail2kasim</a>=3D=
> <a href=3D"http://googlemail.com" target=3D"_blank">googlemail.com</a>@<a
> h=
> ref=3D"http://ant.apache.org" target=3D"_blank">ant.apache.org</a><br>
>
> <br>
> This confirmation serves two purposes. First, it verifies that I am
> able<br=
> >
> to get mail through to you. Second, it protects you in case someone<br>
> forges a subscription request in your name.<br>
> <br>
> Some mail programs are broken and cannot handle long addresses. If you<br>
> cannot reply to this request, instead send a message to<br>
> &lt;<a href=3D"mailto:user-request@ant.apache.org
> ">user-request@ant.apache.=
> org</a>&gt; and put the<br>
> entire address listed above into the &quot;Subject:&quot; line.<br>
> <br>
> <br>
> --- Administrative commands for the user list ---<br>
> <br>
> I can handle administrative requests automatically. Please<br>
> do not send them to the list address! Instead, send<br>
> your message to the correct command address:<br>
> <br>
> To subscribe to the list, send a message to:<br>
>  =A0 &lt;<a href=3D"mailto:user-subscribe@ant.apache.org
> ">user-subscribe@an=
> t.apache.org</a>&gt;<br>
> <br>
> To remove your address from the list, send a message to:<br>
>  =A0 &lt;<a href=3D"mailto:user-unsubscribe@ant.apache.org
> ">user-unsubscrib=
> e@ant.apache.org</a>&gt;<br>
> <br>
> Send mail to the following for info and FAQ for this list:<br>
>  =A0 &lt;<a href=3D"mailto:user-info@ant.apache.org
> ">user-info@ant.apache.o=
> rg</a>&gt;<br>
>  =A0 &lt;<a href=3D"mailto:user-faq@ant.apache.org">
> user-faq@ant.apache.org=
> </a>&gt;<br>
> <br>
> Similar addresses exist for the digest list:<br>
>  =A0 &lt;<a href=3D"mailto:user-digest-subscribe@ant.apache.org
> ">user-diges=
> t-subscribe@ant.apache.org</a>&gt;<br>
>  =A0 &lt;<a href=3D"mailto:user-digest-unsubscribe@ant.apache.org
> ">user-dig=
> est-unsubscribe@ant.apache.org</a>&gt;<br>
> <br>
> To get messages 123 through 145 (a maximum of 100 per request), mail:<br>
>  =A0 &lt;<a href=3D"mailto:user-get.123_145@ant.apache.org
> ">user-get.123_14=
> 5@ant.apache.org</a>&gt;<br>
> <br>
> To get an index with subject and author for messages 123-456 , mail:<br>
>  =A0 &lt;<a href=3D"mailto:user-index.123_456@ant.apache.org
> ">user-index.12=
> 3_456@ant.apache.org</a>&gt;<br>
> <br>
> They are always returned as sets of 100, max 2000 per request,<br>
> so you&#39;ll actually get 100-499.<br>
> <br>
> To receive all messages with the same subject as message 12345,<br>
> send a short message to:<br>
>  =A0 &lt;<a href=3D"mailto:user-thread.12345@ant.apache.org
> ">user-thread.12=
> 345@ant.apache.org</a>&gt;<br>
> <br>
> The messages should contain one line or word of text to avoid being<br>
> treated as sp@m, but I will ignore their content.<br>
> Only the ADDRESS you send to is important.<br>
> <br>
> You can start a subscription for an alternate address,<br>
> for example &quot;john@host.domain&quot;, just add a hyphen and your<br>
> address (with &#39;=3D&#39; instead of &#39;@&#39;) after the command
> word:=
> <br>
> &lt;user-subscribe-john=3D<a href=3D"mailto:host.domain@ant.apache.org
> ">hos=
> t.domain@ant.apache.org</a>&gt;<br>
> <br>
> To stop subscription for this address, mail:<br>
> &lt;user-unsubscribe-john=3D<a href=3D"mailto:host.domain@ant.apache.org
> ">h=
> ost.domain@ant.apache.org</a>&gt;<br>
> <br>
> In both cases, I&#39;ll send a confirmation message to that address.
> When<b=
> r>
> you receive it, simply reply to it to complete your subscription.<br>
> <br>
> If despite following these instructions, you do not get the<br>
> desired results, please contact my owner at<br>
> <a href=3D"mailto:user-owner@ant.apache.org">user-owner@ant.apache.org
> </a>.=
>  Please be patient, my owner is a<br>
> lot slower than I am ;-)<br>
> <br>
> --- Enclosed is a copy of the request I received.<br>
> <br>
> Return-Path: &lt;<a href=3D"mailto:mail2kasim@googlemail.com
> ">mail2kasim@go=
> oglemail.com</a>&gt;<br>
> Received: (qmail 48051 invoked by uid 99); 9 Dec 2009 09:17:58 -0000<br>
> Received: from <a href=3D"http://athena.apache.org"
> target=3D"_blank">athen=
> a.apache.org</a> (HELO <a href=3D"http://athena.apache.org"
> target=3D"_blan=
> k">athena.apache.org</a>) (140.211.11.136)<br>
>  =A0 =A0by <a href=3D"http://apache.org" target=3D"_blank">apache.org</a>
> (=
> qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 09:17:58 +0000<br>
> X-ASF-Spam-Status: No, hits=3D-0.4 required=3D5.0<br>
>  =A0 =A0 =A0 =A0tests=3DBAYES_00,HTML_MESSAGE,TVD_SPACE_RATIO<br>
> X-Spam-Check-By: <a href=3D"http://apache.org" target=3D"_blank">
> apache.org=
> </a><br>
> Received-SPF: pass (<a href=3D"http://athena.apache.org"
> target=3D"_blank">=
> athena.apache.org</a>: domain of <a href=3D"mailto:
> mail2kasim@googlemail.co=
> m">mail2kasim@googlemail.com</a> designates 209.85.223.188 as permitted
> sen=
> der)<br>
>
> Received: from [209.85.223.188] (HELO <a href=3D"
> http://mail-iw0-f188.googl=
> e.com" target=3D"_blank">mail-iw0-f188.google.com</a>)
> (209.85.223.188)<br>
>  =A0 =A0by <a href=3D"http://apache.org" target=3D"_blank">apache.org</a>
> (=
> qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 09:17:56 +0000<br>
> Received: by iwn26 with SMTP id 26so4149325iwn.14<br>
>  =A0 =A0 =A0 =A0for &lt;<a href=3D"mailto:user-subscribe@ant.apache.org
> ">us=
> er-subscribe@ant.apache.org</a>&gt;; Wed, 09 Dec 2009 01:17:35 -0800
> (PST)<=
> br>
> DKIM-Signature: v=3D1; a=3Drsa-sha256; c=3Drelaxed/relaxed;<br>
>  =A0 =A0 =A0 =A0d=3D<a href=3D"http://googlemail.com"
> target=3D"_blank">goo=
> glemail.com</a>; s=3Dgamma;<br>
>  =A0 =A0 =A0
> =A0h=3Ddomainkey-signature:mime-version:received:date:message-=
> id:subject<br>
>  =A0 =A0 =A0 =A0 :from:to:content-type;<br>
>  =A0 =A0 =A0 =A0bh=3D0GPwIrQgWdylG4KO4AE7jpntFPh6O3tB6XBvzDgu7ZU=3D;<br>
>  =A0 =A0 =A0
> =A0b=3DvX2aWmh4XESFP3/R1a196QoTWPv30PPLluW8L1SsE4hpqLmEpIdeA8y=
> Hro2d6m5Sie<br>
>  =A0 =A0 =A0 =A0
> +wGRBzk0gXEY20+62+3qJuz7zBOtKMDTxhwe33uq6GCY4RhdCMD041hSvq=
> eW7Pe9ZwEc<br>
>  =A0 =A0 =A0 =A0 tfXtard4vk6qGw53KI7qYcpiN5lHaBdZH/O+U=3D<br>
> DomainKey-Signature: a=3Drsa-sha1; c=3Dnofws;<br>
>  =A0 =A0 =A0 =A0d=3D<a href=3D"http://googlemail.com"
> target=3D"_blank">goo=
> glemail.com</a>; s=3Dgamma;<br>
>  =A0 =A0 =A0
> =A0h=3Dmime-version:date:message-id:subject:from:to:content-ty=
> pe;<br>
>  =A0 =A0 =A0
> =A0b=3DBoyXZ/Av8wR8fMaFmjhV2+Sz1t596L41JUyZAfhdI5XrH+pJnbV3EC5=
> UBqJYahYjFC<br>
>  =A0 =A0 =A0 =A0
> qSRxr9m1f9ML/i0sIC8H0mqCGCibX2vH8dhBW1wOsFzb09D8YKrqoe30Zi=
> T2kDdq0Aoh<br>
>  =A0 =A0 =A0 =A0 48tNvM5ex+oQ4qfzY2tGKQjgyoNc0/jv8Ts8g=3D<br>
> MIME-Version: 1.0<br>
> Received: by 10.231.122.103 with SMTP id
> k39mr1357891ibr.10.1260350255476;<=
> br>
>  =A0 =A0 =A0 =A0Wed, 09 Dec 2009 01:17:35 -0800 (PST)<br>
> Date: Wed, 9 Dec 2009 14:47:35 +0530<br>
> Message-ID: &lt;<a href=3D"mailto:
> 238c963d0912090117u23f1d670q225b4fdd0025f=
> 05f@mail.gmail.com
> ">238c963d0912090117u23f1d670q225b4fdd0025f05f@mail.gmail=
> .com</a>&gt;<br>
> Subject: subscribe<br>
> From: kasim ahmed &lt;<a href=3D"mailto:mail2kasim@googlemail.com
> ">mail2kas=
> im@googlemail.com</a>&gt;<br>
> To: <a href=3D"mailto:user-subscribe@ant.apache.org
> ">user-subscribe@ant.apa=
> che.org</a><br>
> Content-Type: multipart/alternative;
> boundary=3D0016e646084845306e047a4829a=
> 0<br>
> <br>
> --0016e646084845306e047a4829a0<br>
> Content-Type: text/plain; charset=3DISO-8859-1<br>
> <br>
> <br>
> <br>
> --0016e646084845306e047a4829a0<br>
> Content-Type: text/html; charset=3DISO-8859-1<br>
> <br>
> &lt;br&gt;<br>
> <br>
> --0016e646084845306e047a4829a0--<br>
> </blockquote></div><br>
>
> --000e0cd6aa063eed1d047a482e82--
>

Re: tomcat server start-up with ant target

Posted by Antoine Levy Lambert <an...@gmx.de>.
Hello Kasim,

you are defining a fileset, but you are not referencing it afterwards. 
To be able to reference the fileset in your <java/> invocation,
you would need to give an id to the fileset, like this

<fileset id="foo" dir="somedir">
   <include name="*/*.jar"/>
</fileset>

<java classname ...

    <classpath>
        <fileset refid="foo"/>
    </classpath>

</java>

Anyway, when you start tomcat, the bootstrap.jar by default picks up all 
the libs which are in $CATALINA_HOME/lib as far as I know. Not sure 
about shared/lib.

Regards,

Antoine


kasim ahmed wrote:
> Hi,
>
> I have target which start-up Tomcat server, I have some external jar(which I
> shouldnot keep in common/lib) which need to lookup while server startup. I
> have added property also fileset for jar lookup, but it is not referring the
> jar where I have specified the location.
>
> my target is:
>
>
> <target name="tomcat-start" description="Start Tomcat Server"
> depends="copy.bfconf,check.
>   
>> javaagent">
>>         <require-property property="bf.tomcat.dir"
>>                           error-suffix="Please ensure tomcat's location is
>> set in build.${environment}.properties"/>
>>         <property name="catalina.home" location="${bf.tomcat.dir}"/>
>>         <property name="catalina.base"
>> location="${target.root}/Build/target/tomcat/"/>
>>         <property name="bf.server.conf.location" value="BFConf/"/>
>>         <property name="BFconfigLocation"
>> location="${bf.server.conf.location}"/>
>>         <property name="log4j.location"
>> value="file:/${bf.server.conf.location}conf/bankfusion.log4j.conf"/>
>>         <echo message="${log4j.location}"/>
>>         <property name="xdebug" value=""/>
>>         <property name="xrunjdwp" value=""/>
>>         <property name="xjpda" value=""/>
>>        <!-- Here is the changes I have done -->
>> * <property name="db2jcc.jar"
>> location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc.jar"/>
>>         <property name="db2jcc_javax"
>> location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc_javax"/>
>>         <property name="db2jcc_license_cu"
>> location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc_license_cu"/>
>>         <fileset dir="${target.root}/Build/target/Tomcat/shared/lib" >
>>             <patternset>
>>                 <include name="**/*.jar"/>
>>             </patternset>
>>         </fileset>
>>     *
>>         <java jar="${bf.tomcat.dir}/bin/bootstrap.jar" fork="true"
>> logerror="true" taskname="tomcat">
>>             <jvmarg value="-Dcatalina.home=${catalina.home}"/>
>>             <jvmarg value="-Dcatalina.base=${catalina.base}"/>
>>             <jvmarg value="-DBFconfigLocation=${BFconfigLocation}\"/>
>>             <jvmarg value="-DCE=on"/>
>>
>>             <jvmarg
>> value="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"/>
>>             <jvmarg
>> value="-Djava.util.logging.config.file=tomcatLogs/conf/logging.properties"/>
>>
>>             <jvmarg
>> value="-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl"/>
>>             <jvmarg
>> value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger"/>
>>             <jvmarg value="-Dlog4j.configuration=${log4j.location}"/>
>>             <!--<jvmarg
>> value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger"/>-->
>>
>>             <!--<jvmarg
>> value="-Dlog4j.configuration=file:/C:/BF/tools/logs/server/log4j.xml"/>-->
>>             <jvmarg
>> value="-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
>>             <jvmarg value="-Xms128m"/>
>>             <jvmarg value="-Xmx768m"/>
>>             <jvmarg value="-Xrs"/>
>>             <jvmarg value="${xdebug}"/>
>>             <jvmarg value="${xrunjdwp}"/>
>>             <jvmarg value="${xjpda}"/>
>>             <jvmarg
>> value="-javaagent:${systemtestbase.jar}=${tomcat-wait-port},${tomcat-shutdown-port}"/>
>>         </java>
>>     </target>
>>
>>     
>
>   


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


tomcat server start-up with ant target

Posted by kasim ahmed <ma...@googlemail.com>.
Hi,

I have target which start-up Tomcat server, I have some external jar(which I
shouldnot keep in common/lib) which need to lookup while server startup. I
have added property also fileset for jar lookup, but it is not referring the
jar where I have specified the location.

my target is:


<target name="tomcat-start" description="Start Tomcat Server"
depends="copy.bfconf,check.
>
> javaagent">
>         <require-property property="bf.tomcat.dir"
>                           error-suffix="Please ensure tomcat's location is
> set in build.${environment}.properties"/>
>         <property name="catalina.home" location="${bf.tomcat.dir}"/>
>         <property name="catalina.base"
> location="${target.root}/Build/target/tomcat/"/>
>         <property name="bf.server.conf.location" value="BFConf/"/>
>         <property name="BFconfigLocation"
> location="${bf.server.conf.location}"/>
>         <property name="log4j.location"
> value="file:/${bf.server.conf.location}conf/bankfusion.log4j.conf"/>
>         <echo message="${log4j.location}"/>
>         <property name="xdebug" value=""/>
>         <property name="xrunjdwp" value=""/>
>         <property name="xjpda" value=""/>
>        <!-- Here is the changes I have done -->
> * <property name="db2jcc.jar"
> location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc.jar"/>
>         <property name="db2jcc_javax"
> location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc_javax"/>
>         <property name="db2jcc_license_cu"
> location="${target.root}/Build/target/Tomcat/shared/lib/db2jcc_license_cu"/>
>         <fileset dir="${target.root}/Build/target/Tomcat/shared/lib" >
>             <patternset>
>                 <include name="**/*.jar"/>
>             </patternset>
>         </fileset>
>     *
>         <java jar="${bf.tomcat.dir}/bin/bootstrap.jar" fork="true"
> logerror="true" taskname="tomcat">
>             <jvmarg value="-Dcatalina.home=${catalina.home}"/>
>             <jvmarg value="-Dcatalina.base=${catalina.base}"/>
>             <jvmarg value="-DBFconfigLocation=${BFconfigLocation}\"/>
>             <jvmarg value="-DCE=on"/>
>
>             <jvmarg
> value="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"/>
>             <jvmarg
> value="-Djava.util.logging.config.file=tomcatLogs/conf/logging.properties"/>
>
>             <jvmarg
> value="-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl"/>
>             <jvmarg
> value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger"/>
>             <jvmarg value="-Dlog4j.configuration=${log4j.location}"/>
>             <!--<jvmarg
> value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger"/>-->
>
>             <!--<jvmarg
> value="-Dlog4j.configuration=file:/C:/BF/tools/logs/server/log4j.xml"/>-->
>             <jvmarg
> value="-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
>             <jvmarg value="-Xms128m"/>
>             <jvmarg value="-Xmx768m"/>
>             <jvmarg value="-Xrs"/>
>             <jvmarg value="${xdebug}"/>
>             <jvmarg value="${xrunjdwp}"/>
>             <jvmarg value="${xjpda}"/>
>             <jvmarg
> value="-javaagent:${systemtestbase.jar}=${tomcat-wait-port},${tomcat-shutdown-port}"/>
>         </java>
>     </target>
>