File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 52
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.
jQuery in Action, 2nd edition
subject: Thin Driver not working
Similar Threads
oracle/jdbc/ttc7/TTC7Protocol Class Format Error
MDB calls EJB requires new transaction
getBlob() gives exception
Connection pool and restart database problem
Configuring JDBC Connectionpool in Weblogic7.0 with Oracle thin driver