wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring - ClassPathXmlApplicationContext not able to load the XML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring - ClassPathXmlApplicationContext not able to load the XML file" Watch "Spring - ClassPathXmlApplicationContext not able to load the XML file" New topic
Author

Spring - ClassPathXmlApplicationContext not able to load the XML file

marlajee Borstone
Ranch Hand

Joined: Jun 26, 2008
Posts: 35
Hi
I am working on a web application project using Spring and hibernate framework.

I have kept all the documents at their proper location, as I beleive. Like:-
I use spring-hibernate.xml file which is placed inside WEB-INF folder and a copy I have kept into 'Build/classes/com/fmt/' folder as well so that during run time the application can find it in CLASSPATH.
Also, in web.xml file:



But when I click on submit button on home page, I get this ERROR:-


I am sure the location of spring-hibernate.xml is not proper here - and I missing to find the exact location where it needs to be placed so that java code

can find it.

Dhaansumaal
selva raja
Ranch Hand

Joined: Nov 24, 2009
Posts: 69
your class path is incorrect. Set the correct classpath in "spring-hibernate.xml" and restart the application.

Thanks,
SR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring - ClassPathXmlApplicationContext not able to load the XML file
 
Similar Threads
No Context configured to process error
To the Author!
How to delay hibernate connection from application startup in web app
Reading file from tomcat, outside servelet.
Conventions in Spring