eclipse添加Tomcat服务报错The Apache Tomcat installation at this directory is version 8.5.39.A Tomcat 7.0

时间:2024-03-14 08:54:36

问题描述

eclipse添加tomcat服务,报错The Apache Tomcat installation at this directory is version 8.5.39. A Tomcat 7.0 installation is expected.

eclipse添加Tomcat服务报错The Apache Tomcat installation at this directory is version 8.5.39.A Tomcat 7.0
原因

ellipse限制Tomcat的最高版本是8.0的。

解决方法

找到本地Tomcat安装路径->找到lib下的Catalina.jar,并用解压软件打开这个jar包->双击找到catalina.jar\org\apache\catalina\util\ServerInfo.properties并按下图修改
将文件中server.info=Apache Tomcat/8.5.39改成server.info=Apache Tomcat/8.0.0

eclipse添加Tomcat服务报错The Apache Tomcat installation at this directory is version 8.5.39.A Tomcat 7.0
保存重新添加Tomcat,成功!!!

eclipse添加Tomcat服务报错The Apache Tomcat installation at this directory is version 8.5.39.A Tomcat 7.0