eclipse tomcat启动失败个人解决方法

通过svn检出的项目由于已有.project文件,在检出时只能作为工作空间中的项目检出,导致在添加到Tomcat后报错启动失败报错信息未保留

在网上长时间查找资料后,终于解决,方案如下:

首先新建一个空服务器,双击会发现我们的Server Locations默认选中第一项

Use workspace metadata (dose not modify Tomcat installation)我们选中第二项

Use Tomcat installation (takes control of Tomcat installation)并更改Deploy path

接着发现

在右键工程->properties->Web project Settings 时,发现其Context root为空,且报出Context root cannot be empty 错误

但是当我们手动无论输入什么都会报错并不保存输入内容这时候我们需要找到你的项目所在的目录找到.settings->org.eclipse.wst.common.component

发现内容为下图2接着我们改为图3这时候我们重启eclipse发现Web project Settings内容已有,在将项目添加到服务器并启动ok大功告成

eclipse tomcat启动失败个人解决方法eclipse tomcat启动失败个人解决方法

eclipse tomcat启动失败个人解决方法

参考有:https://blog.****.net/moshenglv/article/details/52651473

https://blog.****.net/u011726984/article/details/41558561