[
https://issues.jboss.org/browse/WFLY-174?page=com.atlassian.jira.plugin.s...
]
Jason Greene updated WFLY-174:
------------------------------
Fix Version/s: 8.0.0.CR1
(was: 8.0.0.Beta1)
Missing JSP or EL privileged action(s)
--------------------------------------
Key: WFLY-174
URL:
https://issues.jboss.org/browse/WFLY-174
Project: WildFly
Issue Type: Bug
Components: Web (JBoss Web)
Reporter: David Lloyd
Assignee: Remy Maucherat
Fix For: 8.0.0.CR1
When running with a security manager, we're seeing an access control problem with
this stack trace:
{noformat}
18:21:08,471 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/web-secure].[jsp]]
(http-/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet jsp threw exception:
java.security.AccessControlException: access denied
("java.lang.RuntimePermission" "getClassLoader")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
[rt.jar:1.7.0_15]
at java.security.AccessController.checkPermission(AccessController.java:560)
[rt.jar:1.7.0_15]
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
[rt.jar:1.7.0_15]
at java.lang.Thread.getContextClassLoader(Thread.java:1451) [rt.jar:1.7.0_15]
at javax.el.FactoryFinder.find(FactoryFinder.java:130)
[jboss-el-api_2.2_spec-1.0.2.Final.jar:1.0.2.Final]
at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:185)
[jboss-el-api_2.2_spec-1.0.2.Final.jar:1.0.2.Final]
at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:156)
[jboss-el-api_2.2_spec-1.0.2.Final.jar:1.0.2.Final]
at
org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:48)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:77)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:197)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.jsp.login_jsp._jspInit(login_jsp.java:22)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:151)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_15]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_15]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_15]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_15]
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:263)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:261)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_15]
at javax.security.auth.Subject.doAsPrivileged(Subject.java:536) [rt.jar:1.7.0_15]
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:155)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:288)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:59)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:197)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_15]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:620)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:69)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:84)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_15]
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:474)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:372)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:265)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:447)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
[jbossweb-7.2.0.Final.jar:7.2.0.Final]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
{noformat}
It looks like javax.el should probably be getting TCCL from a privileged block, or else
org.apache.jasper.runtime.JspApplicationContextImpl.<init> should be executing in a
privileged context.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira