Posted by: piman007 | 27-09-2009

Advance setting server.policy for Sun Application Server / GlassFish

 
// Grant for Local I/O
grant {
   permission java.lang.RuntimePermission "createClassLoader";
   permission java.lang.RuntimePermission "getClassLoader";
   permission java.net.SocketPermission "*", "connect,accept,resolve";
   permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
   permission java.util.PropertyPermission "*", "read,write";
};
 
// Gran for user Axis Web Service.  (Non – SSL : Secure Socket  Layer)
grant {
     permission java.lang.RuntimePermission "getClassLoader";
     permission java.lang.RuntimePermission "createClassLoader";
     permission java.net.SocketPermission "*", "connect,accept,resolve";
     permission java.io.FilePermission "<>", "read,write,delete";
     permission java.util.PropertyPermission "user.language", "write";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#-[axis:type=server]","registerMBean";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#-[axis:type=deploy]","registerMBean";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#- [axis:type=query]","registerMBean";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#-[axis:type=server]","unregisterMBean";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#-[axis:type=deploy]","unregisterMBean";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#- [axis:type=query]","unregisterMBean";
     permission javax.management.MBeanPermission "org.apache.commons.modeler.BaseModelMBean#-#-[-]","queryNames";
 };
 
// SSL
grant{
    permission java.util.PropertyPermission "javax.net.ssl.keyStorePassword","write";
    permission java.util.PropertyPermission "javax.net.ssl.keyStore","write";
    permission java.util.PropertyPermission "javax.net.ssl.trustStorePassword","write";
    permission java.util.PropertyPermission "javax.net.ssl.trustStore","write";
    permission java.util.PropertyPermission "jjava.protocol.handler.pkgs","write";
    permission java.util.PropertyPermission "javax.net.ssl.keyStorePassword","write";
    permission java.security.SecurityPermission "insertProvider.SUN";
    permission java.security.SecurityPermission "removeProvider.SUN";
    permission java.security.SecurityPermission "insertProvider.SunJSSE";
    permission java.security.SecurityPermission "removeProvider.SunJSSE";
};

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

หมวดหมู่

%d bloggers like this: