Tuesday, January 7, 2014

java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]



Spring Configuration Problem

Below Configuration i have done in web.xml file.  I got exception while starting server. I posted exception following :



      dispatcher
      org.springframework.web.servlet.DispatcherServlet
      1
 

 
      dispatcher
      *.htm
 

 
 
      contextConfigLocation
          /WEB-INF/spring-beans.xml     
 


Exception :

Jan 08, 2014 7:38:06 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet dispatcher
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]


Solution :

Then i added below in web.xml file. Its worked fine.

 
       
        org.springframework.web.context.ContextLoaderListener
       

 
 

No comments:

Post a Comment