File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver'for connect URL 'jdbc:oracle:oci:@mydbs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cannot create JDBC driver of class Watch "Cannot create JDBC driver of class New topic
Author

Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver'for connect URL 'jdbc:oracle:oci:@mydbs

Paul DiBello
Greenhorn

Joined: Dec 04, 2008
Posts: 1
I'm trying to connect to an Oracle database (10g) via OCI in Tomcat 5.5. I've checked the configuration many times and all looks OK, but I keep getting an error.

"Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver'for connect URL 'jdbc:oracle:oci:@mydbserver' "

I have the ojdbc14.jar file in the common/lib folder of tomcat, the web.xml has the resource reference and I have a context xml (app.xml)
in the conf\Catalina\[host url]\ of Tomcat.

Nothing seems to be working. Any ideas of what to check next?
satyasandha samal
Greenhorn

Joined: Aug 11, 2009
Posts: 5


please any one help me ,how to set path for mysl in tomcat5

Thank's & regards

satya
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

Paul DiBello wrote:I have the ojdbc14.jar file in the common/lib folder of tomcat, the web.xml has the resource reference and I have a context xml (app.xml) in the conf\Catalina\[host url]\ of Tomcat.


Have you checked the documentation of tomcat on this? Try having the context.xml in application's META-INF dir.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

satyasandha samal wrote:
please any one help me ,how to set path for mysl in tomcat5


Hi Satyasandha,

It would be better if you start a new thread for your own question. I suggest you go through datasource-examples-howto from tomcat.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

And Welcome to Javaranch Both of you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver'for connect URL 'jdbc:oracle:oci:@mydbs