[weld-issues] [JBoss JIRA] Closed: (WELD-411) Weld + Liferay: ConversationScoped not working

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Feb 1 10:08:19 EST 2010


     [ https://jira.jboss.org/jira/browse/WELD-411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-411.
--------------------------

    Resolution: Rejected
      Assignee: Pete Muir


Conversations in Weld are only supported in JSF. For ZK + CDI support, go to their issue tracker :-)

> 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
>            Assignee: Pete Muir
>
> 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.
> {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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list