Results 1 to 3 of 3

Thread: Context works find but Spring IDE eclipse plugin says "bean not found"

  1. #1
    Join Date
    Dec 2004
    Posts
    3

    Default Context works find but Spring IDE eclipse plugin says "bean not found"

    Hi,

    I have an (admittedly cosmetic) issue with the Spring IDE plugins for Eclipse that I've not been able to solve. I have a situation in which context files A and B are both imported by context C. B makes use of several beans defined in A, but since they're never used independently (only by C), this isn't a problem.

    However, the Spring IDE plugin validator marks all of the references to beans in A in context file B as errors, saying something like "Referenced bean 'foo' not found bar.xml". Obviously this is a correct statement, but in my use case it's not an error.

    Is there any way to tell the plugin this, or restructure my XML so that I don't get those errors? This particular issue causes about 50 Spring problems to appear in the problems view, which makes it very difficult to notice when there is a Spring problem that I actually have to solve.

    I'm using version 2.2.4.RELEASE of the plugins.

    Regards,
    Maarten

  2. #2
    Join Date
    Jul 2009
    Location
    Canada
    Posts
    1

  3. #3
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Maarten,

    there are two ways of solving this issue:

    1. Only configure context C with Spring IDE and let the other files (A. B) handled by the import support. Doing so will not create the warning. Make sure that you don't add A and B as config files to Spring IDE as they would also be validated stand-alone which causes the validation error you are seeing.

    2. Configure a Config Set for A, B, and C and don't enable Import processing for the project.

    HTH

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •