This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes Cannot load JDBC driver class 'org.postgresql.Driver' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cannot load JDBC driver class Watch "Cannot load JDBC driver class New topic
Author

Cannot load JDBC driver class 'org.postgresql.Driver'

Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37
Dec 29, 2008 1:03:46 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresql.Driver'
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:290)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
================================

I already added all required jars in my lib folder,I m using netbean 5.5.1.

I don't know ahy postgres drivers are not loading.?

Please help me out/
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

Originally posted by Y Jadhav:

I already added all required jars in my lib folder,I m using netbean 5.5.1.


Did you check after deploying the application whether the lib folder contains the required jar? Make sure you reload the application (context) if you have just copying the files to the application server instead deploying (using WAR etc.).


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cannot load JDBC driver class 'org.postgresql.Driver'