aspose file tools*
The moose likes Tomcat and the fly likes tomcat and driver problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat and driver problem" Watch "tomcat and driver problem" New topic
Author

tomcat and driver problem

shankar vembu
Ranch Hand

Joined: May 10, 2001
Posts: 309
i just moved from my debug environment to deployment mode. I have my Mysql driver in web-inf/lib folder. But tomcat is unable to load the driver.. I get this error

Well, I am using connection pool and I lookup for the jndi resource during server startup(i mean servlet startup) which works just fine, meaning I dont get a null datasource over there. But when I try logging into my app which makes the first database query, then I get the above exception.
Why is it that tomcat is not reading the driver jar file in my web-inf/lib....
All these days, i was working on an IDE where I mount all the jars in the filesystem and so never faced any problems.
Is there something i am missing here...
regards,
shankar
shankar vembu
Ranch Hand

Joined: May 10, 2001
Posts: 309
now this is a strange discovery, i moved the driver jar to commom/lib and it works fine. but then i discoverd that the server is not reading my web-inf/lib folder at all, becos i get some other noclassdeffound exceptions. now where do i place my dependencies??? i have all my dependecied in web-inf/lib folder as jar files. Is this not the correct place to place them??
I am for sure missing some setting....
Shankar.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

web-inf MUST be in all upper case.
WEB-INF

Try that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat and driver problem
 
Similar Threads
Problem with connection pooling
Can't get connection from DataSource object
Tomcat Throwing java.lang.ClassNotFoundException
jpa, datasource and tomcat
Cannot create JDBC driver of class '' for connect URL 'null'