解决方案:只要导入自己tomcat的library即可 步骤:选中出错的项目右击–>BuildPath–>Add Libraries–>Service RunTime–>点击next–>选择你的server–>Finish