RE: How to use jar files from CLASSPATH

2003-10-14 Thread Shapira, Yoav

Howdy,
What you should really do is get a DB2 JDBC pure java driver -- they're
out there (multiple vendors, some free some not) and perform just as
well as type 1 or type 2 drivers.  Then put this driver's jar file in
WEB-INF/lib.

But if you can't do the above, hack tomcat's startup scripts to append
$CLASSPATH to its own classpath.  If you look at
$CATALINA_HOME/bin/catalina.sh, it's easy enough.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 12:56 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\SQLLIB\java\d
b2jc
c
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\d
b2jc
c
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\
comm
o
n.jar

As you can see there is even a directory in CLASSPATH (that contains a
lot
of files).


Zsolt



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



How to use jar files from CLASSPATH

2003-10-10 Thread Zsolt Koppany
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\SQLLIB\java\db2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to use jar files from CLASSPATH

2003-10-10 Thread Cox, Charlie
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:[EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



How to use jar files from CLASSPATH

2003-10-10 Thread Zsolt Koppany
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\SQLLIB\java\db2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]