Thursday, August 16, 2012

ClassNotFoundException when Maven2 project on Tomcat 6 from with Eclipse

Start Dynamic web project with M2Eclipse, Maven2, Eclipse.

SEVERE: Servlet /CommunityWebServer threw load() exception
java.lang.ClassNotFoundException: com.cnx.community.servlet.HttpTransportServices
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1671)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)



Solution:
1. Delete the project from workspace.
2. Delete .project and .classpath from project folder
3. Make sure Maven Integeration for WTP (optional) is install, else install it from 
      http://m2eclipse.sonatype.org/sites/m2e-extras

4. Import the project again as Maven project.


End.

No comments:

Post a Comment