It's not a secret anymore!
The moose likes JDBC and Relational Databases 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
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Cannot load JDBC driver class Watch "Cannot load JDBC driver class New topic

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(
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(
at com.sun.faces.lifecycle.RenderResponsePhase.execute(
at com.sun.faces.lifecycle.LifecycleImpl.phase(
at com.sun.faces.lifecycle.LifecycleImpl.render(
at javax.faces.webapp.FacesServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at com.sun.rave.web.ui.util.UploadFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
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

Joined: Mar 24, 2008
Posts: 3902

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.).

[How to ask questions] [Twitter]
I agree. Here's the link:
subject: Cannot load JDBC driver class 'org.postgresql.Driver'
It's not a secret anymore!