1. 程式人生 > >The Apache Tomcat installation at this directory is version 8.5.6A Tomcat 8.0 installation is expec

The Apache Tomcat installation at this directory is version 8.5.6A Tomcat 8.0 installation is expec

1.在eclipse中安裝tomcat8.5.6時,報錯:

The Apache Tomcat installation at this directory is version 8.5.6.  A Tomcat 8.0 installation is expected.

2.根據網上的解決方案進行嘗試

網上解決辦法: (http://blog.csdn.net/u013066244/article/details/52838169)
Windows中

①在Tomcat的安裝目錄中找到lib目錄,再找到catalina.jar。使用壓縮軟體(WinRAR或是好壓)開啟它。

②依次找到並雙擊開啟org\apache\catalina\util\ServerInfo.properties 檔案

server.info=Apache Tomcat/8.5.6
server.number=8.5.6.0
server.built=Oct 6 2016 20:15:31 UTC

改為:

#Apache Tomcat/8.5.6
server.info=Apache Tomcat/8.0.0
#8.5.6.0
server.number=8.0.0
server.built=Oct 6 2016 20:15:31 UTC


3.出現以下問題:
Unknown version of Tomcat was specified.

4.最終結局方法,將tomcat 的版本從8 替換成 7,問題解決:
Specify the installation directory