2 Replies Latest reply on Oct 27, 2013 1:49 PM by Lucas Ponce

    CDI-JSF2-Richfaces Portlet war file inside an ear file

    Javier Alperte Newbie

      I'm trying to create an EAR project composed by:

      • jar module with the model classes and the persistence unit
      • ejb module with all the EJB and CDI Beans
      • war module with a GateIn Portlet that need access to the Beans defined in the ejb module.

       

      The project was created using the "mvn archetype:generate" and the "org.jboss.spec.archetypes:jboss-javaee6-webapp-ear-archetype" archetype.

       

      This archetype creates a JSF2-CDI-EJB3.1 project to run as a normal web application.

       

      I used the configuration scripts of the "jsf2-rf4-hello-world-portlet" project in the "gatein-portal-quickstart" distribution (obtained through the following sentence: git clone https://github.com/gatein/gatein-portal-quickstart.git

       

      The deployment of the EAR file (in jboss-jpp-6.1/standalone/deployments folder) goes well, but the problem comes when we put the portlet in a page and we try to click on a button on the interface... the following exception is raised:

       

      java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
       at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:115)
       at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:85)
       at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
       at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.renderFaces(Jsf20ControllerImpl.java:397)
       at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.renderPortletBody(Jsf20ControllerImpl.java:259)
       at org.jboss.portletbridge.PortletBridgeImpl.doFacesRequest(PortletBridgeImpl.java:262)
       at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:516)
       at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:437)
       at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:354)
       at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:411)
       at javax.portlet.GenericPortlet.render(GenericPortlet.java:259)
       at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:592)
       at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
       at org.exoplatform.portal.application.ApplicationMonitoringFilter.doFilter(ApplicationMonitoringFilter.java:65)
       at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
       at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
       at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:529)
       at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.wsrp.payload.WSRPEventPayloadInterceptor.invoke(WSRPEventPayloadInterceptor.java:153)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$201(ContextDispatcherInterceptor.java:46)
       at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$CallableImpl.call(ContextDispatcherInterceptor.java:119)
       at org.exoplatform.portal.webui.application.ExoServerContext$1.doCallback(ExoServerContext.java:49)
       at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
       at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
       at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:718)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:655)
       at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
       at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
       at org.gatein.wci.jboss.JB7ServletContainerContext.include(JB7ServletContainerContext.java:108)
       at org.gatein.wci.ServletContainer.include(ServletContainer.java:393)
       at org.exoplatform.portal.webui.application.ExoServerContext.dispatch(ExoServerContext.java:45)
       at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:65)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.exoplatform.portal.pc.aspects.PortletLifecyclePhaseInterceptor.invoke(PortletLifecyclePhaseInterceptor.java:30)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:84)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:131)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:263)
       at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:163)
       at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:246)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:165)
       at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:111)
       at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:905)
       at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:190)
       at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:54)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.portal.webui.application.UIPortlet.processRender(UIPortlet.java:954)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:291)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:284)
       at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UIPage.run(UIPage.gtmpl:4)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
       at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:38)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:89)
       at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UIPageBody.run(UIPageBody.gtmpl:36)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.portal.webui.page.UIPageBody.processRender(UIPageBody.java:154)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:291)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:284)
       at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UIPortal.run(UIPortal.gtmpl:16)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
       at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:37)
       at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:29)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:89)
       at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UISiteBody.run(UISiteBody.gtmpl:27)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:291)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:284)
       at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UIContainer.run(UIContainer.gtmpl:68)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:98)
       at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:92)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:291)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:284)
       at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:2)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:291)
       at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:284)
       at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:109)
       at sun.reflect.GeneratedMethodAccessor378.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
       at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:6)
       at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
       at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:105)
       at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:113)
       at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:114)
       at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:124)
       at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:93)
       at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:36)
       at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:128)
       at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:601)
       at org.exoplatform.portal.application.PortalRequestHandler.processRequest(PortalRequestHandler.java:190)
       at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:159)
       at org.exoplatform.web.WebAppController.service(WebAppController.java:329)
       at org.exoplatform.portal.application.PortalController.onService(PortalController.java:108)
       at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:96)
       at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:71)
       at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:70)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:67)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:122)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.web.login.ConversationStateUpdateFilter.doFilter(ConversationStateUpdateFilter.java:66)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:81)
       at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:49)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.gatein.security.oauth.webapi.OAuthDelegateFilter.doFilter(OAuthDelegateFilter.java:58)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.gatein.sso.integration.SSODelegateFilter.doFilter(SSODelegateFilter.java:60)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:78)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.gatein.portal.installer.PortalSetupFilter.doFilter(PortalSetupFilter.java:62)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.gatein.portal.init.PortalCheckInitFilter.doFilter(PortalCheckInitFilter.java:66)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
       at org.gatein.sso.integration.SSODelegateValve.invoke(SSODelegateValve.java:159)
       at org.gatein.portal.security.jboss.PortalClusteredSSOSupportValve.invoke(PortalClusteredSSOSupportValve.java:94)
       at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
       at java.lang.Thread.run(Thread.java:695)