Saurabh Bhoomkar
Saurabh Bhoomkar

Reputation: 605

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

I've installed apache-tomcat-9.0.7 on my windows machine and have following environment configurations:

echo %JAVA_HOME%

C:\Program Files\Java\ jdk-10.0.1


echo %JRE_HOME%

C:\Program Files\Java\ jre-10.0.1


OS : Windows 8 64-bit


Eclipse Version: Oxygen.3a Release (4.7.3a)


Whenever I run catlina.bat start from cmd, server runs fine on localhost But I'm not able to get the server instance up from eclipse's server configuration.

  1. Defined a new server in eclipse and added apache-tomact 9.0 instance
  2. Upon clicking on start server , I get the following error:

    -Djava.endorsed.dirs=C:\Softwares\apache-tomcat-9.0.7\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.

Error Screen

Any solution for this issue ?

Upvotes: 13

Views: 15742

Answers (4)

D.Raluca
D.Raluca

Reputation: 111

Removing -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Tomcat 9.0\endorsed" from server config worked for me also

Upvotes: 0

Nandakumar Purohit
Nandakumar Purohit

Reputation: 81

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! :)

Upvotes: 2

Alex - GlassEditor.com
Alex - GlassEditor.com

Reputation: 15497

I had to remove that argument from the launch configuration:

enter image description here

Upvotes: 10

nitind
nitind

Reputation: 20003

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.

Upvotes: 19

Related Questions