Problem : java.lang.ClassNotFoundException : org.Springframework.Web.Context.ContextLoaderListener
Cause : This error comes when you are using Spring MVC framework in your Java Web application and configured org.springframework.web.context.ContextLoaderListener as a listener in your deployment descriptor also known as web.xml, but the JAR which contains this class is not available in web application's CLASSPATH. This is a very important class in Spring MVC framework, as it is used to load your spring configuration files e.g. applicatoin-Context.xml and others, defined in the context-param element of web.xml of your Java spring web application, as shown below :
Read more »
Cause : This error comes when you are using Spring MVC framework in your Java Web application and configured org.springframework.web.context.ContextLoaderListener as a listener in your deployment descriptor also known as web.xml, but the JAR which contains this class is not available in web application's CLASSPATH. This is a very important class in Spring MVC framework, as it is used to load your spring configuration files e.g. applicatoin-Context.xml and others, defined in the context-param element of web.xml of your Java spring web application, as shown below :
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:application-Context.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
No comments:
Post a Comment