Results 1 to 2 of 2

Thread: NoSuchBeanDefinitionException: No bean named

Hybrid View

  1. #1

    Default 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.

  2. #2
    Join Date
    Dec 2009
    Location
    India
    Posts
    108

    Default

    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
  •