java.lang.NoClassDefFoundError: javax/persistence/Cacheable

coderanch.com | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Hibernate java.lang.ClassNotFoundException: javax.persistence.Cacheable

    Coderanch | 6 years ago | David Mbura
    java.lang.NoClassDefFoundError: javax/persistence/Cacheable
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0
    samebug tip
    Look for missing class files, specially org.I0Itec.zkclient.IZkStateListener.
  4. 0

    Building Spring 3.0.1 - Failing Tests

    Stack Overflow | 5 years ago | Nerrve
    java.lang.ClassNotFoundException: org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect

  1. iferca 3 times, last 2 weeks ago
  2. andyglick 1 times, last 2 weeks ago
  3. Andreas Häber 2 times, last 2 weeks ago
  4. carloscharx 6 times, last 3 weeks ago
  5. poroszd 1 times, last 3 weeks ago
68 more registered users
27 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.persistence.Cacheable

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    6 frames
  3. Hibernate
    SchemaExport.<init>
    1. org.hibernate.cfg.AnnotationBinder.determineCacheSettings(AnnotationBinder.java:953)
    2. org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:596)
    3. org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:636)
    4. org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:359)
    5. org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:838)
    6. org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:128)
    7. org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:91)
    7 frames
  4. com.hibernate.test1
    Test.main
    1. com.hibernate.test1.Test.main(Test.java:16)
    1 frame