Problem: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist.
Cause: Wrong path is set in web.xml (clsspath:applicationContext.xml).
Solution: Set the correct path in web.xml.
web.xml
<servlet>
<servlet-name>helloservice</servlet-name>
<servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/spring/applicationContext.xml</param-value>
</init-param>
</servlet>
1 comment:
Thank you..It helped me..
Post a Comment