facebook

Spring – multiple applicationContext files

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #240247 Reply

    sequencetech
    Member

    I use multiple context files for Spring and MyEclipse does not seem to find beans that are defined in other xml Spring files.
    I always have this kind of warnings :
    “Referenced bean ‘dataSource’ not found: applicationContext-hibernate.xml”

    But bean “dataSource” is defined in an other applicationContext file.

    I have no problems when I run the code, but I have a lot of warnings with MyEclipse Spring module…

    #240345 Reply

    Riyad Kalla
    Member

    If you open up your project properties and go to MyEclipse-Spring, you should be able to add all your Spring context files there.

    #240380 Reply

    sequencetech
    Member

    Ok thanks…
    I had added them to the project in the “Config files” tab but not in “Config Sets” tab.
    It works now when I create a config set for the project.

    By the way, what is the checkbox “Is incomplete” in the “Config Set” dialog ?

    #240405 Reply

    Riyad Kalla
    Member

    One of our Spring guys had this to say about Is incomplete:

    A logical Spring Bean Configuration can be partitioned across multiple XML
    config files, i.e., a ConfigSet. A configSet is treated as a single model by
    operations such as validation. Otherwise each config file is validated in
    isolation of all other config files. The “is incomplete” identifies that the
    config set contains bean references that are not defined with in any config
    file in the set. Setting this flag instructs the bean-validator to ignore
    these conditions and refrain from adding a error marker on the file.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Spring – multiple applicationContext files

You must be logged in to post in the forum log in