java.lang.NoClassDefFoundError

org/hibernate/service/jndi/JndiNameException

Samebug tips4

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

I had to build one fat jar that will include all dependencies from the other jars that i wanted to use.


ThZoisThZois

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web5439

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.NoClassDefFoundError: org/hibernate/service/jndi/JndiNameException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.jboss.logging.Logger$1.run(Logger.java:2554) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516) at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:144) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39) at com.testehibernate.GerarTabelas.main(GerarTabelas.java:8) Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jndi.JndiNameException at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 11 more

    Write tip

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

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    1535 more bugmates