• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Error connecting to MS SQL using Tomcat

qualispace

Regular Pleskian
Hello,
I have my website running in Linux server with Plesk 7.5 Reloaded and the database is MS SQL which runs on a Windows 2003 server. While I try to connect the database using the Tomcat through a jsp script. I get the following error

Exceptionjava.security.AccessControlException: access denied (java.net.SocketPermission 216.185.43.214:1422 connect,resolve)

Does anybody have any idea as to what is the reason and what is the solution for the same.
 
Usually tomcat uses the localhost for databases, if it goes external you will need to change the /etc/tomcat4/catalina.policy on the local machine + the external (%) DB permissions on the remote windows server, to have the right permissions.

Look at the bottom of that file, there are some examples. If you can't find a solution you should search the tomcat manual, in this forum here it will be hard to find tomcat-specific help. Plesk provides access to Tomcat from the controlpanel, but has nothing to do with tomcat itself and/or remote databases.

Good luck
Bart
 
Back
Top