org.springframework.web.context.ContextLoaderListener
Error: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
The Spring projects has many modules.
- Spring Web MVC (spring-webmvc.jar)
- Spring Aop (spring-aop.jar)
- Spring Beans (spring-beans.jar)
- Spring Context (spring-context.jar)
- Spring Core (spring-core.jar)
- Spring Dao (spring-dao.jar)
- Spring Hibernate (spring-hibernate3.jar)
- Spring Ibatis (spring-ibatis.jar)
- Spring Jca (spring-jca.jar)
- Spring Jdbc (spring-jdbc.jar)
- Spring Jdo (spring-jdo.jar)
- Spring Jms (spring-jms.jar)
- Spring Jms (spring-jpa.jar)
- Spring Jmx (spring-jmx.jar)
- Spring Portlet (spring-portlet.jar)
- Spring Remoting (spring-remoting.jar)
- Spring Struts (spring-struts.jar)
- Spring Support (spring-support.jar)
- Spring Toplink (spring-toplink.jar)
- Spring Web (spring-web.jar)
- Spring Aspects (spring-aspects.jar)
Solution: My project was missing Spring-web.jar Two ways to fix this.
1. Add Spring-web.jar to the WEB-INF/lib dir
2. Add a dependency tag to the pom.xml file (preferred). At this time I am using Spring 2.5.4
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>2.5.4</version> </dependency>
2 Comments »
Leave a comment
-
Archives
- November 2009 (1)
- July 2009 (1)
- June 2009 (5)
- May 2009 (2)
- April 2009 (4)
- March 2009 (2)
- January 2009 (3)
- December 2008 (1)
- November 2008 (2)
- October 2008 (1)
- September 2008 (3)
- August 2008 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS
Hello, it continuous with same error. I added spring-web.jar in WEF-INF/lib of my proyect, and it didn’t go. And then, I added
org.springframework
spring-web
2.5.0
in pom.xml, but it didn’t go. Can you help me? Thank, regards
Elena
What is the error? What IDE are you using? Make sure do a clean build. Close IDE and restart, clear cache etc.
- Hobi