reset password
Author Message
ashasabeer
Posts: 55
Posted 03:10 Oct 14, 2010 |

i am getting below error when i tried to run Filetest.java

org.springframework.jdbc.UncategorizedSQLException : Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot load JDBC driver class 'org.postgresql.Driver'; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresql.Driver'.

 

Please advice
 

cysun
Posts: 2935
Posted 07:48 Oct 14, 2010 |

If the error message says it cannot find JDBC driver, you need to add corresponding JAR file to classpath.

ashasabeer
Posts: 55
Posted 14:30 Oct 14, 2010 |
cysun wrote:

If the error message says it cannot find JDBC driver, you need to add corresponding JAR file to classpath.

 

Professor,

I added the classpath , but still i am getting the same error. Attached the log file.

Attachments:
cysun
Posts: 2935
Posted 09:39 Oct 15, 2010 |

The log still says ”Cannot load JDBC driver“, which means the jar file is still not in the classpath.