3 Replies Latest reply on Sep 3, 2009 5:30 AM by lpiccoli

    No active application context error

    lpiccoli

      jboss portal 2.7.2
      seam 2.2.0GA
      portletbridge 2.0.0Alpha

      hi all

      i am attempting to run my seam application in portlet bridge. it works fine in a normal seam environment.

      it even deploys ok to portlet bridge. However when i attempt to access one of the application tabs it throws the following error.

      15:46:22,189 ERROR [SeamExceptionHandlerImpl] Error processing render lifecycle
      javax.faces.FacesException: java.lang.IllegalStateException: No active applicati
      on context
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.ja
      va:952)
       at org.jboss.portletbridge.AjaxPortletBridge.renderResponse(AjaxPortletB
      ridge.java:766)
       at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletB
      ridge.java:508)
       at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesP
      ortlet.java:583)
       at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.ja
      va:474)
       at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
       at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortle
      t.java:445)
      


      any help is most appreciated.

      -lp

        • 1. Re:  No active application context error
          lpiccoli


          the problem occurs when accessing a s:link

          <s:link id="Test3" view="/test.xhtml" value="test3"/>
          


          are there known problems using s:link in portletbridge?

          -lp

          • 2. Re:  No active application context error
            lpiccoli

            looks by cleaning up the seam jars and replacing them with jboss-seam-2.2.0.CR1.jar from the portletbridget2.0.0Alpha maven archive all the nasty errors have gone.

            But in its place the i got the following in the trace.

            the links still do not work correctly as they are continually going to the 'view page' not the page thet i have linked to.

            14:59:58,966 ERROR [STDERR] 3/09/2009 14:59:58 javax.portlet.faces.GenericFacesP
            ortlet doHeaders
            INFO: Process headers request for portlet SeamITPFlowPortlet
            14:59:58,970 ERROR [STDERR] 3/09/2009 14:59:58 javax.portlet.faces.GenericFacesP
            ortlet doView
            INFO: Process view request for portlet SeamITPFlowPortlet
            



            the exact application deployment is working fine when accessed outside the portletbridge.

            this is very frustrating stuff trying to get this portlet to work.

            any help is most appreciated.

            -lp

            • 3. Re:  No active application context error
              lpiccoli

              this works fine with portletbridge 1.0.0

              raised a jira

              https://jira.jboss.org/jira/browse/PBR-118