Tuesday, May 27, 2014

weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

Eclipse Maven and Weblogic:
As I tried to deploy my web app into a remote Weblogic server, I got this kind of error:
weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

My app just ran fine the other day and I just made one single change on a file related to spring bean. And this error made me think that the root cause of the problem was the change I had just made. However, it turned out that the Maven dependencies were not included in the project class path. This is an Eclipse defect, I guess! Sometime it does include, other time it doesn't

Solution: to fix it error:  Right click on the project > Properties > Deployment Assembly > Add > Java Build Path Entries > Maven Dependencies

2 comments:

  1. Add Maven Dependency in build path you can follow this article also
    http://www.javaproficiency.com/2015/11/javalangclassnotfoundexception.html

    ReplyDelete
  2. You can solve this issue by adding maven dependency in build path visit Solution Here

    ReplyDelete