Page 1 of 1

java policy file update

PostPosted: Thu Dec 29, 2011 2:15 pm
by jaggz
Hi,

While Invoking JVM i get the below error message :

java version "1.7.0"                                                           
Java(TM) SE Runtime Environment (build pmz3170-20110827_01)                     
IBM J9 VM (build 2.6, JRE 1.7.0 z/OS s390-31 20110810_88604 (JIT enabled, AOT en
J9VM - R26_Java726_GA_20110810_1208_B88592                                     
JIT  - r11_20110810_20466                                                       
GC   - R26_Java726_GA_20110810_1208_B88592                                     
J9CL - 20110810_88604)                                                         
JCL - 20110809_01 based on Oracle 7b147                                         
JVMSHRC020E An error has occurred while opening semaphore                       
JVMSHRC336E Port layer error code = -197225                                     
JVMSHRC337E Platform error message: semget : EDC5163I SAF/RACF extract error. 
JVMJ9VM015W Initialization error for library j9shr26(11): JVMJ9VM009E J9VMDllMai
Error: Could not create the Java Virtual Machine.                               
Error: A fatal exception has occurred. Program will exit


Looking at EDC5163I SAF/RACF extract error i understood that there are some necessary access has to be permitted to sharedclasses. Navigating to the java home I found the java policy file where I can update the permission but I was not able to find anything specific to shared classes.

EDC5163I SAF/RACF extract error
//                                                                             
// @(#)src/security/sov/config/java.policy, security, asdev, 20060421 1.5       
// =========================================================================== 
// Licensed Materials - Property of IBM                                         
// "Restricted Materials of IBM"                                               
//                                                                             
// IBM SDK, Java(tm) Technology Edition, v6                                     
//  (C) Copyright IBM Corp. 1999, 2005. All Rights Reserved                     
//                                                                             
// US Government Users Restricted Rights - Use, duplication or disclosure       
// restricted by GSA ADP Schedule Contract with IBM Corp.                       
// =========================================================================== 
//                                                                             
                                                                               
                                                                               
// Standard extensions get all permissions by default                           
                                                                               
grant codeBase "file:${java.home}/lib/ext/*" {                                 
.permission java.security.AllPermission;                                       
};                                                                             
                                                                               
// default permissions granted to all domains                                   
                                                                               
grant {                                                                         
.// Allows any thread to stop itself using the java.lang.Thread.stop()         
.// method that takes no argument.                                             
.// Note that this permission is granted by default only to remain             
.// backwards compatible.                                                       
.// It is strongly recommended that you either remove this permission           
.// from this policy file or further restrict it to code sources               
.// that you specify, because Thread.stop() is potentially unsafe.             
.// See "http://java.sun.com/notes" for more information.                       
.permission java.lang.RuntimePermission "stopThread";                           
                                                                               
.// allows anyone to listen on un-privileged ports                             
.permission java.net.SocketPermission "localhost:1024-", "listen";             
                                                                               
.// "standard" properies that can be read by anyone                             
                                                                               
.permission java.util.PropertyPermission "java.version", "read";               
.permission java.util.PropertyPermission "java.vendor", "read";                 
.permission java.util.PropertyPermission "java.vendor.url", "read";             
.permission java.util.PropertyPermission "java.class.version", "read";         
.permission java.util.PropertyPermission "os.name", "read";                     
.permission java.util.PropertyPermission "os.version", "read";                 
.permission java.util.PropertyPermission "os.arch", "read";                     
.permission java.util.PropertyPermission "file.separator", "read";             
.permission java.util.PropertyPermission "path.separator", "read";             
.permission java.util.PropertyPermission "line.separator", "read";             
                                                                               
.permission java.util.PropertyPermission "java.specification.version", "read"; 
.permission java.util.PropertyPermission "java.specification.vendor", "read";   
.permission java.util.PropertyPermission "java.specification.name", "read";     
.permission java.util.PropertyPermission "java.vm.specification.version", "read"
.permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
.permission java.util.PropertyPermission "java.vm.specification.name", "read"; 
.permission java.util.PropertyPermission "java.vm.version", "read";             
.permission java.util.PropertyPermission "java.vm.vendor", "read";             
.permission java.util.PropertyPermission "java.vm.name", "read";               
                                                                               
.permission java.util.PropertyPermission "javax.realtime.version", "read";     
                                                                               
};                                                                             
                                                                               


Could anyone please guide me the way to permit the necessary permission to java Sharedclasses.

Jags

Re: java policy file update

PostPosted: Thu Dec 29, 2011 2:40 pm
by enrico-sorichetti
googling for ... java shared classes permissions will return a few links to the IBM pubs dealing with java initialization issues,
IMBW but ...
http://publib.boulder.ibm.com/infocente ... ation.html
looks promising