This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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: 13056
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: 18009
47
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