14 Replies Latest reply on Feb 27, 2009 10:49 PM by Kapil Gulati

    No application context active in a Seam portal application

    Siarhei Yarashevich Newbie

      Hi, I have a problem with running my Seam application on JBoss portal.
      The application is deployed without any troubles, but when I click on links on the home page, I get an exception:java.lang.IllegalStateException: No active application context.


      I tried to debug the application and found out, that the Application context mysteriously  disappears before Render Response Phase. Do you have any ideas, why this can happen?


      I use Seam 2.1.1,JBoss AS 4.2.3, JBoss portal 2.7.1, JBoss PortletBridge-1.0.0.B6.  I configured my application the same way as sample applications, which are distributed with JBossPortletBridge-1.0.0.B6, are configured.


      Thanks.

        • 2. Re: No application context active in a Seam portal application
          Siarhei Yarashevich Newbie
          Daemon Thread [http-127.0.0.1-8080-1] (Suspended (exception IllegalStateException))     
               Init.instance() line: 115     
               Pages.isDebugPage() line: 1704     
               SeamDebugPhaseListener.beforePhase(PhaseEvent) line: 39     
               RenderResponsePhase(Phase).handleBeforePhase(FacesContext, ListIterator<PhaseListener>, PhaseEvent) line: 214     
               RenderResponsePhase(Phase).doPhase(FacesContext, Lifecycle, ListIterator<PhaseListener>) line: 96     
               LifecycleImpl.render(FacesContext) line: 139     
               AjaxPortletBridge.render(FacesContext) line: 840     
               AjaxPortletBridge.renderResponse(FacesContext, PortletWindowState) line: 665     
               AjaxPortletBridge.doFacesRequest(RenderRequest, RenderResponse) line: 501     
               GenericFacesPortlet.doFacesDispatch(RenderRequest, RenderResponse) line: 351     
               GenericFacesPortlet.doView(RenderRequest, RenderResponse) line: 312     
               GenericFacesPortlet(GenericPortlet).doDispatch(RenderRequest, RenderResponse) line: 328     
               GenericFacesPortlet.doDispatch(RenderRequest, RenderResponse) line: 293     
               GenericFacesPortlet(GenericPortlet).render(RenderRequest, RenderResponse) line: 233     
               PortletContainerImpl$Invoker.doFilter(RenderRequest, RenderResponse, FilterChain) line: 568     
               FilterChainImpl<T>.doFilter(RenderRequest, RenderResponse) line: 159     
               FilterChainImpl<T>.doFilter(PortletRequest, PortletResponse) line: 80     
               PortletContainerImpl.dispatch(PortletInvocation) line: 505     
               ContainerPortletDispatcher.invoke(PortletInvocation) line: 42     
               TransactionInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(PortletInvocation) line: 97     
               TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext() line: not available     
               TxPolicy.invokeInNoTx(Invocation) line: 66     
               TxInterceptor$NotSupported.invoke(Invocation) line: 112     
               TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext() line: not available     
               TxPolicy.invokeInNoTx(Invocation) line: 66     
               TxInterceptor$NotSupported.invoke(Invocation) line: 102     
               TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext() line: not available     
               TransactionInterceptor.invokeNotSupported(PortletInvocation) line: not available     
               TransactionInterceptor.invoke(PortletInvocation) line: 58     
               HeaderInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               HeaderInterceptor.invoke(PortletInvocation) line: 49     
               EventPayloadInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               EventPayloadInterceptor.invoke(PortletInvocation) line: 196     
               RequestAttributeConversationInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               RequestAttributeConversationInterceptor.invoke(PortletInvocation) line: 119     
               ProducerCacheInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               SignOutInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               SignOutInterceptor.invoke(PortletInvocation) line: 43     
               AjaxInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               AjaxInterceptor.invoke(PortletInvocation) line: 49     
               BackwardCompatibilityInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               BackwardCompatibilityInterceptor.invoke(PortletInvocation) line: 46     
               BridgeInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               BridgeInterceptor.invoke(PortletInvocation) line: 49     
               PortletSessionSynchronizationInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               PortletSessionSynchronizationInterceptor.invoke(PortletInvocation) line: 82     
               ContextTrackerInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               ContextTrackerInterceptor.invoke(PortletInvocation) line: 48     
               ContextDispatcherInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor, PortletInvocation) line: 49     
               ContextDispatcherInterceptor$1.doCallback(ServletContext, HttpServletRequest, HttpServletResponse, Object) line: 123     
               CommandDispatcher$CallbackCommand.execute(HttpServletRequest, HttpServletResponse) line: 74     
               NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]     
               NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39     
               DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25     
               Method.invoke(Object, Object...) line: 585     
               CommandServlet.doGet(HttpServletRequest, HttpServletResponse) line: 130     
               CommandServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 690     
               CommandServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 803     
               ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290     
               ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 83     
               ShowMenuFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 37     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 78     
               IdentityFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 40     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69     
               MultipartFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 90     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69     
               ExceptionFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 64     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69     
               RedirectFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 45     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69     
               ConfigurableXMLFilter(BaseXMLFilter).doXmlFilter(FilterChain, HttpServletRequest, HttpServletResponse) line: 178     
               Filter(BaseFilter).handleRequest(HttpServletRequest, HttpServletResponse, FilterChain) line: 290     
               Filter(BaseFilter).processUploadsAndHandleRequest(HttpServletRequest, HttpServletResponse, FilterChain) line: 390     
               Filter(BaseFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 517     
               Ajax4jsfFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 56     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69     
               LoggingFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 58     
               SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69     
               SeamFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 158     
               ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235     
               ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206     
               ApplicationDispatcher.invoke(ServletRequest, ServletResponse, ApplicationDispatcher$State) line: 654     
               ApplicationDispatcher.doInclude(ServletRequest, ServletResponse) line: 557     
               ApplicationDispatcher.include(ServletRequest, ServletResponse) line: 481     
               CommandServlet.include(HttpServletRequest, HttpServletResponse, Object, ServletContext) line: 79     
               CommandDispatcher.include(ServletContext, HttpServletRequest, HttpServletResponse, RequestDispatchCallback, Object) line: 50     
               JBossWebContext.include(ServletContext, HttpServletRequest, HttpServletResponse, RequestDispatchCallback, Object) line: 66     
               DefaultServletContainer.include(ServletContext, HttpServletRequest, HttpServletResponse, RequestDispatchCallback, Object) line: 190     
               AbstractServerContext.dispatch(ServletContainer, ServletContext, RequestDispatchCallback, Object) line: 69     
               ContextDispatcherInterceptor.invoke(PortletInvocation) line: 77     
               SecureTransportInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               SecureTransportInterceptor.invoke(PortletInvocation) line: 69     
               ValveInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               ValveInterceptor.invoke(PortletInvocation) line: 75     
               ContainerPortletInvoker(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               ContainerPortletInvoker.invoke(PortletInvocation) line: 116     
               ProducerPortletInvoker(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               ProducerPortletInvoker(ProducerPortletInvoker).invoke(PortletInvocation) line: 221     
               ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(PortletInvocation) line: 53     
               ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext() line: not available     
               TxPolicy.invokeInCallerTx(Invocation, Transaction) line: 126     
               TxInterceptor$Required.invoke(Invocation) line: 195     
               ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext() line: not available     
               TxPolicy.invokeInCallerTx(Invocation, Transaction) line: 126     
               TxInterceptor$Required.invoke(Invocation) line: 195     
               ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext() line: not available     
               ProducerPortletInvoker.invoke(PortletInvocation) line: not available     
               FederatedPortletInvokerService.invoke(PortletInvocation) line: 145     
               FederatingPortletInvokerService.invoke(PortletInvocation) line: 149     
               InstanceInvoker.invoke(PortletInvocation) line: 42     
               PortalSessionSynchronizationInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               PortalSessionSynchronizationInterceptor.invoke(PortletInvocation) line: 93     
               InstanceSecurityInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               InstanceSecurityInterceptor.invoke(PortletInvocation) line: 93     
               ConsumerCacheInterceptor(PortletInvokerInterceptor).invoke(PortletInvocation) line: 82     
               ConsumerCacheInterceptor.invoke(PortletInvocation) line: 162     
               InstanceContainerImpl.org$jboss$portal$core$impl$model$instance$InstanceContainerImpl$invoke$aop(PortletInvocation) line: 408     
               InstanceContainerImpl$invoke_N8654503705355129869.invokeNext() line: not available     
               TxPolicy.invokeInCallerTx(Invocation, Transaction) line: 126     
               TxInterceptor$Required.invoke(Invocation) line: 195     
               InstanceContainerImpl$invoke_N8654503705355129869.invokeNext() line: not available     
               TxPolicy.invokeInCallerTx(Invocation, Transaction) line: 126     
               TxInterceptor$Required.invoke(Invocation) line: 195     
               InstanceContainerImpl$invoke_N8654503705355129869.invokeNext() line: not available     
               InstanceContainerImpl.invoke(PortletInvocation) line: not available     
               PersistentInstanceDefinition(AbstractInstance).invoke(PortletInvocation) line: 231     
               InternalPortletContentProvider(InternalContentProvider).renderWindow(ContentRendererContext) line: 345     
               RenderWindowCommand.execute() line: 100     
               ControllerCommand$1.invoke(Invocation) line: 68     
               RenderWindowCommand(Invocation).invokeNext() line: 131     
               EventBroadcasterInterceptor.invoke(ControllerCommand) line: 124     
               EventBroadcasterInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               PageCustomizerInterceptor.invoke(ControllerCommand) line: 134     
               PageCustomizerInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               PolicyEnforcementInterceptor.invoke(ControllerCommand) line: 78     
               PolicyEnforcementInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               PortalNodeInterceptor.invoke(ControllerCommand) line: 81     
               PortalNodeInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               BackwardCompatibilityInterceptor.invoke(ControllerCommand) line: 48     
               BackwardCompatibilityInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               ControlInterceptor.invoke(ControllerCommand) line: 56     
               ControlInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               NavigationalStateInterceptor.invoke(ControllerCommand) line: 42     
               NavigationalStateInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               AjaxInterceptor.invoke(ControllerCommand) line: 55     
               AjaxInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               ResourceAcquisitionInterceptor.invoke(ControllerCommand) line: 50     
               ResourceAcquisitionInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderWindowCommand(Invocation).invokeNext() line: 115     
               RenderWindowCommand(Invocation).invoke(InterceptorStack) line: 157     
               ControllerContext.execute(ControllerCommand) line: 134     
               RenderWindowCommand.render(ControllerContext) line: 80     
               RenderPageCommand.execute() line: 222     
               ControllerCommand$1.invoke(Invocation) line: 68     
               RenderPageCommand(Invocation).invokeNext() line: 131     
               EventBroadcasterInterceptor.invoke(ControllerCommand) line: 124     
               EventBroadcasterInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               PageCustomizerInterceptor.invoke(ControllerCommand) line: 134     
               PageCustomizerInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               PolicyEnforcementInterceptor.invoke(ControllerCommand) line: 78     
               PolicyEnforcementInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               PortalNodeInterceptor.invoke(ControllerCommand) line: 81     
               PortalNodeInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               BackwardCompatibilityInterceptor.invoke(ControllerCommand) line: 48     
               BackwardCompatibilityInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               ControlInterceptor.invoke(ControllerCommand) line: 56     
               ControlInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               NavigationalStateInterceptor.invoke(ControllerCommand) line: 42     
               NavigationalStateInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               AjaxInterceptor.invoke(ControllerCommand) line: 55     
               AjaxInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               ResourceAcquisitionInterceptor.invoke(ControllerCommand) line: 50     
               ResourceAcquisitionInterceptor(ControllerInterceptor).invoke(Invocation) line: 40     
               RenderPageCommand(Invocation).invokeNext() line: 115     
               RenderPageCommand(Invocation).invoke(InterceptorStack) line: 157     
               ControllerContext.execute(ControllerCommand) line: 134     
               PortalObjectResponseHandler.processCommandResponse(ControllerContext, ControllerCommand, ControllerResponse) line: 81     
               ClassicResponseHandler.processHandlers(ControllerContext, ControllerCommand, ControllerResponse) line: 79     
               ClassicResponseHandler.processCommandResponse(ControllerContext, ControllerCommand, ControllerResponse) line: 53     
               ResponseHandlerSelector.processCommandResponse(ControllerContext, ControllerCommand, ControllerResponse) line: 70     
               Controller.processCommandResponse(ControllerContext, ControllerCommand, ControllerResponse) line: 315     
               Controller.processCommand(ControllerContext, ControllerCommand) line: 303     
               Controller.handle(ServerInvocation) line: 261     
               RequestControllerDispatcher.invoke(Invocation) line: 51     
               ServerInvocation(Invocation).invokeNext() line: 131     
               IdentityBindingInterceptor.invoke(ServerInvocation) line: 47     
               IdentityBindingInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               ContentTypeInterceptor.invoke(ServerInvocation) line: 68     
               ContentTypeInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               PortalContextPathInterceptor.invoke(ServerInvocation) line: 45     
               PortalContextPathInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               LocaleInterceptor.invoke(ServerInvocation) line: 96     
               LocaleInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               UserInterceptor.invoke(ServerInvocation) line: 196     
               UserInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               SignOutInterceptor.invoke(ServerInvocation) line: 98     
               SignOutInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               UserEventBridgeTriggerInterceptor.invoke(ServerInvocation) line: 65     
               UserEventBridgeTriggerInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               IdentityCacheInterceptor.invoke(ServerInvocation) line: 68     
               IdentityCacheInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(ServerInvocation) line: 49     
               TransactionInterceptor$invoke_N5143606530999904530.invokeNext() line: not available     
               TxPolicy.invokeInOurTx(Invocation, TransactionManager) line: 79     
               TxInterceptor$RequiresNew.invoke(Invocation) line: 253     
               TransactionInterceptor$invoke_N5143606530999904530.invokeNext() line: not available     
               TxPolicy.invokeInOurTx(Invocation, TransactionManager) line: 79     
               TxInterceptor$RequiresNew.invoke(Invocation) line: 262     
               TransactionInterceptor$invoke_N5143606530999904530.invokeNext() line: not available     
               TransactionInterceptor.invoke(ServerInvocation) line: not available     
               TransactionInterceptor(ServerInterceptor).invoke(Invocation) line: 38     
               ServerInvocation(Invocation).invokeNext() line: 115     
               LockInterceptor$InternalLock.invoke(Invocation) line: 69     
               SessionLockInterceptor(LockInterceptor).invoke(Invocation) line: 130     
               ServerInvocation(Invocation).invokeNext() line: 115     
               ServerInvocation(Invocation).invoke(InterceptorStack) line: 157     
               PortalServlet.service(HttpServletRequest, HttpServletResponse) line: 252     
               PortalServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 803     
               ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290     
               ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206     
               ReplyHeaderFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 96     
               ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235     
               ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206     
               StandardWrapperValve.invoke(Request, Response) line: 230     
               StandardContextValve.invoke(Request, Response) line: 175     
               SecurityAssociationValve.invoke(Request, Response) line: 182     
               FormAuthenticator(AuthenticatorBase).invoke(Request, Response) line: 432     
               JaccContextValve.invoke(Request, Response) line: 84     
               StandardHostValve.invoke(Request, Response) line: 127     
               ErrorReportValve.invoke(Request, Response) line: 102     
               CachedConnectionValve.invoke(Request, Response) line: 157     
               StandardEngineValve.invoke(Request, Response) line: 109     
               CoyoteAdapter.service(Request, Response) line: 262     
               Http11Processor.process(Socket) line: 844     
               Http11Protocol$Http11ConnectionHandler.process(Socket) line: 583     
               JIoEndpoint$Worker.run() line: 446     
               Thread.run() line: 595     
          • 3. Re: No application context active in a Seam portal application
            Siarhei Yarashevich Newbie

            The Exception is thrown here: Init.instance() line: 115

            • 4. Re: No application context active in a Seam portal application
              Binesh Gummadi Novice

              My guess is the problem might not be with portlet bridge. Your best bet is to deploy it as a stand alone application by removing the portelet specific xml files and check your log files. Of course this is only if you are in the beginning of the project.


              Second, I would check all seam components for any discrepancies. Things like having conversation scoped beans without @Begin or similar to that.

              • 5. Re: No application context active in a Seam portal application
                Siarhei Yarashevich Newbie

                I deployed my application as a standalone, and it worked fine, then I added portlet-specific configuration files, which were described in JBoss portlet bridge specification. After that my application crashed.

                • 6. Re: No application context active in a Seam portal application
                  Binesh Gummadi Novice

                  I am using Seam 2.1.1, JBoss Portal 2.6.2 and Bridge 1.0.0.B4. This combination has no issues.
                  Since you are sure about your configuration I guess this might be a bug in new version of portlet bridge.

                  • 7. Re: No application context active in a Seam portal application
                    Siarhei Yarashevich Newbie

                    Binesh, can you somehow provide me a working Seam portal application? :)

                    • 8. Re: No application context active in a Seam portal application
                      Binesh Gummadi Novice

                      The best I could do is to point you to one of our seam portlet which extracts data from alfresco and renders in a portlet. This will give you an idea.


                      Checkout the source from
                      https://svn.rivetlogic.com/repos/rivets/app/wcdr-portlet/trunk/

                      • 10. Re: No application context active in a Seam portal application
                        Siarhei Yarashevich Newbie

                        Unfortunately, I failed to build your project, I get this exception:


                        org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.portletbridge:examples for project: org.rive
                        tlogic:wcdrPortlet:war:null for project org.rivetlogic:wcdrPortlet:war:null
                                at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
                                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
                                at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
                                at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
                                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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
                                at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
                                at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
                                at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
                        Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.jboss.portletbridge:examples for proje
                        ct: org.rivetlogic:wcdrPortlet:war:null for project org.rivetlogic:wcdrPortlet:war:null
                                at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
                                at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
                                at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:5
                        06)
                                at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
                                at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
                                at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
                                at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
                                ... 11 more
                        Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.portletbridge:examples' not found in repository
                        : Unable to download the artifact from any repository


                          org.jboss.portletbridge:examples:pom:1.0.0.B4


                        from the specified remote repositories:
                          central (http://repo1.maven.org/maven2),
                          rivetlogic (http://mvn.rivetlogic.com/artifactory/repo)
                        for project org.jboss.portletbridge:examples
                                at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
                                at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
                                ... 17 more
                        Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository



                          org.jboss.portletbridge:examples:pom:1.0.0.B4


                        from the specified remote repositories:
                          central (http://repo1.maven.org/maven2),
                          rivetlogic (http://mvn.rivetlogic.com/artifactory/repo)


                                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
                                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
                                at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
                                ... 18 more
                        Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
                                at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
                                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
                                ... 20 more

                        • 11. Re: No application context active in a Seam portal application
                          Binesh Gummadi Novice

                          You might have to add this respository to pom.xml


                          <repository>
                                         <releases>
                                              <updatePolicy>always</updatePolicy>
                                              <checksumPolicy>warn</checksumPolicy>
                                         </releases>
                                         <id>Maven2JbossRepository</id>
                                         <name>Maven2 Jboss Repository</name>
                                         <url>http://repository.jboss.org/maven2</url>
                                    </repository>



                          It will be difficult for you to run this portlet as-is coz you need alfresco. This is just to give you an idea of how we can make seam run in jboss portal. Checkout the project and remove unncessary files and folders and try it.


                          If I find time I will try to give you a sample project which can be deployed in jboss portal. But please don't count on it.

                          • 12. Re: No application context active in a Seam portal application
                            Binesh Gummadi Novice

                            I downloaded latest version of portlet-bridge and it has seam and richfaces example portlets. That might be a good start. Try to deploy examples and if it works you can always base your first project on the sample and build on it.


                            Good Luck.

                            • 13. Re: No application context active in a Seam portal application
                              Siarhei Yarashevich Newbie

                              I'll be happy to have a deployable Seam portal application. Anyway, thank you very much for your help, Binesh!

                              • 14. Re: No application context active in a Seam portal application
                                Kapil Gulati Newbie

                                Not sure if you were able to figure this out, I was able to resolve it by adding javax.faces.LIFECYCLE_ID conext param to the web.xml file:

                                <context-param>
                                        <param-name>javax.faces.LIFECYCLE_ID</param-name>
                                        <param-value>SEAM_PORTLET</param-value>
                                </context-param>


                                The seam documentation suggests that this setting is not needed for seam 2.1.x, apparently it won't work without this setting.