1 Reply Latest reply on Jun 23, 2010 11:58 AM by Thomas Jean

    java.lang.ClassNotFoundException: org.jgroups.ExtendedMembershipListener

    Thomas Jean Newbie

      Hello,

      i create an InfiniSpan synchronous cluster with replication configuration.

      I use a JAR library to initialize infiniSpan node and to search for InfiniSpan libraries.

      This JAR library works correctly on Windows but when i try to use it on linux (with all the same libraries as Windows on classpath), it give me the fatal exception: Caused by: java.lang.ClassNotFoundException:  org.jgroups.ExtendedMembershipListener. (see all stacktrace at bottom).

      Is anyone know something about this error?

      Bests regards,

      Thomas.

       

      I ever saw a similar post Small  mistake in runGuiDemo.bat(http://community.jboss.org/message/526210#526210) but, i don't use the demo batch.

       

       

      All StackTrace:

      java.io.IOException: Unable to create an instance of org.infinispan.config.GlobalConfiguration$TransportType
              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:225)
              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:135)
              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:272)
              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:253)
              at processUnit.commons.PersistentMemory.UnitedMemoryManager.constructMemoryManager(UnitedMemoryManager.java:90)
              at processUnit.commons.PersistentMemory.UnitedMemoryManager.<init>(UnitedMemoryManager.java:80)
              at processUnit.commons.launcher.ProcessUnitLauncher.initMemory(ProcessUnitLauncher.java:74)
              at processUnit.agentManager.launcher.AgentPULauncher.startProcessUnit(AgentPULauncher.java:36)
              at processUnit.agentManager.launcher.AgentPULauncher.main(AgentPULauncher.java:132)
      Caused by: javax.xml.bind.UnmarshalException: Unable to create an instance of org.infinispan.config.GlobalConfiguration$TransportType
      - with linked exception:
      [java.lang.reflect.InvocationTargetException]
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:631)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:236)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(UnmarshallingContext.java:596)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:170)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:470)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:448)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:79)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
              at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:200)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:173)
              at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
              at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:105)
              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:217)
              ... 8 more
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at com.sun.xml.internal.bind.v2.ClassFactory.create0(ClassFactory.java:112)
              at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.createInstance(ClassBeanInfoImpl.java:250)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(UnmarshallingContext.java:592)
              ... 27 more
      Caused by: java.lang.NoClassDefFoundError: org/jgroups/ExtendedMembershipListener
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
              at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              at org.infinispan.config.GlobalConfiguration$TransportType.<init>(GlobalConfiguration.java:608)
              ... 34 more
      Caused by: java.lang.ClassNotFoundException: org.jgroups.ExtendedMembershipListener
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              ... 47 more

       

      Here is the list of JARs i use:

      • infinispan-core.jar
      • jboss-transaction-api-1.0.1.GA.jar
      • jgroups-2.9.0.GA.jar
      • rhq-pluginAnnotations-1.4.0.B01.jar
        jboss-common-core-2.2.14.GA.jar
      • jcip-annotations-1.0.jar
      • marshalling-api-1.2.0.GA.jar
      • river-1.2.0.GA.jar

       

       

       

      Here is my InfiniSpan Configuration if needed:
      <?xml version="1.0" encoding="UTF-8"?>
      <infinispan
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:infinispan:config:4.0 http://www.infinispan.org/schemas/infinispan-config-4.0.xsd"
            xmlns="urn:infinispan:config:4.0">

         <global>
            <globalJmxStatistics enabled="true" jmxDomain="infinispan"/>
            <transport clusterName="AgentManager-cluster" distributedSyncTimeout="50000" nodeName="node_1"/>

            <serialization marshallerClass="org.infinispan.marshall.VersionAwareMarshaller" version="1.0"/>

            <shutdown hookBehavior="DEFAULT"/>
         </global>



      <default>
            <jmxStatistics enabled="true"/>
            <lazyDeserialization enabled="false"/>
            <invocationBatching enabled="false"/>

            <clustering mode="replication">
               <stateRetrieval timeout="20000" fetchInMemoryState="true"/>
               <sync replTimeout="5000"/>
            </clustering>


            <locking
                  isolationLevel="READ_COMMITTED"
                  lockAcquisitionTimeout="7000"
                  writeSkewCheck="false"
                  concurrencyLevel="500"
                  useLockStriping="false"
                  />


            <transaction
                  transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
                  syncRollbackPhase="true"
                  syncCommitPhase="true"
                  useEagerLocking="true"
                />
      </default>

        <namedCache name="persistentUnitedCache">
        </namedCache>

      </infinispan>