tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: How to use jar files from CLASSPATH
Date Fri, 10 Oct 2003 12:25:03 GMT
tomcat doesn't use the classpath. You can copy your jar into /common/lib and
it will be shared by all your webapps. 

see the classloader doc:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie

> -----Original Message-----
> From: Zsolt Koppany [mailto:zkoppanylist@intland.com]
> Sent: Friday, October 10, 2003 1:17 AM
> To: Tomcat Users List
> Subject: How to use jar files from CLASSPATH
> 
> 
> Hi,
> 
> my application has to use DB2 JDBC that is in the CLASSPATH. 
> How can I get
> tomcat-4.1.24 to search for entries from CLASSPATH?
> 
> I understand that I could probably copy the entries from 
> CLASSPATH into
> .../WEB-INF/lib, but this JDBC driver does use native 
> libraries, thus I
> would not like to copy them into .../WEB-INF/lib.
> 
> This is how CLASSPATH is defined after DB2 installation:
> 
> .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLL
> IB\java\db2jcc
> .jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
> IB\java\db2jcc
> _license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQL
> LIB\java\commo
> n.jar
> 
> As you can see there is even a directory in CLASSPATH (that 
> contains a lot
> of files).
> 
> 
> Zsolt
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

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


Mime
View raw message