Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Paul DiBello
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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

Thank's & regards

satya
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And Welcome to Javaranch Both of you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic