Announcement Announcement Module
Collapse
No announcement yet.
getenv.* : Access denied (java.lang.RuntimePermission getenv.*) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getenv.* : Access denied (java.lang.RuntimePermission getenv.*)

    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)
Working...
X