aspose 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
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 3670

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: 3670

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: 3670

And Welcome to Javaranch Both of you
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver'for connect URL 'jdbc:oracle:oci:@mydbs
 
Similar Threads
Tomcat's Datasource
Help in database connections
Error: after upgrading to 5.5.27 cannot create jdbc driver of class
JNDI configuration in TOMCAT 5.5 - No suitable driver
Tomcat DB2 Datasource Configuration