[
https://issues.apache.org/jira/browse/OWB-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223563#comment-13223563
]
gonzalad commented on OWB-626:
------------------------------
Hi, I'm working with Thierry on reproducing this issue.
This also happens in some configurations when JSF 2 (myfaces 2.x) is used in
Development ProjectStage with a conversation scoped cdi bean.
More specifically, I get error [1] when the jsf page tries to access the cdi
bean in its DebugPhaseListener.
The error happens when the order of phaselisteners
(PhaseListenerManager#informPhaseListenersAfter(PhaseId)) is
phaseListeners =
[org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener@3f1e6a4,
org.apache.webbeans.jsf.WebBeansPhaseListener@3f1e6a2]
This happens to me in the following configuration : Websphere 8.0.0.1 (uses OWB
1.1.0 I think) with the following web.xml [2].
Please, note when I omit explicit Faces Servlet configuration, everything works
fine.
[1]
SRVE0293E: [Erreur de servlet]-[Faces Servlet]:
javax.enterprise.context.ContextNotActiveException: WebBeans context with scope
type annotation @ConversationScoped does not exist within current thread
[2]
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
> Conversation Scope isn't accessible after RENDER_RESPONSE phase
> ---------------------------------------------------------------
>
> Key: OWB-626
> URL: https://issues.apache.org/jira/browse/OWB-626
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.1
> Reporter: Thierry Robin
> Assignee: Mark Struberg
> Fix For: 1.2.0
>
> Attachments: OWB626ConversationPhaseListener.java
>
>
> In CDI 1.0, the Conversation Scope is normaly accessible from after
> RESTORE_VIEW phase in JSF, to the end of the Response.
> But It's not the case during the after phase(RENDER_RESPONSE) of any
> PhaseListener implementation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira