-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
1.0.0.GA
-
None
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/jboss/weld/servlet/ConversationPropagationFilter.java)
For Portlets there is still a Problem propagating the ConversationScope context.
<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>