-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getenv.* : Access denied (java.lang.RuntimePermission getenv.*) [SPR-6287] #10954
Comments
Arjen Poutsma commented Already fixed, as part of #10974 |
Sree Vaddi commented Hi, I verified my app with spring build 458. As suggested by Matt in http://jira.springframework.org/browse/SPR-6308 The only way, I could get rid of the exception is, Now, my app loads smoothly without any exceptions. By the way, when is 3.0 RC2 release due ? Thank you very much. With Regards |
Arjen Poutsma commented What's the error you see in your log? |
Sree Vaddi commented Hi Arjen, It is the same error, as in the 'Description'. I wish I copy/paste from my server log. But my servers keeps logs of the last three deployments, only. Permission:
Code:
Stack Trace: java.security.AccessControlException: Access denied (ognl.OgnlInvokePermission invoke.com.mycompany.Action.nextScreenName) Code Base Location: Thanking you. With Regards |
Sree Vaddi commented Please read the following line in my above comment as: invoke.com.mycompany.DecisionAction.nextScreenName : Access denied (ognl.OgnlInvokePermission invoke.mycompany.Action.nextScreenName) Permission: invoke.com.mycompany.Action.nextScreenName : Access denied (ognl.OgnlInvokePermission invoke.mycompany.Action.nextScreenName) |
Praveen commented Hi, Can you please share the solution for this exception. java.security.AccessControlException: Access denied (ognl.OgnlInvokePermission invoke.com.mycompany.Action.nextScreenName) Thanks, |
Sree Vaddi commented I checkedout OGNL source code. This was back, Oct 2009. I used spring framework & related, but never faced this issue, again. Thanking you. With Regards |
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:
The text was updated successfully, but these errors were encountered: