0

I have a Spring web application and I deployed this application in a remote Tomcat 8 server (AWS). I also deployed a database as an SQL file in the same server. When I tried to open my application in a web browser, the webpages were opened successfully but the web services doesn't work. I think it was because the web services uses the database.

This is my database.properties:

 jdbc.url=jdbc:mysql://localhost:3306/srfms
 jdbc.username=*****
 jdbc.password=*****

I also tried another configuration:

 jdbc.url=jdbc:mysql://94.73.145.205:3306/srfms
 jdbc.username=*****
 jdbc.password=*****

I can connect this database wtth MySQL Workbench successfully.

1
  • 1
    can you provide the error? Commented Jun 29, 2018 at 15:01

2 Answers 2

1

Check if the driver for mysql is installed before you proceed, do not forget to copy the JDBC Driver's jar into $CATALINA_HOME/lib.

Sign up to request clarification or add additional context in comments.

Comments

0

Have you checked your VPC your database and application should be in same VPC. Also please check the IMRole and security group for DB.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.