Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thin Driver not working

 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Friends,
Am trying to use Oracle Thin Driver in a java bean which establishes a connection. But it is giving ClassNotFoundException. I have placed the jar file containing the Oracle Driver in the classpath. The same connection code worked fine with standalone application as well as 9iAS.
The snippet is as follows:
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc racle:thin:@ip_of_DBServer ort_no:server","usernm","passwd");

Any kind of help ?
-Navin.
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where exactly have you placed the classes12.jar file ? Did you try out placing it in TOMCAT_HOME/common/lib folder ?
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or place you classes12.jar into /WEB-INF/lib/ directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic