解决eclipse 4.5.1 添加server无法选择tomacat 8 问题

1:问题描述:

  当我们在eclipse新建一个web工程,想用tomacat 8 来发布一下web工程,但是此时我们新建一个server ,只能选择tomacat 7以下。

  网上好多说下载一个插件Eclipse JST Server Adapters,但是我的下载之后安装了没起效果。

  此时见到一个博客说要删除工作区间的两个插件,试了以下,果然可以。

2解决方法:

  先关闭eclipse, 找到eclipse的工作区间,\.metadata\.plugins\org.eclipse.core.runtime\.settings 然后删除org.eclipse.wst.server.core.prefs 和org.eclipse.jst.server.tomcat.core.prefs这两个文件,然后重启eclipse,我们此时再试一次,发现可以了。

    如果还是不行,可能是tomacat出问题,首先我们进入tomacat webapps 目录下,删除自己在该目录下加的项目,之后我们进入tomacat 的bin目录,启动tomacat 如果tomcat 启动失败,那就是你安装的tomacat有问题,再重新装一个tomacat8就可以了。

如果你的问题得到解决,请为博主点赞,谢谢!

猜你喜欢

转载自blog.csdn.net/huxiaochao_6053/article/details/81987255