NoClassDefFoundError springframework context WebApplicationContext
If you see below error:
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
Solution: You will have to add spring-web.x.x.0.jar on your class path. If you have already added it your class path please see below:
- For Maven project: Delete your local repository completely and then right click your project –> Maven –> Update project. Maven will build fresh local repository again and issue should be resolve.
- For eclipse project using lib folder: Do clean and build your eclipse project. Sometime eclipse goes out of date.