org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceLayer' defined in class path resource [ch/bedag/xyz/myapp/config/Application.class]: No matching factory method found: factory bean 'configurationClassPostProcessor'; factory method 'serviceLayer()'. Check that a method with the specified name exists and that it is non-static.

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 Spring JIRA by Adrian Moos, 1 year ago
Error creating bean with name 'serviceLayer' defined in class path resource [ch/bedag/xyz/myapp/config/Application.class]: No matching factory method found: factory bean 'configurationClassPostProcessor'; factory method 'serviceLayer()'. Check that a method with the specified name exists and that it is non-static.
via Spring JIRA by Adrian Moos, 1 year ago
Error creating bean with name 'serviceLayer' defined in class path resource [ch/bedag/xyz/myapp/config/Application.class]: No matching factory method found: factory bean 'configurationClassPostProcessor'; factory method 'serviceLayer()'. Check that a method with the specified name exists and that it is non-static.
via iteye.com by Unknown author, 1 year ago
Error creating bean with name 'webSocketHandlerMapping' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketConfiguration.class]: Instantiation of bean failed; nested exception is
via spring.io by Unknown author, 1 year ago
Error creating bean with name 'scopedTarget.connectionFactoryLocator' defined in class path resource [org/springframework/social/movies/config/SocialConfig.class]: Instantiation of bean failed; nested exception is
via Stack Overflow by user4572926
, 2 years ago
Error creating bean with name 'methodSecurityInterceptor' defined in class path resource [org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.class]: Bean instantiation via factory method failed
via Stack Overflow by Arshad Ali
, 2 years ago
Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceLayer' defined in class path resource [ch/bedag/xyz/myapp/config/Application.class]: No matching factory method found: factory bean 'configurationClassPostProcessor'; factory method 'serviceLayer()'. Check that a method with the specified name exists and that it is non-static.
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:528)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 4 days ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
288 more bugmates

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