]
Pete Muir commented on WELD-411:
--------------------------------
Are you inside a JSF request?
Weld + Liferay: ConversationScoped not working
----------------------------------------------
Key: WELD-411
URL:
https://jira.jboss.org/jira/browse/WELD-411
Project: Weld
Issue Type: Bug
Components: Scopes & Contexts
Affects Versions: 1.0.0.GA
Environment: Windows XP, Java JDK 1.6
Reporter: Marcel Birkner
Hi,
I tried the ZK 5.0.0 + Weld 1.0.0 example from this site:
http://blog.zkoss.org/index.php/2010/01/07/integrate-zk-and-jsr-299weld/
The example works in Tomcat 6. I am trying to make it work as a Portlet with Liferay
5.2.3.
When I declarate the Bean to be in the ApplicationScoped, it works. When I use
ConversationScoped it fails with the following error. As far as I understand the code it
can not find the Conversation Context. For JSF 2 there seems to be a fix (see
https://jira.jboss.org/jira/browse/WELD-340,
http://anonsvn.jboss.org/repos/weld/core/trunk/impl/src/main/java/org/jbo...)
For Portlets there is still a Problem propagating the ConversationScope context.
{code}
<pre>Failed to load /index.zul
Cause: No active contexts for scope type javax.enterprise.context.ConversationScoped
javax.enterprise.context.ContextNotActiveException: No active contexts for scope type
javax.enterprise.context.ConversationScoped
at org.jboss.weld.BeanManagerImpl.getContext(BeanManagerImpl.java:928)
at
org.jboss.weld.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:140)
at
org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:101)
at
de.scherm.example.ConversationTestController_$$_javassist_0.doFinally(ConversationTestController_$$_javassist_0.java)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:681)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:593)
...</pre>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: