Error while integrating modeshape 2.8.x with JGroups3.x
neil.zou Feb 22, 2013 4:54 AMI'm now using modeshape 2.8.2, we need to use modeshape cluster feature. JGroups-3.0.9 is already used in system, so we removed jgroups dependency while adding modeshape clusting jar:
<dependency> <groupId>org.modeshape</groupId> <artifactId>modeshape-clustering</artifactId> <version>${modeshape.version}</version> <exclusions> <exclusion> <groupId>org.jgroups</groupId> <artifactId>jgroups</artifactId> </exclusion> </exclusions> </dependency>
And I updated the jgroups configuration file as JGroups3 style, details attached.
But while we starting application, got below error, does modeshape 2.8.X only support JGroups 2?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modeshapeFactory' defined in URL [......]: Invocation of init method failed; nested exception is org.modeshape.common.SystemFailureException: java.lang.NoClassDefFoundError: org/jgroups/ChannelClosedException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 76 more Caused by: org.modeshape.common.SystemFailureException: java.lang.NoClassDefFoundError: org/jgroups/ChannelClosedException at org.modeshape.common.component.ComponentLibrary.newInstance(ComponentLibrary.java:318) at org.modeshape.common.component.ComponentLibrary.add(ComponentLibrary.java:165) at org.modeshape.common.component.ComponentLibrary.removeAllAndAdd(ComponentLibrary.java:248) at org.modeshape.repository.cluster.ClusteringService.setClusteringConfig(ClusteringService.java:122) at org.modeshape.repository.ModeShapeEngine.<init>(ModeShapeEngine.java:142) at org.modeshape.jcr.JcrEngine.<init>(JcrEngine.java:111) at org.modeshape.jcr.JcrConfiguration.build(JcrConfiguration.java:550) at com.test.MsClientFactory.startRepositories(MsClientFactory.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 83 more Caused by: java.lang.NoClassDefFoundError: org/jgroups/ChannelClosedException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.modeshape.common.component.ComponentLibrary.newInstance(ComponentLibrary.java:303) ... 97 more Caused by: java.lang.ClassNotFoundException: org.jgroups.ChannelClosedException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) ... 100 more
-
jgroups-modeshape.xml.zip 1.2 KB