tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dmitry.vol...@eiskonzept.com>
Subject AW: AW: Passivation capable CDI beans replication across cluster does not work
Date Fri, 04 Jan 2013 13:42:09 GMT
Just tested with snapshot 1.5.2-20130104.041348-22: 
-Dtomee.session-context.wrapper=http only - no effect
both -Dtomee.session-context.wrapper=http and -Dopenejb.session-context=http - got exception:


java.lang.ClassCastException: java.lang.String cannot be cast to javax.enterprise.context.spi.Contextual
	org.apache.tomee.catalina.cdi.SessionContextBackedByHttpSession.key(SessionContextBackedByHttpSession.java:62)
	org.apache.tomee.catalina.cdi.SessionContextBackedByHttpSession.access$000(SessionContextBackedByHttpSession.java:21)
	org.apache.tomee.catalina.cdi.SessionContextBackedByHttpSession$HttpSessionMap.get(SessionContextBackedByHttpSession.java:223)
	org.apache.tomee.catalina.cdi.SessionContextBackedByHttpSession$HttpSessionMap.putIfAbsent(SessionContextBackedByHttpSession.java:249)
	org.apache.tomee.catalina.cdi.SessionContextBackedByHttpSession$HttpSessionMap.putIfAbsent(SessionContextBackedByHttpSession.java:164)
	org.apache.webbeans.context.AbstractContext.createContextualBag(AbstractContext.java:82)
	org.apache.webbeans.context.AbstractContext.initContextualBag(AbstractContext.java:72)
	org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.initiateBeanBag(NormalScopedBeanInterceptorHandler.java:73)
	org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.<init>(NormalScopedBeanInterceptorHandler.java:62)
	org.apache.webbeans.proxy.ProxyFactory.createInterceptorHandler(ProxyFactory.java:282)
	org.apache.webbeans.proxy.ProxyFactory.createNormalScopedBeanProxy(ProxyFactory.java:225)
	org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:850)
	org.apache.webbeans.container.InjectableBeanManager.getReference(InjectableBeanManager.java:135)
	org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider.getReference(BeanManagerProvider.java:216)
	org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider.getContextualReference(BeanManagerProvider.java:176)
	org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.broadcastBeforeFacesRequestEvent(CodiLifecycleWrapper.java:157)
	org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:81)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

-----Ursprüngliche Nachricht-----
Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
Gesendet: Freitag, 4. Januar 2013 14:00
An: users@openejb.apache.org
Betreff: Re: AW: Passivation capable CDI beans replication across cluster does not work

did you try adding:

-Dtomee.session-context.wrapper=http?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/1/4  <dmitry.volkov@eiskonzept.com>:
> But Apache CODI uses session to save its Conversation and Window Scopes (and I can see
relevant attributes in session of first node which are not replicated to second node).
> Furthermore CODI scopes are replicated in another application servers which uses same
technology stack(like IBM Websphere 8).
>
> -----Ursprüngliche Nachricht-----
> Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> Gesendet: Donnerstag, 3. Januar 2013 21:41
> An: users@openejb.apache.org
> Betreff: Re: AW: Passivation capable CDI beans replication across 
> cluster does not work
>
> Only the sessionscoped beans are replicated through tomcat session...other scoped are
not (depend on the impl which probably doesnt use the session to store instances) Le 3 janv.
2013 19:49, <dmitry.volkov@eiskonzept.com> a écrit :
>
>> Hi,
>>
>> I have just uploaded test project reproducing the problem:
>> https://github.com/eiskonzept/tomee/
>> I have not reproduced exception, but WindowScoped beans are not 
>> replicated(without exception)
>>
>> To reproduce the problem:
>> 1. Start two tomee instances:
>>         mvn clean package tomee:start -P node1
>>         mvn clean package tomee:start -P node2 2. Open index.xhtml in 
>> test application context:
>>         http://localhost:8080/tomee_replication-1.0/index.xhtml
>> 3. Check created session in manager application of first node:
>>         http://localhost:8080/manager/html/sessions
>>
>>         There is parameter with something like this in its name:
>> "org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.EditableWindowContextManagerProxy"
>> 4. Check replicated session in manager application of second node:
>>         http://localhost:8081/manager/html/sessions
>>
>>         There is no such parameter.
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
>> Gesendet: Donnerstag, 3. Januar 2013 15:38
>> An: users@openejb.apache.org
>> Betreff: Re: Passivation capable CDI beans replication across cluster 
>> does not work
>>
>> Hi,
>>
>> is it possible for you to share a project reproducing it?
>>
>> the best would be a maven project with the tomee maven plugin 
>> configured
>>
>> about failoverservice it is off by default and can be configured on 
>> trunk (
>> https://issues.apache.org/jira/browse/TOMEE-698)
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2013/1/2  <dmitry.volkov@eiskonzept.com>:
>> > cannot load the class
>>

Mime
View raw message