AccessControl or Bind exception with JAVA 7 onwards
You may run into Port Bind Exception or access control exception when running Applicare server with Derby on Java 7 onwards:
Reason and fix:
Java is using the default security model, and it uses a file java.policy in JRE_HOME/lib/security. By default ports used by Applicare, its database and others are not usable by JAVA. Edit this file and add the grants for those port bindings (default port used for Derby is 1527 and 8880 for Applicare)
grant
{
permission java.net.SocketPermission "localhost:1527", "listen,resolve";
permission java.net.SocketPermission "localhost:8880", "listen,resolve";
permission java.net.SocketPermission "IP_Where_Applicare_Derby_is_Installed:1527", "listen,resolve";
permission java.net.SocketPermission "IP_Where_Applicare_Controller_is_Installed:8880", "listen,resolve";
};
Restart the Applicare server after making the changes and these Exceptions should be resolved.
Please sign in to leave a comment.
Comments
0 comments