Uploaded image for project: 'eXo-JCR'
  1. eXo-JCR
  2. EXOJCR-1619

JbossLoginModule relies on existence of 'jboss.security:service=JaasSecurityManager' mbean - fails on JBoss AS7

    Details

      Description

      When logging out of current session, logout() is performed via WCI and is propagated through security infrastructure down to org.exoplatform.services.security.j2ee.JbossLoginModule.logout(JbossLoginModule.java:120).
      This one then fails with:

      9:29:20,864 ERROR [exo.core.component.security.core.JbossLoginModule.class] (http--127.0.0.1-8080-1) Could not perform JBoss security manager cache eviction: javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094) [:1.6.0_26]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833) [:1.6.0_26]
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) [:1.6.0_26]
      at org.exoplatform.services.security.j2ee.JbossLoginModule.logout(JbossLoginModule.java:120) [exo.core.component.security.core-2.4.4-GA-SNAPSHOT.jar:]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) [:1.6.0_26]
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) [:1.6.0_26]
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) [:1.6.0_26]
      at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_26]
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) [:1.6.0_26]
      at javax.security.auth.login.LoginContext.logout(LoginContext.java:629) [:1.6.0_26]
      at org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo.logout(JBossCachedAuthenticationManager.java:513) [picketbox-infinispan-4.0.1.jar:4.0.1]
      at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory$1.remove(DefaultAuthenticationCacheFactory.java:57)
      at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory$1.remove(DefaultAuthenticationCacheFactory.java:48)
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.flushCache(JBossCachedAuthenticationManager.java:183) [picketbox-infinispan-4.0.1.jar:4.0.1]
      at org.jboss.security.authentication.JBossCachedAuthenticationManager.flushCache(JBossCachedAuthenticationManager.java:58) [picketbox-infinispan-4.0.1.jar:4.0.1]
      at org.jboss.as.web.security.JBossGenericPrincipal.logout(JBossGenericPrincipal.java:93) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
      at org.apache.catalina.connector.Request.logout(Request.java:3262) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.connector.RequestFacade.logout(RequestFacade.java:1092) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.gatein.wci.jboss.JB7ServletContainerContext.logout(JB7ServletContainerContext.java:151) [wci-jboss7-2.1.0-Beta07-AS7-Beta01.jar:2.1.0-Beta07-AS7-Beta01]
      at org.gatein.wci.impl.DefaultServletContainer.logout(DefaultServletContainer.java:117) [wci-wci-2.1.0-Beta07-AS7-Beta01.jar:2.1.0-Beta07-AS7-Beta01]
      at org.exoplatform.portal.application.PortalLogoutLifecycle.onEndRequest(PortalLogoutLifecycle.java:60) [exo.portal.webui.portal-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.portal.application.PortalLogoutLifecycle.onEndRequest(PortalLogoutLifecycle.java:37) [exo.portal.webui.portal-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.portal.application.PortalRequestHandler.processRequest(PortalRequestHandler.java:218) [exo.portal.webui.portal-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:150) [exo.portal.webui.portal-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.web.WebAppController.service(WebAppController.java:349) [exo.portal.component.web.controller-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127) [exo.portal.webui.portal-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [exo.kernel.container-2.3.4-GA-SNAPSHOT.jar:]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:110) [exo.portal.component.web.api-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.sample.portal.web.SampleFilter.doFilter(SampleFilter.java:46) [exo.portal.sample.portal.jar-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:106) [exo.portal.component.web.api-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:80) [exo.portal.component.web.api-3.2.0-M02-SNAPSHOT.jar:]
      at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:79) [exo.portal.component.web.api-3.2.0-M02-SNAPSHOT.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116) [exo.jcr.framework.web-1.14.4-GA-SNAPSHOT.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:73) [exo.portal.component.web.security-3.2.0-M02-SNAPSHOT.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88) [exo.core.component.security.core-2.4.4-GA-SNAPSHOT.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69) [exo.kernel.container-2.3.4-GA-SNAPSHOT.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:388) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
      at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tolusha Anatolii Bazko
                  Reporter:
                  mstruk Marko Strukelj
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: