You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Abhijit Dixit <ab...@123india.com> on 2002/02/15 20:06:27 UTC
Deploying external dependencies
Hi,
I'm trying to deploy a servlet using the sample build.xml file bundled with
the Apache Tomcat distribution. My servlet needs some external JAR files
and these have to be copied to the WEB-INF/lib directory. I added the
following entries to my build.xml file ...
<property name="soap.jar"
value="/u0/adixit/Downloads/soap-2_2/build/lib/soap.jar"/>
<property name="xercesImpl.jar"
value="/u0/adixit/Downloads/xerces-2_0_0/build/lib/xercesImpl.jar"/>
<property name="xmlParserAPIs.jar"
value="/u0/adixit/Downloads/xerces-2_0_0/build/lib/xmlParserAPIs.jar"/>
but when I do a deploy with Ant, although all the other files are deployed
properly, these JAR files are not copied to the lib directory. Anything
wrong with the above syntax ?
-Abhijit
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: Deploying external dependencies
Posted by Kirby Vandivort <kv...@ks.uiuc.edu>.
You also need to add directives to the deploy target to actually copy
the files over.. Something like:
<copy todir="${deploy.home}/WEB-INF/lib" file="${soap.jar}"/>
<copy todir="${deploy.home}/WEB-INF/lib" file="${xercesImpl.jar}"/>
<copy todir="${deploy.home}/WEB-INF/lib" file="${xmlParserAPIs.jar}"/>
I'm assuming there aren't any licensing issues with redistribution of
these.. (I've no idea.. Just thought I would toss this out)
On Fri, Feb 15, 2002 at 11:06:27AM -0800, Abhijit Dixit wrote:
> Hi,
>
> I'm trying to deploy a servlet using the sample build.xml file bundled with
> the Apache Tomcat distribution. My servlet needs some external JAR files
> and these have to be copied to the WEB-INF/lib directory. I added the
> following entries to my build.xml file ...
>
> <property name="soap.jar"
> value="/u0/adixit/Downloads/soap-2_2/build/lib/soap.jar"/>
> <property name="xercesImpl.jar"
> value="/u0/adixit/Downloads/xerces-2_0_0/build/lib/xercesImpl.jar"/>
> <property name="xmlParserAPIs.jar"
> value="/u0/adixit/Downloads/xerces-2_0_0/build/lib/xmlParserAPIs.jar"/>
>
> but when I do a deploy with Ant, although all the other files are deployed
> properly, these JAR files are not copied to the lib directory. Anything
> wrong with the above syntax ?
>
> -Abhijit
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
--
Kirby Vandivort Theoretical Biophysics Group
Email: kvandivo@ks.uiuc.edu 3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/ University of Illinois
Phone: (217) 244-5711 405 N. Mathews Ave
Fax : (217) 244-6078 Urbana, IL 61801, USA
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: Deploying external dependencies
Posted by Greg Trasuk <st...@on.aibn.com>.
Hi there:
The lines you added define the properties. You also need to add lines into
your 'deploy' target to actually do the copying. Look for the <target
name='deploy'...> element, and add something like the following to it. For
instance for your 'soap.jar' file:
<copy todir="${deploy.home}/WEB-INF/lib" file="${soap.jar}"/>
Cheers,
Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca
> -----Original Message-----
> From: Abhijit Dixit [mailto:abhijit_dixit@123india.com]
> Sent: February 15, 2002 14:06
> To: tomcat-user@jakarta.apache.org
> Subject: Deploying external dependencies
>
>
> Hi,
>
> I'm trying to deploy a servlet using the sample build.xml
> file bundled with
> the Apache Tomcat distribution. My servlet needs some
> external JAR files
> and these have to be copied to the WEB-INF/lib directory. I added the
> following entries to my build.xml file ...
>
> <property name="soap.jar"
> value="/u0/adixit/Downloads/soap-2_2/build/lib/soap.jar"/>
> <property name="xercesImpl.jar"
>
> value="/u0/adixit/Downloads/xerces-2_0_0/build/lib/xercesImpl.jar"/>
> <property name="xmlParserAPIs.jar"
>
> value="/u0/adixit/Downloads/xerces-2_0_0/build/lib/xmlParserAP
> Is.jar"/>
>
> but when I do a deploy with Ant, although all the other files
> are deployed
> properly, these JAR files are not copied to the lib
> directory. Anything
> wrong with the above syntax ?
>
> -Abhijit
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>