-
Dec 12th, 2012, 06:51 AM
#1
NoSuchBeanDefinitionException: No bean named
Hello Folks!
I have two standalone applications based on Spring, each one of them has a application context. I have two jar packets building with maven-shade-plugin. This app's are used on a web application like external libraries. My problem is that if I include the two jar applications with different application context, the beans of the first application thrown the error "NoSuchBeanDefinitionException: No bean named" when the global app does reference at it.
How can I fixed this error?
Thanks.
-
Dec 15th, 2012, 12:36 PM
#2
The issue has to be in your shading configuration. You have to ensure the classname(s) and path(s) should not be affected by your shading config otherwise you have to shade the resources looked up during context creation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules