问题如图:

The Apache Tomcat installation at this directory is version 9.0.2. A Tomcat 8.0 installation is exp

解决方法如下:

打开D:\Program Files\Java\apache-tomcat-9.0.2\lib下的catalina.jar包(用压缩工具打开)

然后按路径 org/apache/catalina/util/ServerInfo.properties

如图

The Apache Tomcat installation at this directory is version 9.0.2. A Tomcat 8.0 installation is exp

修改其中的内容,修改前如图

The Apache Tomcat installation at this directory is version 9.0.2. A Tomcat 8.0 installation is exp

修改为server.info=Apache Tomcat/8.0.0 如下所示

The Apache Tomcat installation at this directory is version 9.0.2. A Tomcat 8.0 installation is exp

至此,再重新添加就不会报错啦。点击finish完成。

The Apache Tomcat installation at this directory is version 9.0.2. A Tomcat 8.0 installation is exp

相关文章:

  • 2021-06-16
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-01-05
  • 2021-08-02
猜你喜欢
  • 2021-12-29
  • 2021-11-15
  • 2021-06-22
  • 2021-04-19
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案