This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Unable to fine a bean definition in a separated file

Apr 3rd, 2005, 08:16 PM

Hi,

I don't know whether I can get any help from this forum or not. Here is my problem. I have a bean referred in my servelt.xml file, but is definited in the "applicationContext.xml" file. In my web.xml file, I have the following:

2. I've always been under the impression that the context loader servlet load each context XML file in the order they are specified. In my example, you can see that I want my DAOs instanciated first, then my Mail objects, then my Service objects that depend on both the DAOs and Mail objects. My point being that maybe you should list your Hibernate XML file first. Maybe someone else can comment if that ordering is indeed important.

Keller

Comment

The outcome is the same after I change the order of the two xml files in my web.xml. I am not sure about the period sign. The jpetstore sample in the spring distribution has a blank space to separate two parameter values of configuration files.