Piyush Mangal wrote:Well, put your context.xml in WEB-INF/classes and use classpath:context.xml in your bean definition.
Mark Spritzler wrote:
Piyush Mangal wrote:Well, put your context.xml in WEB-INF/classes and use classpath:context.xml in your bean definition.
You can keep the file in the WEB-INF directory. Just use the prefix "http:" in where you load it.
so if it was in creation of ApplicationContext, you would have new ClassPathXmlApplicationContext("http:WEB-INF/context.xml")
as an example
Mark
i have Mainservlet file in default package..
also mapped it in web.xml file and added <bean id="main" class="MainServlet"></bean> in beans.xml
Then why i get the above exception???
Men call me Jim. Women look past me to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|