aspose file tools*
The moose likes Tomcat and the fly likes Thin Driver not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Thin Driver not working" Watch "Thin Driver not working" New topic

Thin Driver not working

Kumar Navin
Ranch Hand

Joined: May 27, 2004
Posts: 51
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:
Connection con = DriverManager.getConnection("jdbc racle:thin:@ip_of_DBServer ort_no:server","usernm","passwd");

Any kind of help ?
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
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

Joined: May 10, 2002
Posts: 341
Or place you classes12.jar into /WEB-INF/lib/ directory.
I agree. Here's the link:
subject: Thin Driver not working
Similar Threads
Configuring JDBC Connectionpool in Weblogic7.0 with Oracle thin driver
oracle/jdbc/ttc7/TTC7Protocol Class Format Error
getBlob() gives exception
Connection pool and restart database problem
MDB calls EJB requires new transaction