java.lang.NoClassDefFoundError: com/google/ common/cache/LoadingCache

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

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

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

Solutions on the web

via Google Groups by machi...@163.com, 6 months ago
com/google/ > common/cache/LoadingCache
via Stack Overflow by Fedor Skrynnikov
, 1 year ago
org/hibernate/cache/CacheProvider
via grokbase.com by Unknown author, 2 years ago
via Stack Overflow by Gopal
, 2 years ago
com/crunchify/controller/PasswordCheck
via ibm.com by Unknown author, 2 years ago
via GitHub by dstackowiak
, 2 years ago
com/fasterxml/classmate/members/ResolvedParameterizedMember
java.lang.ClassNotFoundException: com.google.common.cache.LoadingCache
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.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:81)
at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:73)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:232)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
at com.google.inject.Guice.createInjector(Guice.java:95)
at org.jclouds.rest.RestContextBuilder.buildInjector(RestContextBuilder.java:186)
at org.jclouds.compute.ComputeServiceContextBuilder.buildInjector(ComputeServiceContextBuilder.java:52)
at org.jclouds.compute.ComputeServiceContextBuilder.buildComputeServiceContext(ComputeServiceContextBuilder.java:65)
at org.jclouds.compute.ComputeServiceContextFactory.buildContextUnwrappingExceptions(ComputeServiceContextFactory.java:70)
at org.jclouds.compute.ComputeServiceContextFactory.createContext(ComputeServiceContextFactory.java:121)
at com.syncsort.NovaTest.main(NovaTest.java:39)

Users with the same issue

Once, 3 weeks ago
Once, 1 month ago
Once, 1 month ago
5 times, 1 month ago
Once, 2 months ago

Write tip

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