• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI problem

 
Edgar Har
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
 
Edgar Har
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hussein Baghdadi wrote:A quick JavaRanch search:
http://www.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
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • 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
  • 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
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • 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!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65217
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you've misspelled "Context".
 
Edgar Har
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic