This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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: 3817

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'
Similar Threads
Exception in PhaseListener RESTORE_VIEW 1 afterPhase
A JTA EntityManager cannot use getTransaction()
Exception with migrated data
Database Lookup problem