java.lang.NoClassDefFoundError: javax/persistence/EntityListeners

coderanch.com | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Error:java.lang.NoClassDefFoundError: javax/persistence/EntityList

    Coderanch | 7 years ago | Vikram Kohli
    java.lang.NoClassDefFoundError: javax/persistence/EntityListeners
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.EntityListeners

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    6 frames
  3. Hibernate
    JPAMetadataProvider.getDefaults
    1. org.hibernate.cfg.annotations.reflection.JPAMetadataProvider.getDefaults(JPAMetadataProvider.java:96)
    1 frame
  4. Hibernate Commons Annotations
    JavaReflectionManager.getDefaults
    1. org.hibernate.annotations.common.reflection.java.JavaReflectionManager.getDefaults(JavaReflectionManager.java:226)
    1 frame
  5. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1353)
    2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1824)
    2 frames
  6. com.vaannila.util
    HibernateUtil.<clinit>
    1. com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:10)
    1 frame
  7. com.vaannila.course
    Main.main
    1. com.vaannila.course.Main.saveCourse(Main.java:26)
    2. com.vaannila.course.Main.main(Main.java:15)
    2 frames