ClassNotFoundException when running a Spring + Maven2 project on Tomcat 6 from within Eclipse 3.5

后端 未结 4 696
醉梦人生
醉梦人生 2020-12-28 18:53

When trying to launch a Web project from within Eclipse I get:


SEVERE: Error configuring application listener of class org.springframework.web.context.Conte         


        
4条回答
  •  星月不相逢
    2020-12-28 19:34

    You seem to have both Eclipse IAM and M2Eclipse stuff in your .classpath. I would do some cleanup:

    • Use only one of these plugin (I suggest using M2Eclipse).
    • Delete your project from Eclipse's workspace, delete the .classpath and .project and Import the project as a Maven project again.

    Update: To get WTP support with M2Eclipse, you need to install the Maven Integration for WTP from the m2eclipse Extras update site: http://download.eclipse.org/m2e-wtp/releases/ as illustrated below:

    enter image description here

提交回复
热议问题