File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat + Servlet + DB

 
Laurent Sate
Greenhorn
Posts: 10
  • 0
  • 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: 13045
6
  • 0
  • 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: 17622
39
Android Eclipse IDE Linux
  • 0
  • 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