java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • ClassNotFound Error
    via by sundarrajk,
  • Java JAX-RPC client to C# web service
    via Stack Overflow by vico
    ,
    • java.lang.NoClassDefFoundError: org/terracotta/collec tions/LockableMap at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 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 sun.misc.Launcher$AppClassLoader.findClass(Launcher.java) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 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 sun.misc.Launcher$AppClassLoader.findClass(Launcher.java) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.newStore(TerracottaClusteredInstanceFactory.java:271) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStoreInternal(TerracottaClusteredInstanceFactory.java:240) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStore(TerracottaClusteredInstanceFactory.java:231) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStore(TerracottaClusteredInstanceFactory.java:70) at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createStore(TerracottaClusteredInstanceFactory.java:64) at net.sf.ehcache.CacheManager.createTerracottaStore(CacheManager.java:393) at net.sf.ehcache.Cache.initialise(Cache.java:956) at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:980) at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:608) at net.sf.ehcache.CacheManager.init(CacheManager.java:339) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:280) at com.tcs.test.TestTerracotta.initialize(TestTerracotta.java:74) at com.tcs.test.TestTerracotta.<init>(TestTerracotta.java:32) at com.tcs.test.TestTerracotta.main(TestTerracotta.java:20)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    junior_cEngineerjunior_cEngineer
    1 times, last one,
    GhostsGhosts
    12 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    139 more bugmates