[
https://issues.jboss.org/browse/SEAMSECURITY-81?page=com.atlassian.jira.p...
]
Marek Schmidt resolved SEAMSECURITY-81.
---------------------------------------
Fix Version/s: 3.1.0.Final
Resolution: Done
fixed in 2ce2871132481ee12cc12667255f5c533bfc5561
also, created a jboss7 profile with the AS7-specific persistence.xml
mvn clean package -Pjboss7
seam-3.0.0.Final/examples/security-idmconsole does not work on JBoss
AS 7.0.0.Final "Lightning" (jboss-as-web-7.0.0.Final.tar.gz)
----------------------------------------------------------------------------------------------------------------------------------
Key: SEAMSECURITY-81
URL:
https://issues.jboss.org/browse/SEAMSECURITY-81
Project: Seam Security
Issue Type: Bug
Affects Versions: 3.0.0.Final
Environment: * JBoss AS 7.0.0.Final "Lightning"
(jboss-as-web-7.0.0.Final.tar.gz)
* Linux omega 2.6.32-32-generic-pae #62-Ubuntu SMP Wed Apr 20 22:10:33 UTC 2011 i686
GNU/Linux
* Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Reporter: JEE 4 Hire
Assignee: Marek Schmidt
Labels: security-idmconsole
Fix For: 3.1.0.Final
Attachments: pom.xml, security-idmconsole.war
seam-3.0.0.Final/examples/security-idmconsole does not work on JBoss AS 7.0.0.Final
"Lightning" (jboss-as-web-7.0.0.Final.tar.gz)
08:18:05,481 ERROR [org.jboss.weld.Bean] (http--127.0.0.1-8080-2) WELD-000019 Error
destroying an instance Managed Bean [class
org.jboss.seam.security.permission.SecurityRuleProducer] with qualifiers [@Any @Default]
of org.jboss.seam.sec
urity.permission.SecurityRuleProducer@f9f3b2
08:18:05,481 SEVERE [javax.enterprise.resource.webcontainer.jsf.application]
(http--127.0.0.1-8080-2) Error Rendering View[/manageusers.xhtml]: javax.el.ELException:
/manageusers.xhtml @22,144 rendered="#{identity.hasPermission('seam.acc
ount', 'create')}": java.lang.IllegalArgumentException: stream cannot be
null
at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:193)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:421)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
[jboss-as-jpa-7.0.0.Final.jar:7.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: java.lang.IllegalArgumentException: stream cannot be null
at
org.drools.io.impl.InputStreamResource.<init>(InputStreamResource.java:35)
[drools-core-5.1.1.jar:]
at
org.drools.io.impl.ResourceFactoryServiceImpl.newInputStreamResource(ResourceFactoryServiceImpl.java:87)
[drools-core-5.1.1.jar:]
at org.drools.io.ResourceFactory.newInputStreamResource(ResourceFactory.java:87)
[drools-api-5.1.1.jar:]
at
org.jboss.seam.security.permission.SecurityRuleProducer.createSecurityKnowledgeBase(SecurityRuleProducer.java:42)
[seam-security-impl-3.0.0.Final.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_24]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at
org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:169)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:149)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:361)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:122)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:124)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.proxies.KnowledgeBase$KnowledgeBaseEventManager$-1706263264$Proxy$_$$_WeldClientProxy.newStatefulKnowledgeSession(KnowledgeBase$KnowledgeBaseEventManager$-1706263264$Proxy$_$$_WeldClientProxy.java)
[weld-core-1.1.2.AS7.jar:]
at
org.jboss.seam.security.permission.RuleBasedPermissionResolver.init(RuleBasedPermissionResolver.java:49)
[seam-security-impl-3.0.0.Final.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_24]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at
org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:193)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:127)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.util.Beans.callInitializers(Beans.java:901)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:888)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:122)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:87)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
org.jboss.seam.security.permission.RuleBasedPermissionResolver$Proxy$_$$_WeldClientProxy.hasPermission(RuleBasedPermissionResolver$Proxy$_$$_WeldClientProxy.java)
[seam-security-impl-3.0.0.Final.jar:]
at
org.jboss.seam.security.permission.PermissionMapper.resolvePermission(PermissionMapper.java:32)
[seam-security-impl-3.0.0.Final.jar:]
at
org.jboss.seam.security.permission.PermissionMapper$Proxy$_$$_WeldClientProxy.resolvePermission(PermissionMapper$Proxy$_$$_WeldClientProxy.java)
[seam-security-impl-3.0.0.Final.jar:]
at org.jboss.seam.security.IdentityImpl.hasPermission(IdentityImpl.java:726)
[seam-security-impl-3.0.0.Final.jar:]
at
org.jboss.seam.security.IdentityImpl$Proxy$_$$_WeldClientProxy.hasPermission(IdentityImpl$Proxy$_$$_WeldClientProxy.java)
[seam-security-impl-3.0.0.Final.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_24]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:735)
[jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.el.BeanELResolver.invoke(BeanELResolver.java:467)
[jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:246)
[jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.el.parser.AstValue.getValue(AstValue.java:131)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187)
[jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
[weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
... 32 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira