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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

,
Expert 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}

Solutions on the web

via Terracotta by sbelden, 1 year ago
Terracotta cache classes are not available, you are missing jar(s) most likely
via Terracotta by sbelden, 1 year ago
Terracotta cache classes are not available, you are missing jar(s) most likely
via Terracotta by jeberle, 1 year ago
Terracotta cache classes are not available, you are missing jar(s) most likely
net.sf.ehcache.CacheException: Terracotta cache classes are not available, you are missing jar(s) most likely
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)
at net.sf.ehcache.CacheManager.init(CacheManager.java:311)
at net.sf.ehcache.CacheManager.(CacheManager.java:280)
at com.tcs.test.TestTerracotta.initialize(TestTerracotta.java:63)
at com.tcs.test.TestTerracotta.(TestTerracotta.java:28)
at com.tcs.test.TestTerracotta.main(TestTerracotta.java:19)

Users with the same issue

Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.