You can just modify the build.xml so that ant will include them - ie.

<path id="compile.classpath">

    <!-- Include all JAR files that will be included in /WEB-INF/lib -->
    <!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** -->

    <!-- Include all elements that Tomcat exposes to applications -->
    <pathelement location="${catalina.home}/common/classes"/>
    <fileset dir="${catalina.home}/common/endorsed">
      <include name="*.jar"/>
    </fileset>
    <fileset dir="${catalina.home}/common/lib">
      <include name="*.jar"/>
    </fileset>
    <pathelement location="${catalina.home}/shared/classes"/>
    <fileset dir="${catalina.home}/shared/lib">
      <include name="*.jar"/>
    </fileset>

    <fileset dir="/usr/local/yourTourqueDirHere">
      <include name="*.jar"/>
    </fileset>

  </path>


...extract of tomcat 5 build.xml.txt doc taken from 
$CATALINA_HOME/webapps/tomcat-docs/appdev

hih

Derek Eide

On Wednesday 26 May 2004 11:59 am, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I've got a simple question (hope it's simple) about enabling Tomcat
> to "see" external jars. Is coping them to ../tomcat/common/lib the
> only way to do this??
>
> I'm trying to initialize Torque for servlets at Tomcat startup, and
> of course it can't find all the jars required by Torque. I know that
> I can copy everything to the above mentioned directory, but huh..
> maybe anyone of you knows other solutions to this problem?? (I'd
> prefer to do some configuration stuff rather then coping the files.)
>
> Regards
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to