0

I have installed tomcat7 and postgreSQL9 on AWS- Ec2 Micro , I am able to connect to the EC2 postgreSQL instance form a spring application running on my local tomcat 7 server.

When I deploy the same war file on the EC2- tomcat7 server, it is throwing the following error..

Cannot create JDBC driver of class '' for connect URL 'jdbc:postgresql://[email protected]/test'
java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getDriver(DriverManager.java:279)

I have copied postgresql-9.1-901.jdbc3.jar to /usr/share/tomcat7/lib

I have tried using the AWS internal IP ... No luck..

I don't know what I am doing wrong. The same war with same configuration works from local tomcat7. Am I missing any thing with AWS tomcat7 configuration?

1 Answer 1

0

Hi it seems you haven't included the postgresql jdbc jar. Try including that it should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.