File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Spliting Spring Configurations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spliting Spring Configurations" Watch "Spliting Spring Configurations" New topic
Author

Spliting Spring Configurations

Khp Virajith
Ranch Hand

Joined: May 01, 2006
Posts: 85
Hi Friends,

I'm studying Spring MVC and I'm writing a web project using Spring MVC. I split the Spring configuration into 4 files and tried to load them configuring Spring's context listener as follows..



But when I try to use it (Sending a request that ultimately being processed by a Spring controller), it gives me the following error...


org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/Spring Dispatcher Servlet-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/Spring Dispatcher Servlet-servlet.xml]


Now it is obvious that Spring framework tries to load bean definitions from the default location which is /WEB-INF/Spring Dispatcher Servlet-servlet.xml...

Can't I override this location putting the above mentioned ContextListener and context parameter....

What's wrong with my configuration???

Immediate help is appreciated...



SCJP, SCWCD, SCMAD, SCSNI
Khp Virajith
Ranch Hand

Joined: May 01, 2006
Posts: 85
I solved it myself...

Thnks...
Pradeep Arun
Greenhorn

Joined: Dec 28, 2007
Posts: 19
Can you please tell me how you resolved this?

Thanks,
Pradeep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spliting Spring Configurations
 
Similar Threads
trouble with war file
web.xml deployment problem
error-page for ViewExpiredException ignored by my jsf implementation
controller not getting call on start up
problem while loading the welcome page