Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2778

Uncaught exception when using non-faces request & faces response with seam framework

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 2.0.1.GA
    • Fix Version/s: None
    • Component/s: JSF Integration
    • Labels:
      None
    • Environment:

      JBoss 4.2.2.GA , Seam 2.0.1.GA , Richfaces 3.1.4.GA , JDK5

      Description

      If I try to implement non-faces request with faces response (as written in jsf specification) I have uncaught exception in SeamPhaseListener with access only to servlet & faces contexts.

      link looks like this: http://localhost:8080/servl/test/ where servl is a app path,
      test is described in web.xml url pattern to run our servlet.

      12:33:59,500 ERROR [SeamPhaseListener] uncaught exception
      java.lang.IllegalStateException: No active application scope
      at org.jboss.seam.core.Init.instance(Init.java:75)
      at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:305)
      at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:142)
      at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      at TestServlet.doGet(TestServlet.java:39)

      It`s very interesting cause Lifecycle.isApplicationInitialized() returns true, but Contexts.isApplicationContextActive() returns false.
      Annotations @Scope (ScopeType.APPLICATION) & @Startup changes nothing

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Horo Slava Davidovich
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: