Eclipse配置Tomcat 8.5版本出现的各种问题

时间:2024-03-23 20:47:15

在Eclipse配置Tomcat的时候,发生了好多问题

首先,我的Eclipse里面特别干净,所以在Windows->Preferences中很多东西都没有,安装了server的,又没有8.0,有了8.0,又不支持8.5,整个过程有些繁琐,所以现在结自己弄的过程,整合一下,方面以后再用吧

下列每一个插件安装后均需要重启Eclipse

1.Eclipse的Windows->Preferences中没有sever选项

找到 Help->InstallNew Software ->位置是: http://download.eclipse.org/releases/kepler (名字随意)-> Web,XML, Java EE and OSGi Enterprise Development ->JST Server AdaptersExtensions(打勾选上该项)

后面的可以一直next了

(我当初想全部安装,结果有几个是安装不了的,很耗时,后来还改了一些什么文件,最后Eclipse都打不开了)

具体如图:(在第一步OK后,等待时间会有点长,选择的东西越多,越卡)

Eclipse配置Tomcat 8.5版本出现的各种问题

Eclipse配置Tomcat 8.5版本出现的各种问题

之后就有了

转载自:https://blog.csdn.net/keebai/article/details/52752870

2.Windows->Preferences->Sever->Runtime Environment->add 没有Tomcat8.0选项

菜单栏 Help->Eclipse marketplace ->在Find搜索框中输入:Eclipse JST Server Adapters ,搜索 ,第一个install安装即可,如图:

Eclipse配置Tomcat 8.5版本出现的各种问题

转载自:https://jingyan.baidu.com/article/19020a0a09ae7e529d2842b0.html

3.菜单Help中没有Eclipse marketplace

help->install new software ->位置:http://download.eclipse.org/mpc/indigo/   (这里使用Eclipse indigo版本,根据你的Eclipse版本替换URL中的indigo字符串)->General Purpose Tools - Marketplace Client(打钩)

后面同上,next即可安装

Eclipse配置Tomcat 8.5版本出现的各种问题

转载自:https://blog.csdn.net/buptdavid/article/details/42423247

4.Windows->Preferences->Sever->Runtime Environment->add -> 选择Apache Tomcat v8.0 -> 在添加了tomcat出现 The Apache Tomcat installation at this directory is version 8.5.11.A Tomcat 8.0 installation is expected问题

1.打开tomcat安装目录:apache-tomcat-8.5.11\lib\cetalina.jar,用解压软件打开,找到org/apache/catalina/util/ServerInfo.properties

2.最下方:server.info=Apache Tomcat/8.5.11
    改为:
server.info=Apache Tomcat/8.0.8.5.11

3.重新添加即可

方案来自:https://blog.csdn.net/qq_33991989/article/details/55281503