File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Tomcat + Servlet + DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat + Servlet + DB" Watch "Tomcat + Servlet + DB" New topic
Author

Tomcat + Servlet + DB

Laurent Sate
Greenhorn

Joined: Dec 18, 2001
Posts: 10
Hello,
I have a servlet under tomcat 4.01. This servlet attack a DB2 database. In fact, this servlet doesn't find the driver to connect to the DB, however my classpath is set correctly:

Must I configure another varibale in tomcat?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12755
    
    5
Put the jar containing the driver in the TOMCAT_HOME/common/lib directory. I think the documentation has a discussion about how Tomcat 4 locates library files.
Bill
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

If your error message is accurate, you've mistyped the drivername. Java is case-sensitive even on OS's such as Windows that aren't. Not "COM.ibm", but "com.ibm"


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat + Servlet + DB
 
Similar Threads
DB2 jdbc driver 6.2 on linux red Hat 7.2 it doesn't Work with Iplanet web server 6.0
JVM crash
DB2 jdbc driver 6.2 on linux red Hat 7.2 it doesn't Work with Iplanet web server 6.0
Setting the attribute
DB2 jdbc driver 6.2 on linux red Hat 7.2 it doesn't Work with Iplanet web server 6.0