• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat and driver problem

 
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
web-inf MUST be in all upper case.
WEB-INF

Try that.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic