Friday, 4 November 2011

java.lang.ClassNotFoundException: org.springframework.web.*

SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener
java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener

Solution 1:
delete server (tested with Tomcat) and recreate it+deploy the project
Solution 2:
Make sure that in Eclipse the Maven Dependencies are included in the output war (right clich the project and go to Deployment Assembly/Add/Maven Dependencies )
The classes org.springframework.web.* are included in spring-web-#.#.#.jar (for me spring-web-3.0.5.RELASE.jar) but I already had this jar

1 comment:

  1. I never really comment on posts much but, you just saved my ass man. Thank you so much.