org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile

Stack Overflow | Chetan Khatri | 4 months ago
  1. 0

    Error while running Spring boot applications - Error creating bean with name 'entityManagerFactory' defined in class path resource

    Stack Overflow | 4 months ago | Chetan Khatri
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile
  2. 0

    java.lang.NoClassDefFoundError: com/rabbitmq/client/impl/ConsumerDispatcher$6

    GitHub | 2 years ago | sincang
    java.lang.NoClassDefFoundError: com/rabbitmq/client/impl/ConsumerDispatcher$6
  3. 0

    Auto-reloading .jar fails

    GitHub | 2 years ago | kryger
    java.lang.NoClassDefFoundError: org/apache/tomcat/util/ExceptionUtils
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 2875#137259405

    GitHub | 1 year ago | Ivanenok
    java.lang.NoClassDefFoundError: org/springframework/context/support/DefaultLifecycleProcessor$1
  6. 0

    SpringBoot 1.2 throws NoClassDefFoundError on shutdown

    Stack Overflow | 2 years ago | user2641968
    java.lang.NoClassDefFoundError: org/eclipse/jetty/util/FutureCallback

    13 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.util.zip.ZipException

      invalid distance too far back

      at java.util.zip.InflaterInputStream.read()
    2. Java RT
      InflaterInputStream.read
      1. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
      1 frame
    3. Spring Boot Loader
      ZipInflaterInputStream.read
      1. org.springframework.boot.loader.jar.ZipInflaterInputStream.read(ZipInflaterInputStream.java:52)
      1 frame
    4. Java RT
      ClassLoader.loadClass
      1. sun.misc.Resource.getBytes(Resource.java:124)
      2. java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
      3. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      4. java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      5. java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      8. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      8 frames
    5. Spring Boot Loader
      LaunchedURLClassLoader.loadClass
      1. org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:170)
      2. org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:136)
      2 frames
    6. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      1 frame
    7. org.hibernate.jpa
      EntityManagerFactoryBuilderImpl.<init>
      1. org.hibernate.jpa.boot.scan.spi.ClassFileArchiveEntryHandler.toClassFile(ClassFileArchiveEntryHandler.java:85)
      2. org.hibernate.jpa.boot.scan.spi.ClassFileArchiveEntryHandler.handleEntry(ClassFileArchiveEntryHandler.java:65)
      3. org.hibernate.jpa.boot.archive.internal.JarFileBasedArchiveDescriptor.visitArchive(JarFileBasedArchiveDescriptor.java:176)
      4. org.hibernate.jpa.boot.scan.spi.AbstractScannerImpl.scan(AbstractScannerImpl.java:72)
      5. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.scan(EntityManagerFactoryBuilderImpl.java:725)
      6. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:221)
      7. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:188)
      7 frames
    8. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider$1.<init>(SpringHibernateJpaPersistenceProvider.java:49)
      2. org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:49)
      3. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)
      4. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)
      4 frames
    9. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      8 frames
    10. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:956)
      2. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:747)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      3 frames
    11. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
      3. org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
      5 frames
    12. netgloo
      Application.main
      1. netgloo.Application.main(Application.java:10)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    14. Spring Boot Loader
      MainMethodRunner.run
      1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
      1 frame
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame