apache tomcat 9.x not working with eclipse & Java 10.0.1

In my Eclipse Oxygen IDE, WTP version did not update as suggested by @nitind.

I figured out a fix with some trial and error as I wanted to change JRE version for Tomcat

  1. To use Tomcat 8 with JRE 8 Eclispe --> Preferences --> Server --> Runtime Environments --> Select Tomcat 8 --> Edit --> Change default JRE to JRE 8

Also change JDK version in Compiler & Project Facets

  1. Eclispe --> Preferences --> Server --> Runtime Environments --> Select Tomcat 9 --> Edit --> Change default JRE to JRE 9

Also change JDK version to 9 in Compiler & Project Facets

Also need to remove -Djava.endorsed argument from "Runtime Configurations" in Project right click --> Run As --> Run Configurations --> Apache Tomcat

It will surely work! :)


You need an update that isn't on the main Oxygen site. Add http://download.eclipse.org/webtools/repository/oxygen/ as a URL in your Available Software Sites preference page and then check for updates from the Help menu.

https://bugs.eclipse.org/533162

Edit: this fix will be properly included in the Photon (WTP 3.10) release later this month.


I had to remove that argument from the launch configuration:

enter image description here