java.lang.NoClassDefFoundError

org/terracotta/cache/CacheConfigFactory

Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web18927

  • via Terracotta Project Issue Tracker by Tim Eck, 1 year ago
    org/terracotta/cache/CacheConfigFactory
  • via Terracotta Project Issue Tracker by Tim Eck, 1 year ago
    org/terracotta/cache/CacheConfigFactory
  • org/terracotta/entity/SyncMessageCodec
  • Stack trace

    • java.lang.NoClassDefFoundError: org/terracotta/cache/CacheConfigFactory at org.terracotta.cache.evictor.EvictionStatistics.<init>(EvictionStatistics.java:25) at org.terracotta.cache.impl.DistributedCacheImpl.initializeOnLoad(DistributedCacheImpl.java:89) at org.terracotta.cache.impl.DistributedCacheImpl.<init>(DistributedCacheImpl.java:69) at org.terracotta.modules.hibernatecache.clustered.CacheStoreDso.<init>(CacheStoreDso.java:19) at org.terracotta.modules.hibernatecache.clustered.TerracottaHibernateCacheImpl.<init>(TerracottaHibernateCacheImpl.java:56) at org.terracotta.modules.hibernatecache.clustered.ComponentFactoryImpl.newCache(ComponentFactoryImpl.java:37) at org.terracotta.modules.hibernatecache.PlainTerracottaHibernateCacheProvider.buildCacheInternal(PlainTerracottaHibernateCacheProvider.java:27) at org.terracotta.modules.hibernatecache.provider.BaseTerracottaCacheProvider.buildCache(BaseTerracottaCacheProvider.java:66) at org.terracotta.modules.hibernatecache.BootstrapCacheProvider.buildCache(BootstrapCacheProvider.java:76) at org.terracotta.hibernate.TerracottaHibernateCacheProvider.buildCache(TerracottaHibernateCacheProvider.java:40) at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.buildEntityRegion(RegionFactoryCacheProviderBridge.java:96) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341) at org.terracotta.hibernate.tests.HibernateUtil.getSessionFactory(HibernateUtil.java:34) at org.terracotta.hibernate.tests.Client1.run(Client1.java:29) at org.terracotta.hibernate.tests.ClientBase.execute(ClientBase.java:18) at org.terracotta.hibernate.tests.Client1.main(Client1.java:22) Caused by: java.lang.ClassNotFoundException: org.terracotta.cache.CacheConfigFactory 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) ... 17 more

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1189 more bugmates