mPower Server: J2EE PlatformDescribes platform configuration and software installation for the mPower server on J2EE.
This document assumes you have a working knowledge of J2EE. Contact your NetSol representative for more information. Debug logging for the Web Service API (LinkIT) is now available with J2EE.
Download J2EE SDK from the Java 2 Platform, Enterprise Edition (J2EE) page (java.sun.com/j2ee/index.jsp, part of the Sun Developer Network) and follow Sun's instructions for installing the software.
Edit the server.policy file, by default located in /opt/SUNWappserver/domains/domain1/config directory.
Find the grant section--that is, the section that begins grant {, with no additional text or data between the word grant and the left brace.
// Basic set of required permissions granted to all remaining code
grant {
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "queuePrintJob";
permission java.net.SocketPermission "*", "connect";
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
// work-around for pointbase bug 4864405
permission java.io.FilePermission "${com.sun.aas.instanceRoot}${/}lib${/}databases${/}-", "delete";
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
permission java.util.PropertyPermission "*", "read,write";
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.RuntimePermission "modifyThreadGroup";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.util.logging.LoggingPermission "control", "";
permission javax.management.MBeanPermission "*", "*";
};
The above example includes all the required permissions for mPower to run on J2EE. If needed, make these changes to your file:
permission java.io.FilePermission, change to
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
permission java.util.PropertyPermission, change to
permission java.util.PropertyPermission "*", "read,write";
};) of the section
permission java.lang.RuntimePermission "getClassLoader"; permission java.lang.RuntimePermission "createClassLoader";
After saving the edited file, restart the J2EE server to register the changes. To restart the server, use the following commands in sequence:
/opt/SUNWappserver/bin/asadmin stop-domain /opt/SUNWappserver/bin/asadmin start-domain