Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC Driver in Tomcat 4.0  RSS feed

 
Lijun An
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I understand that for a web application JDBC Driver is supposed to be put in WEB-INF\LIB, isn't it? I have a web application deployed on to Tomcat 4.0. I use Oracle JDBC Thin Driver. It's bundled in a zip file called classes12.zip. I put it in WEB-INF\LIB. When I start the webapp, and load page to get data from oracle, Tomcat told me that it cannot find JDBC Driver class. Anybody can help me on this?
Thanks in advance.
Lijun
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put it in <CATALINA_HOME>/common/lib and also, rename the file from classes12.zip to classes12.jar
 
Sunny Liu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lijun
All you have to do is that rename classes12.zip to classes12.jar in you web-INF\lib directory
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!