原因是项目的server locations配置的原因,默认是第一个,修改成第二个就行了。
如果上面没用的话:
选中项目右键 build-path -》 configure build path 然后搜索web, 选中web project setting 修改context