Description
Sree Vaddi opened SPR-6287 and commented
I get the following error.
Upon investigation, I found that org.springframework.context-3.0.0.RC1.jar,
calls System.getProperties() and System.getenv() to initialize SYSTEM_PROPERTIES_BEAN_NAME & SYSTEM_ENVIRONMENT_BEAN_NAME. Both these calls raises exceptions on my server, due to our policies.
My company restricts me from entering a line in 'policy' file that has a wildcard, in this case getenv.*.
Is there a work around ?
Basically, custom building the mentioned jar without these two beans initialized ?
Any insite is highly appreciated!
Thanks in advance.
SreeV
[10/30/09 3:06:45:594 CDT] 00000016 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Please refer to InfoCenter for further information.
Permission:
getenv.* : Access denied (java.lang.RuntimePermission getenv.*)
Code:
org.springframework.context.support.AbstractApplic ationContext in {file:/opt/httpd/root/apps/wszng/ibm/ccix-dev-ear/wszngWeb.war/WEB-INF/lib/org.springframework.context-3.0.0.RC1.jar}
Stack Trace:
java.security.AccessControlException: Access denied (java.lang.RuntimePermission getenv.*)
at java.security.AccessController.checkPermission(Acc essController.java:108)
at java.lang.SecurityManager.checkPermission(Security Manager.java:558)
at com.ibm.ws.security.core.SecurityManager.checkPerm ission(SecurityManager.java:212)
at java.lang.System.getenv(System.java:632)
at org.springframework.context.support.AbstractApplic ationContext.prepareBeanFactory(AbstractApplicatio nContext.java:474)
Affects: 3.0 RC1
Reference URL: http://forum.springsource.org/showthread.php?t=79877
Issue Links:
- Spring Expression Language creates systemProperties bean calling System.getProperties() which in enterprise shared containers is locked down [SPR-6308] #10974 Spring Expression Language creates systemProperties bean calling System.getProperties() which in enterprise shared containers is locked down