aspose file tools*
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
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: 3860

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot load JDBC driver class 'org.postgresql.Driver'