Skip to content
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

SPR-6308 problem still exists in Spring Release 3.1.3 [SPR-10362] #14994

Closed
spring-projects-issues opened this issue Mar 7, 2013 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression)

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 7, 2013

Gagandeep Singh opened SPR-10362 and commented

I am facing this issue in Was 7 and Spring 3.1.3 Release . I added the following two properties

<beans:bean id="systemProperties" class="java.util.HashMap"></beans:bean>
<beans:bean id="systemEnvironment" class="java.util.HashMap"></bean:bean>

However i still get the following error
Code Base Location:

[3/7/13 17:20:29:365 EST] 0000000b webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - bst-51881#bst.war:.Initializing Spring FrameworkServlet 'appServlet'
[3/7/13 17:20:29:684 EST] 0000000b SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

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

Code:

org.springframework.core.env.AbstractEnvironment in
{file:/opt/httpd/root/apps/ibm7/ccix/xyz.war/WEB-INF/lib/spring-core-3.1.3.RELEASE.jar}

Stack Trace:

java.security.AccessControlException: Access denied (java.lang.RuntimePermission getenv.*)
at java.security.AccessController.checkPermission(AccessController.java:132)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:206)
at java.lang.System.getenv(System.java:687)
at org.springframework.core.env.AbstractEnvironment.getSystemEnvironment(AbstractEnvironment.java:345)
at org.springframework.core.env.StandardEnvironment.customizePropertySources(StandardEnvironment.java:79)

My app does not load and i cannot continue. Please help


Affects: 3.1.3

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

Gagandeep Singh commented

Please close this issue as this issue was fixed by moving to 3.2.1

Thanks for the awesome work . Keep it up :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression)
Projects
None yet
Development

No branches or pull requests

2 participants