4 Replies Latest reply on Feb 16, 2010 4:10 PM by Tim vB

    Small mistake in runGuiDemo.bat

    Tim vB Newbie

      Hi,

       

      I just started playing around with Infinispan on my Windows machine.

      The first thing i did was trying to start the GUI demo. The application opens fine but when i try to start the cache i get a lot of stack traces:

       

      In the runGuiDemo.bat file there is a small mistake (the missing % ) that prevents the infinispan core jar file from loading onto the classpath

       

      set my_classpath=%my_classpath;..\infinispan-core.jar

       

      must be

       

      set my_classpath=%my_classpath%;..\infinispan-core.jar

       

      I added the correct bat file as an attachement

       

      stack trace when starting runGuiDemo.bat:

       

      C:\infinispan-4.0.0.CR4\bin>runGuiDemo.bat
      log4j:WARN No appenders could be found for logger (org.infinispan.demo.InfinispanDemo).
      log4j:WARN Please initialize the log4j system properly.
      Exception in thread "pool-1-thread-1" java.lang.RuntimeException: java.io.IOException: Unable to create an instance of org.infinispan.config.GlobalConfiguration$TransportType
              at org.infinispan.demo.InfinispanDemo$10.run(InfinispanDemo.java:351)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: Unable to create an instance of org.infinispan.config.GlobalConfiguration$TransportType
              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:231)
              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:261)
              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:247)
              at org.infinispan.demo.InfinispanDemo$10.run(InfinispanDemo.java:320)
              ... 3 more
      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(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(Unknown Source)
              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
              at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
              at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)
              at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
              at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:217)
              ... 6 more
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
              at java.lang.reflect.Constructor.newInstance(Unknown Source)
              at com.sun.xml.internal.bind.v2.ClassFactory.create0(Unknown Source)
              at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.createInstance(Unknown Source)
              ... 29 more
      Caused by: java.lang.NoClassDefFoundError: org/jgroups/ExtendedMembershipListener
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(Unknown Source)
              at java.security.SecureClassLoader.defineClass(Unknown Source)
              at java.net.URLClassLoader.defineClass(Unknown Source)
              at java.net.URLClassLoader.access$000(Unknown Source)
              at java.net.URLClassLoader$1.run(Unknown Source)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at java.lang.ClassLoader.loadClassInternal(Unknown Source)
              at org.infinispan.config.GlobalConfiguration$TransportType.<init>(GlobalConfiguration.java:622)
              ... 35 more
      Caused by: java.lang.ClassNotFoundException: org.jgroups.ExtendedMembershipListener
              at java.net.URLClassLoader$1.run(Unknown Source)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at java.lang.ClassLoader.loadClassInternal(Unknown Source)
              ... 48 more