]
Slava Davidovich reopened JBSEAM-2778:
--------------------------------------
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: