1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Error connecting to MS SQL using Tomcat

Discussion in 'Plesk for Linux - 8.x and Older' started by qualispace, Jul 22, 2005.

  1. qualispace

    qualispace Regular Pleskian

    Mar 9, 2005
    Likes Received:
    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 connect,resolve)

    Does anybody have any idea as to what is the reason and what is the solution for the same.
  2. bartje3

    bartje3 Guest

    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