Hi Gareth, thanks for your interest in Karaf and Cellar.
It seems that you found a bug. I'm gonna raise a Jira and reproduce your issue with a test case.
Could you provide some information about your bundle ? Do you have create Cellar group ? Thanks Regards JB On 07/20/2011 04:36 AM, Gareth wrote:
Hello, I would like to use Karaf as well as Cellar. I also would like to use Hazelcast for my program (since it is now getting a lot of Apache integration vs. other open-source clustering software). So I have some questions: (1) Is there an issue if I piggyback on the Cellar Hazelcast cluster, or should I make a completely separate one? Just as a note, I am seeing some exceptions when I uninstall my bundles after using Hazelcast: java.lang.ClassNotFoundException:<my class> not found from bundle [org.apache.karaf.cellar.hazelcast] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) . . Caused by: java.lang.ClassNotFoundException:<My class> not found by org.apache.karaf.cellar.hazelcast [141] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645) (2) I see there is an OSGi classloader problem with the Hazelcast Cluster Monitor. If you use any custom classes in an IMap it cannot find them. e.g.: Caused by: java.lang.ClassNotFoundException: org.apache.karaf.cellar.core.Group not found by com.hazelcast.monitor [143] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_26] Is there any way around this? Is using the Hazelcast cluster monitor to be avoided for OSGi/Keraf Cellar? thanks in advance, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Cellar-And-Hazelcast-Questions-tp3184320p3184320.html Sent from the Karaf - User mailing list archive at Nabble.com.
-- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com