I have been trying to find an answer to my question but couldnt.
Now, my java web application runs perfectly on my local Tomcat server (6). It connects to a remote mysql database on db4free.net.
When uploading my web application on eatj.com (running Tomcat server 6 too) , it gives this exception: java.net.ConnectException: Connection refused
.
Note that it runs fine when commenting the part connecting to the mysql database.
I want to know what could differ between my Tomcat server and the remote Tomcat server that would lead to this error?
Thanks in advance.
ADDITIONAL UPDATE:
Root Cause:
Caused by: java.security.AccessControlException:
access denied (java.net.SocketPermission db4free.net resolve)