The MySQL server which I am pointing to works correctly in Dev mode but not when deployed on tomcat server.
Here are the contents of my "context.xml"
As you can see, it should be pointing to cities.emnet.net, however when I deploy it, it still points to 50.21.180.198:3306
Here are the contents of my "context.xml"
Code:
<?xml version="1.0" encoding="UTF-8"?> <Context reloadable="true"> <Resource name="jdbc/CSODatabase" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://cities.emnet.net:3306/csorepository" username="xxx" password="xxx" testOnBorrow="true" validationQuery="SELECT 1" /> <!-- <Resource name="jdbc/CSODatabase" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/csorepository" username="xxx" password="xxx" testOnBorrow="true" validationQuery="SELECT 1" /> --> <!-- <Resource name="jdbc/CSODatabase" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://50.21.180.198:3306/csorepository" username="xxx" password="xxx" testOnBorrow="true" validationQuery="SELECT 1" defaultAutoCommit="false"/> <WatchedResource>path/to/watched/resource</WatchedResource> --> </Context>
Comment