org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groupSectionAPIController' defined in file [/home/akshay/modulemyapp/target/BASE_MODULE/WEB-INF/classes/com/myapp/spring/ApiController/GroupSectionAPIController.class]: Post-processing failed of bean type [class com.myapp.spring.ApiController.GroupSectionAPIController] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.myapp.spring.ApiController.GroupSectionAPIController] for persistence metadata: could not find class that it depends on

Stack Overflow | We are Borg | 5 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. 0

    Spring-MVC : Adding a local Spring-MVC project as a dependency

    Stack Overflow | 5 months ago | We are Borg
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groupSectionAPIController' defined in file [/home/akshay/modulemyapp/target/BASE_MODULE/WEB-INF/classes/com/myapp/spring/ApiController/GroupSectionAPIController.class]: Post-processing failed of bean type [class com.myapp.spring.ApiController.GroupSectionAPIController] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.myapp.spring.ApiController.GroupSectionAPIController] for persistence metadata: could not find class that it depends on
  2. 0

    I'm trying to create some linked layers in my JEE web app

    Stack Overflow | 5 months ago | user3449772
    java.lang.NoClassDefFoundError: Lcom/smoney/Interfaces/IEmailService;
  3. 0

    Compile project spring 4

    Stack Overflow | 2 years ago
    java.lang.NoClassDefFoundError: org/springframework/web/context/request/async/CallableProcessingInterceptor
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 25#154178876

    GitHub | 1 year ago | mattnworb
    java.lang.NoClassDefFoundError: Lorg/apache/maven/artifact/transform/ArtifactTransformationManager;
  6. 0

    ClassNotFoundException: org.springframework.web.context.support.XmlWebApplicationContext

    Stack Overflow | 11 months ago | Sameed Tariq
    java.lang.NoClassDefFoundError: Lorg/springframework/web/context/support/XmlWebApplicationContext;
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.NoClassDefFoundError

    Lcom/myapp/notification/service/NotificationService;

    at java.lang.Class.getDeclaredFields0()
  2. Java RT
    Class.getDeclaredFields
    1. java.lang.Class.getDeclaredFields0(Native Method)[na:1.8.0_101]
    2. java.lang.Class.privateGetDeclaredFields(Class.java:2583)[na:1.8.0_101]
    3. java.lang.Class.getDeclaredFields(Class.java:1916)[na:1.8.0_101]
    3 frames
  3. Spring ORM
    PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition
    1. org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.buildPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:411)[spring-orm-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:392)[spring-orm-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    3. org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:396)[spring-orm-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    4. org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:333)[spring-orm-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    4 frames
  4. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:931)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:936)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    9 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2 frames
  6. Spring MVC
    HttpServletBean.init
    1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    6 frames
  7. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:158)[servlet-api.jar:3.0.FR]
    1 frame