It is as I suspected that Tomcat deploys it the first time, and then the portal comes along and reads in the config again. This is normal and expected and happens with most JSF apps that have the portlet descriptors included.
Normally, this is not a problem, but I suspect that having two SeamPhasListeners registered is indeed a causing issues on execute. As with the link I posted in the original post, theres usually not an issue with two instances of the same listener being registered, but Seam's case may differ. Now, taking Thomas' suggestions I did find a way to shortcircuit this behaviour, by commenting the myfaces StartupServletContextListener. Myfaces complains on deploy, but the seam app will still work outside of the portal with no problems. Inside of the portal, we fail: | 10:44:02,843 ERROR [MyFacesGenericPortlet] The portlet threw an exception | java.lang.IllegalStateException: No active session context | at org.jboss.seam.core.LocaleSelector.instance(LocaleSelector.java:119) | at org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.java:24) | at org.apache.myfaces.application.jsp.JspViewHandlerImpl.createView(JspViewHandlerImpl.java:130) | at org.jboss.seam.jsf.SeamViewHandler.createView(SeamViewHandler.java:35) | at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:320) | at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298) | at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380) | at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266) | at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167) | at javax.portlet.GenericPortlet.render(GenericPortlet.java:407) | at org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:552) | at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:464) | at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:142) | at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:69) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:48) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:169) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:86) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:85) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:82) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:127) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:101) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539) | at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) | at org.jboss.portal.server.app.impl.AbstractRequestContext.include(AbstractRequestContext.java:247) | at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:71) | at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:81) | at org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.portlet.aspects.component.SessionPreDispatchInterceptor.invoke(SessionPreDispatchInterceptor.java:108) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:47) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.portlet.aspects.component.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:67) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.portlet.aspects.component.ValveInterceptor.invoke(ValveInterceptor.java:62) | at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:177) | at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:110) | at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:93) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:142) | at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:84) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:77) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:80) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:177) | at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102) | at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91) | at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:133) | at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:386) | at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:77) | at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:202) | at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:93) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:142) | at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:84) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:77) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:80) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59) | at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:177) | at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102) | at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91) | at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78) | at org.jboss.portal.core.CoreController.handle(CoreController.java:150) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287) | at $Proxy151.handle(Unknown Source) | at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:142) | at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:226) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:73) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.server.aspects.server.ParametersInterceptor.invoke(ParametersInterceptor.java:107) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132) | at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:177) | at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:228) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | More info as I debug further... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931609#3931609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931609 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user