项目是拷同事的,在同事那启动正常,到了我这启动就报了classnotfound

我们对比了一下,都是tomcat6的,jdk也都是1.6,我就会报各种ClassNotFound

 信息: validateJarFile(E:\apache-tomcat-6.0.36\webapps\SSO\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2015-9-16 17:54:11 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class net.bull.javamelody.SessionListener
java.lang.ClassNotFoundException: net.bull.javamelody.SessionListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
 Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
  Error configuring application listener of class cn.com.asideal.sso.web.FlushMemcached
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext

还有很多其他的ClassNotFound

缺jar,手动加一下jar包就好了

你同事放jar包的路径跟你放jar包的路径不一样,,所以找不到了,,

spring 的context包没有。

你把jar包都拷到lib目录下试试

org.springframework.web.context.ContextLoaderListener

应该是jar缺少,你要重新引入一下

具体问题不知道,项目是完全一样的,WEB-INF下的lib里的jar包都一样也都Build Path了,不知道为什么还是会报ClassNotFound,
最后是我把我的myeclipse换成了他的,就好了,不知道我两个的myeclipse有什么设置上的不同,版本也不一样,我的是2014 他的是8.6