Announcement Announcement Module
No announcement yet.
NoSuchBeanDefinitionException: No bean named Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?


  • #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.