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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by We are Borg
, 1 year ago
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
via Stack Overflow by Trevor Shibley
, 1 year ago
] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.company.controller.AuditLogController] for resource metadata: could not find class that it depends on
via blogspot.com by Unknown author, 2 years ago
Error creating bean with name 'neo4jConfig' defined in file [/home/mateusz-b/workspace/nutrilizer/target/classes/com/nutrilizer/configuration/Neo4jConfig.class]: Post-processing failed of bean type [class com.nutrilizer.configuration.Neo4jConfig
via Stack Overflow by bryla33
, 1 year ago
Error creating bean with name 'neo4jConfig' defined in file [/home/mateusz-b/workspace/nutrilizer/target/classes/com/nutrilizer/configuration/Neo4jConfig.class]: Post-processing failed of bean type [class com.nutrilizer.configuration.Neo4jConfig
via Stack Overflow by Eugen Geno Begic
, 1 year ago
\CrunchifyFileUploadController.class]: Post-processing failed of bean type [class com.crunchify.controller.CrunchifyFileUploadController] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [com.crunchify.controller.CrunchifyFileUploadController] for resource metadata: could not find class that it depends on
via GitHub by debabratp
, 1 year ago
org.springframework.boot.web.client.RestTemplateBuilder] failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [org.springframework.boot.web.client.RestTemplateBuilder] for resource metadata: could not find class that it depends on
java.lang.NoClassDefFoundError: Lcom/myapp/notification/service/NotificationService;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.buildPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:411)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:392)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:396)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:931)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:936)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)

Users with the same issue

Once, 7 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.