Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JNDI problem

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone.
I am trying to create connectionPooling using JNDI. However I am always getting error, claiming that its unable to create driver of class ' ' for connect URL "".

Here is my context.xml under META-INF



Here is my web.xml under WEB-INF


Here is my code.

And here is my exceptions.


I downloaded mysql-connector.jar to tomcat/lib . Seems everything is done correctrly, but still getting an error? any help would be very much appreciated. I am using eclispe and running app through eclipse, using tomcat 7 server (I've tried to deploy it from container -> the same! ). please help me overcome this headache. Thanks in advance
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A quick JavaRanch search:
https://coderanch.com/t/565871/Tomcat/Cannot-create-JDBC-driver-class
 
Edgar Har
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hussein Baghdadi wrote:A quick JavaRanch search:
https://coderanch.com/t/565871/Tomcat/Cannot-create-JDBC-driver-class



@Hussein the link you indicated is using hibernate, with which I am still unfamiliar.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hibernate has nothing to do with the exception you got.

Search is a nice facility:
CodeRanch Search
 
Edgar Har
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hussein Baghdadi wrote:Hibernate has nothing to do with the exception you got.

Search is a nice facility:
CodeRanch Search



Your reply has nothing to do with my quote. Search is a nice facility: Yes I know that's why I am asking)). The thing is that the link you putted, solves the problem with hibernate, which is unfamiliar technology for me, and I wan't for now just to have connectionPool. From the other hand I've tried all other stuff related to my issues. Nothing seems to help. Anyway thank you very much for your answers.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are welcome but it looks I have to re-say that the exception you are facing has nothing to do with Hibernate.
Good luck!
 
Sheriff
Posts: 67634
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you've misspelled "Context".
 
Edgar Har
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Looks like you've misspelled "Context".



Thank you, Thank you, Thank you, Thank you. Can't never guess for this stupid mistake. Thank you once again.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic