tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schlichtherle <christian-b...@schlichtherle.de>
Subject Re: TomEE cluster and cdibeans
Date Fri, 16 Aug 2013 12:56:29 GMT
Hi,

I justed pushed again, please retry to pull the latest changes from https://christian_schlichtherle@bitbucket.org/christian_schlichtherle/trueupdate.git
.

Now if you run

    mvn clean install

and then try to deploy the EAR in trueupdate-manager/trueupdate-manager-appl-openejb/target/trueupdate-manager-appl-openejb-0.1-SNAPSHOT.ear
.

Then you should get what I get.

Thanks for looking into it.

Best regards,
Christian Schlichtherle

Am 16.08.2013 um 14:49 schrieb Romain Manni-Bucau <rmannibucau@gmail.com>:

> hmm either you forgot to push some code or i missed sthg, that's what i did
> but your project doesn't have the qualifier you refer to on master
> 
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
> 
> 
> 
> 2013/8/16 Helge Waastad <helge@waastad.org>
> 
>> Hi,
>> In master:
>> mvn clean package -P skinny-all
>> 
>> In ClusterApp-ear:
>> 
>> mvn tomee:run -Pnode1
>> mvn tomee:run -Pnode2
>> 
>> The login action triggers a log.fire which throws the exception on the
>> backup node.
>> 
>> Br hw
>> 
>> Sendt fra min iPhone
>> 
>> Den 16. aug. 2013 kl. 14:16 skrev Romain Manni-Bucau <
>> rmannibucau@gmail.com>:
>> 
>>> how to test it with your github?
>>> 
>>> *Romain Manni-Bucau*
>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>> *Blog: **http://rmannibucau.wordpress.com/*<
>> http://rmannibucau.wordpress.com/>
>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>> *Github: https://github.com/rmannibucau*
>>> 
>>> 
>>> 
>>> 2013/8/16 hwaastad <helge@waastad.org>
>>> 
>>>> Hi,
>>>> I'm continuing testing....
>>>> 
>>>> an issue, maybe related to this post:
>>>> 
>>>> I have an library module and in this module I have defines a Qualifier
>> to
>>>> be
>>>> used in the other modules.
>>>> 
>>>> https://github.com/hwaastad/ClusterTest.git and branch
>>>> feature/cdi-jar-event
>>>> 
>>>> the ejb has an asynchronous observer.
>>>> 
>>>> webmodule:
>>>> @Inject
>>>> @DbLog Event<String> log;
>>>> 
>>>> ejbmodule:
>>>> 
>>>> public void processSyslog(@Observes @DbLog String message) {}
>>>> 
>>>> In cluster mode I see the following:
>>>> 
>>>> SEVERE: Manager [localhost#/ClusterApp]: Unable to receive message
>> through
>>>> TCP channel
>>>> java.lang.ClassNotFoundException: org.waastad.qualifier.DbLog
>>>>      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>>      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>>      at java.security.AccessController.doPrivileged(Native Method)
>>>>      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>      at java.lang.Class.forName0(Native Method)
>>>>      at java.lang.Class.forName(Class.java:270)
>>>>      at
>>>> java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:695)
>>>>      at
>>>> java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1556)
>>>>      at
>>>> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1512)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> org.apache.webbeans.event.EventImpl.readObject(EventImpl.java:158)
>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> 
>>>> 
>> org.apache.webbeans.context.creational.DependentCreationalContext.readObject(DependentCreationalContext.java:106)
>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at java.util.ArrayList.readObject(ArrayList.java:733)
>>>>      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> 
>>>> 
>> org.apache.webbeans.context.creational.CreationalContextImpl.readObject(CreationalContextImpl.java:325)
>>>>      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> 
>>>> 
>> java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1574)
>>>>      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> 
>>>> 
>> java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1574)
>>>>      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> 
>>>> 
>> java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1574)
>>>>      at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
>>>>      at
>>>> 
>>>> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>      at java.lang.reflect.Method.invoke(Method.java:606)
>>>>      at
>>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1891)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
>>>>      at
>>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
>>>>      at
>>>> 
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>>>>      at
>>>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
>>>>      at
>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(DeltaRequest.java:378)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.java:268)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(DeltaManager.java:604)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1349)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1296)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1014)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:92)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:940)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:921)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:278)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:117)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
>>>>      at
>>>> 
>>>> 
>> org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
>>>>      at
>>>> 
>>>> 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>      at
>>>> 
>>>> 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>      at java.lang.Thread.run(Thread.java:724)
>>>> 
>>>> 
>>>> It should be "legal" to define cdi in jar and use beans.xml in
>> META-INF.(?)
>>>> 
>>>> br,
>>>> hw
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context:
>>>> 
>> http://openejb.979440.n4.nabble.com/TomEE-cluster-and-cdibeans-tp4664576p4664678.html
>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>> 
>> 


Mime
View raw message