[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2778) Uncaught exception when using non-faces request & faces response with seam framework
Slava Davidovich (JIRA)
jira-events at lists.jboss.org
Wed Mar 26 11:33:40 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2778?page=comments#action_12404808 ]
Slava Davidovich commented on JBSEAM-2778:
------------------------------------------
Pete, does it mean that SEAM framework doesn`t support so easy action like render html? Cause it doesn`t support render in a jsf too...
Please look http://www.seamframework.org/Community/ProblemWhenGenerateFacesResponseWithNonfacesRequestInSEAM , and please don`t say something like: "if you not use A, there will no "magic" exception in B", example (which fails in SEAM 2.0.1 GA ) everybody can find in section 2.1.1 Non-Faces Request Generates Faces Response of jsf-spec.
> 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