net.sf.ehcache.CacheException: Terracotta cache classes are not available, you are missing jar(s) most likely

tip

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

tip

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

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

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

tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

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

  • connect DB2 with Java
    via Stack Overflow by ramya
    ,
  • Openbravo compilation failed
    via by Unknown author,
  • cannot load jdbc driver
    via by Sue,
  • IBM WAS 3.0 with Apache
    via by Karthi Bala,
  • Error in DB2 connection Pooling
    via by damodaran puliyassery,
    • net.sf.ehcache.CacheException: Terracotta cache classes are not available, you are missing jar(s) most likely at net.sf.ehcache.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:138) at net.sf.ehcache.CacheManager.init(CacheManager.java:311) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:280) at com.tcs.test.TestTerracotta.initialize(TestTerracotta.java:63) at com.tcs.test.TestTerracotta.<init>(TestTerracotta.java:28) at com.tcs.test.TestTerracotta.main(TestTerracotta.java:19) Caused by: java.lang.ClassNotFoundException: org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory 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.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.sf.ehcache.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:129) at net.sf.ehcache.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:130) ... 5 more

    Users with the same issue

    jokester
    jokester1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    zsamboki
    zsamboki1 times, last one,
    Pilleo
    Pilleo2 times, last one,
    1376 more bugmates