[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2778) Uncaught exception when using non-faces request & faces response with seam framework

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Mar 25 08:04:39 EDT 2008

     [ http://jira.jboss.com/jira/browse/JBSEAM-2778?page=all ]

Pete Muir closed JBSEAM-2778.

    Resolution: Won't Fix

The JSF servlet should not be run in this case. If the JSF servlet were not used, then the SeamPhaseListener would not run.

This is therefore an issue in JSF or your servlet container or your configuration.

> Uncaught exception when using non-faces request & faces response with seam framework
> ------------------------------------------------------------------------------------
>                 Key: JBSEAM-2778
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2778
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF Integration
>    Affects Versions: 2.0.1.GA
>            Reporter: Slava Davidovich
>         Attachments: exportservlet.war, log.log
> 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 :(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list