uCosminexus Application Server, Common Container Functionality Guide
This subsection describes the settings required for using the exploded archive-format J2EE applications.
To use the exploded archive-format J2EE applications, we recommend that you change the security settings using one of the following methods:
A description of the methods is as follows.
When you start the J2EE server, specify the -nosecurity option in the cjstartsv command to release SecurityManager.
# cjstartsv server-name -nosecurity |
Edit server.policy as follows in order to grant permissions to access resources in the JAR files and class files under the application directory:
grant codeBase "file:/D:/MyApplicationDir/Web.war/-"{
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "queuePrintJob";
permission java.net.SocketPermission "*", "connect";
permission java.io.FilePermission "<<ALL FILES>>", "read, write";
permission java.util.PropertyPermission "*", "read";
permission javax.security.auth.AuthPermission "getSubject";
permission javax.security.auth.AuthPermission "createLoginContext.*";
};
|
Specify server.policy after you set up the system using the Smart Composer functionality commands.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.