GeeCON Prague 2014*
The moose likes Servlets and the fly likes JNDI problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "JNDI problem" Watch "JNDI problem" New topic
Author

JNDI problem

Edgar Har
Greenhorn

Joined: Apr 26, 2012
Posts: 7
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

Joined: Nov 08, 2003
Posts: 3479

A quick JavaRanch search:
http://www.coderanch.com/t/565871/Tomcat/Cannot-create-JDBC-driver-class
Edgar Har
Greenhorn

Joined: Apr 26, 2012
Posts: 7
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

Joined: Nov 08, 2003
Posts: 3479

Hibernate has nothing to do with the exception you got.

Search is a nice facility:
CodeRanch Search
Edgar Har
Greenhorn

Joined: Apr 26, 2012
Posts: 7
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

Joined: Nov 08, 2003
Posts: 3479

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

Joined: Jan 10, 2002
Posts: 61298
    
  66

Looks like you've misspelled "Context".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Edgar Har
Greenhorn

Joined: Apr 26, 2012
Posts: 7
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.
 
GeeCON Prague 2014
 
subject: JNDI problem