• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat + Servlet + DB

 
Laurent Sate
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic