Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SQLNestedException: Cannot create JDBC driver of class'' for connect URL

 
Ranch Hand
Posts: 47
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to deploy an web application in Tomcat 6.0.18.

Here is the xml files snap shots are as follows:

META-INF/context.xml file


WEB-INF/web.xml file


jsp file


When i deploy the war file of this application i.e. employees.war, Tomcat reads the file META-INF/context.xml file and copies it into the folder /conf/Catalina/localhost/employees.xml file.

But when i access the jsp file it gives me error "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class'' for connect URL"

If i put the


in /conf/context.xml file in tomcat then my jsp file retrieves data from mysql normally.

What could be the problem ?

Regards
vijay







 
Sheriff
Posts: 6619
1253
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More related to Tomcat. Moving to Tomcat forum.
 
Saloon Keeper
Posts: 22254
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think maybe it's because you said "<context>". XML is case sensitive. It should be "<Context>".
 
vijay dadhwal
Ranch Hand
Posts: 47
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton Tim,

My p/b is resolved. This had kept me mad for a day.

Thanks a ton again.

Regards
vijay
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like this forum.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic