eclipse配置tomcat8.5

在eclipse中,当使用tomcat版本为8.5时(一个神奇的版本),没法与eclipse绑定,选择8.0或9.0版本都会提示:apache

 

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

 

以下图:app

 

2种解决办法eclipse

1. 人肉修改tomcat的版本号this

 

[plain] view plain copyspa

 在CODE上查看代码片派生到个人代码片

  1. 1.使用WinRar, WinZip, 7zip打开文件./lib/catalina.jar (注意不要解压)  
  2. 2.打开文件org/apache/catalina/util/ServerInfo.properties  
  3. 3.修改文件第16行版本号为 8.0.0  
  4. 4.保存,将文件更新到原jar包中便可  

 

成功绑定:.net

 

2.打补丁:code

https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=editserver

Download this patch and put it to the plugins directory of your Eclipse installation. It will replace the default "org.eclipse.jst.server.tomcat.core_1.1.800.v201602282129.jar".blog

 

详细可参考:《How to use Tomcat 8.5.x and TomEE 7.x with Eclipse?

相关文章
相关标签/搜索