向ecplise中导入javaweb项目运行时出现“The selection cannot be run on any server”

两个解决方法

方法一:

右击你的项目—>Build Path–>Configure Build Path–>向ecplise中导入javaweb项目运行时出现“The selection cannot be run on any server”
查看你的tomcat版本,jre是否一致,否则remove

向ecplise中导入javaweb项目运行时出现“The selection cannot be run on any server”
remove后再点击Add Library,依次选择如图所示,最后点Apply and Close

方法二:

右击项目–>properties–>向ecplise中导入javaweb项目运行时出现“The selection cannot be run on any server”
选择与你匹配的tomcat版本