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

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

linux may expec clas tar rect tomcat8 壓縮 com

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

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

2.解決辦法:
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

在Linux中改法:

cd [tomcat or tomee home(tomcat目錄)]/lib mkdir catalina cd catalina/ unzip ../catalina.jar vim org/apache/catalina/util/ServerInfo.properties `把版本號改成如下形式:` server.info=Apache Tomcat/8.0.0 server.number=8.0.0 server.built=May 11 2016 21:49:07 UTC 接著把改好的ServerInfo.properties文件添加到catalina.jar中: jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties cd .. rm -rf catalina

參考地址:

http://stackoverflow.com/a/37614406/6952713

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