users@glassfish.java.net

java security and server,policy problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 May 2009 07:12:52 PDT

I am currently getting this error in my log:

[#|2009-05-28T08:32:05.246-0500|WARNING|sun-appserver2.1|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;_RequestID=46082d8a-f5f2-40bc-800c-4622ff211093;|Please add the following permissions to the server.policy file and restart the appserver.null
 
grant {
          permission java.net.SocketPermission "*", "resolve";
      };
 
grant {
          permission java.util.PropertyPermission "*", "read";
      };
 
grant {
          permission java.util.logging.LoggingPermission "control", "";
      };
 
grant {
          permission java.io.FilePermission "${user.home}${file.separator}ibm${file.separator}ctg${file.separator}-", "read,write,delete";
      };
 
grant {
          permission java.lang.RuntimePermission "loadLibrary.*", "";
      };
 
grant {
          permission java.lang.RuntimePermission "shutdownHooks", "";
      };
 
grant {
          permission java.lang.RuntimePermission "modifyThread", "";
      };
 
grant {
          permission java.lang.RuntimePermission "modifyThreadGroup", "";
      };
 
grant {
          permission java.lang.RuntimePermission "readFileDescriptor", "";
      };
 
grant {
          permission java.lang.RuntimePermission "writeFileDescriptor", "";
      };
 
grant {
          permission java.lang.RuntimePermission "accessDeclaredMembers", "";
      };
 
grant {
          permission java.security.SecurityPermission "putProviderProperty.IBMJSSE", "";
      };
 
grant {
          permission java.security.SecurityPermission "insertProvider.IBMJSSE", "";
      };
 
grant {
          permission java.security.SecurityPermission "putProviderProperty.IBMJCE", "";
      };
 
grant {
          permission java.security.SecurityPermission "insertProvider.IBMJCE", "";
      };
 
grant {
          permission javax.security.auth.PrivateCredentialPermission "* * \"*\"","read";
      };
 
grant {
          permission java.lang.RuntimePermission "accessClassInPackage.sun.io", "";
      };|#]

So I modified the server.policy file to look like this:(please see attached file)

I restarted the appserver but am still getting the same error on logs. Anyone have any ideas? We are running SGES 2.1 Enterprise on SUSE Linux 10.1. Thank you.
[Message sent by forum member 'sbeard' (sbeard)]

http://forums.java.net/jive/thread.jspa?messageID=348101