How to use Tomcat 8.5.x and TomEE 7.x with Eclipse?

I need to configure the Tomcat 8.5.x server version in Eclipse. When I try to create a server using the Eclipse GUI, I get in Eclipse Luna a choice of the latest version of "Apache Tomcat v8.0". When I select it, and I go to my Tomcat 8.5.x server, I get a blocking error message:

Installing Apache Tomcat in this directory is version 8.5.0. Installation of Tomcat 8.0 is supposed.

The same error occurs when you try TomEE 7.x, which is based on Tomcat 8.5.

In Eclipse Neon, the latest version of choice is "Apache Tomcat v9.0" and it gives the same error. There is not even an Apache Tomcat v8.5 option.

Is there a way to use Tomcat 8.5 and TomEE 7.x in Eclipse? How?

+89
eclipse tomcat tomee tomee-7
May 4 '16 at 10:19
source share
9 answers

You have to fix catalina.jar as this is the version number that the WTP adapter is looking at. This is a completely useless test, and the adapter should allow you to start the server anyway, but not yet.

For many years and with every version of Tomcat, this is always a problem.

To fix, you can do the following:

  • cd [tomcat or tomee home]/lib
  • mkdir catalina
  • cd catalina/
  • unzip ../catalina.jar
  • vim org/apache/catalina/util/ServerInfo.properties

Make sure it looks like this (version numbers should all start with 8.0):

 server.info=Apache Tomcat/8.0.0 server.number=8.0.0 server.built=May 11 2016 21:49:07 UTC 

Then:

  • jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties
  • cd ..
  • rm -rf catalina
+125
Jun 03 '16 at 12:27
source share

There is a patch for Eclipse:
https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=edit

Download this patch and place it in the plugin directory of your Eclipse installation. It will replace the default value of "org.eclipse.jst.server.tomcat.core_1.1.800.v201602282129.jar".

Note
After adding this patch, you should select " Apache Tomcat v9.0 " when adding the server runtime to Eclipse (Preferences> Server> Temporary environments).
That is, this patch allows you to select Tomcat version 9.x or Tomcat version 8.5.x when adding the Apache Tomcat v.9.0 runtime.




More information can be found on the corresponding error report page: https://bugs.eclipse.org/bugs/show_bug.cgi?id=494936

+41
Jun 29 '16 at 12:20
source share

For Tomcat 8.5.x Users

You must modify the ServerInfo.properties file of the Tomcat file /lib/catalina.jar .

ServerInfo.properties file contains the following code

 server.info=Apache Tomcat/8.5.4 server.number=8.5.4.0 server.built=Jul 6 2016 08:43:30 UTC 

Just open the ServerInfo.properties file by opening catalina.jar with winrar from the Tomcat lib folder

ServerInfo.properties file location in catalina.jar is /org/apache/catalina/util/ServerInfo.properties

Please note: shutdown Tomcat server (if it is already opened using cmd) before doing this, otherwise your file will not change and your winrar will show an error.

Then change the following code in ServerInfo.properties

 server.info=Apache Tomcat/8.0.8.5.4 server.number=8.5.4.0 server.built=Jul 6 2016 08:43:30 UTC 

Restart eclipse (if open). Now it will work ...

ScreenShot of eclipse

+36
Aug 01 '16 at 6:59
source share

The release of the Eclipse Neon service is still available . Therefore, if someone is still having this problem, just go to

Help β†’ Check for Updates

and install updated updates.

+9
Oct 08 '16 at 15:50
source share

This workaround worked for me. I edited the serverInfo.properties file as shown below:

 server.info=Apache Tomcat/8.0.0 server.number=8.0.0.0 server.built=Oct 6 2016 20:15:31 UTC 
+3
Nov 09 '16 at 17:39
source share

Install the latest version of eclipse (). He will have the opportunity to add Tomcat 8.5.

+2
Nov 29 '17 at 9:53 on
source share

Go to the preliminary version of tomcat, for example: tomcat 8.3 and copy the catalina.jar file and paste it into the existing tomcat that you are facing the problem

+1
Oct 30 '17 at 7:09
source share

I had similar problems with Eclipse Kepler v3.8. I had tomcat v8.5.37 installed. I could not see Apache v8.5 as an option. Looking through StackOverflow, I found that Apache v9.0 is available on Eclipse Neon. Cool, you don’t need to change the version of the eclipse. In your current eclipse. Download WTP (Web Toolkit) by following these steps:

Step 1: Help >>> Install the new software. Copy this link in the Work with section: http://download.eclipse.org/webtools/repository/neon

Step 2: Select the JST server adapters and the JST server adapter extensions from the first package you saw. Install those.

Step 3: Windows >>> Settings >>> Server >>> Runtimes >>> Add ..

You will see Apache v9.0 there! It is working!

+1
Apr 11 '19 at 12:40
source share

Sorry for causing the old problem. But this is how legendary is always for new users. The reason I'm here is because I want to find another answer. Rather simple. Please windows-> preference-> Runtime Environment-> search and select the folder where you are loading the server. It will automatically detect the server and you are ready to go.

0
Jul 27 '19 at 19:32
source share



All Articles