This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Why is it that if i declare a configuration file (my-spring.xml) as shown below the application does not load it.
If i declare it in the MessageDispatcherServlet then it finds it.
Is the first one not the root context? I thought when i declare the config file in the root context then it is available throughout the application but in the above case it seems to be the other way round.
I took your web.xml as is and it works fine for me. I defined a couple things in my-spring.xml and everything was picked up fine, I just had empty files for the other contexts you have defined. What is making you say it is not being picked up? Is there an exception in your log?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Spring configuration file not loaded via the application context but does for the servlet context.