eclipse启动tomcat时servlet-api.jar jar not loaded

错误信息大致如下:

INFO: validateJarFile(/Users/jinx/Documents/jobs/jersey_down/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/jersey/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Oct 19, 2016 3:58:41 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start

我自己项目的原因在于lib下面的servlet-api.jar与tomcat自带的servlet-api.jar发生冲突,删除lib下的servlet-api.jar即可。

你可能感兴趣的:(exception,ide)