2 Replies Latest reply on Nov 23, 2009 3:54 PM by Manik Surtani

    java.lang.ClassNotFoundException: org.jgroups.PhysicalAddres

    R S Newbie

      I believe maven pulled all dependencies correctly. I search in my maven repo, and i can not find org.jgroups.PhysicalAddress class file in any jar there.

      The only thing that might be of interest is that i have dependency on jboss cache 3.2.1 in the same project (it is really hard to pull it out right now just to check if that is the cause of problem).



      thank you.

      Nov 19 19:56:18,465 [main] WARN GenericTransactionManagerLookup:getTransactionManager:103 - Falling back to DummyTransactionManager from Infinispan
      Exception in thread "main" java.lang.NoClassDefFoundError: org/jgroups/PhysicalAddress
       at java.lang.Class.getDeclaredMethods0(Native Method)
       at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
       at java.lang.Class.getDeclaredMethods(Class.java:1791)
       at org.infinispan.util.ReflectionUtil.inspectRecursively(ReflectionUtil.java:105)
       at org.infinispan.util.ReflectionUtil.getAllMethods(ReflectionUtil.java:57)
       at org.infinispan.factories.AbstractComponentRegistry.addComponentDependencies(AbstractComponentRegistry.java:229)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:215)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:115)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.InterceptorChainFactory.createInterceptor(InterceptorChainFactory.java:48)
       at org.infinispan.factories.InterceptorChainFactory.buildInterceptorChain(InterceptorChainFactory.java:82)
       at org.infinispan.factories.InterceptorChainFactory.construct(InterceptorChainFactory.java:177)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:304)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:312)
       at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:242)
       at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:217)
       at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:117)
       at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:184)
       at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:89)
       at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:76)
       at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:57)
       at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:391)
       at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:358)
       at com.mycompany.shared.cache.impl.NearCacheRepositoryInfinispan.getCache(NearCacheRepositoryInfinispan.java:27)
       at com.mycompany.standalone.cache.impl.TMCacheReaderInfinispan.getLargeObjectsIntoCache(TMCacheReaderInfinispan.java:25)
       at com.mycompany.standalone.cache.impl.TMCacheReaderInfinispan.main(TMCacheReaderInfinispan.java:21)
       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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      Caused by: java.lang.ClassNotFoundException: org.jgroups.PhysicalAddress
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)