Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Endorsed Directories Not Supported. Tomcat 9 Java 11(Tomcat will not start via Eclipse due to endorsed directories error)
Endorsed Directories Not Supported. Tomcat 9 Java 11 [message #1800218] Fri, 21 December 2018 13:30 Go to next message
E Z is currently offline E ZFriend
Messages: 8
Registered: July 2009
Junior Member
I just upgraded my dev environment and am receiving the following error when Tomcat 9 tries to start.

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


I've done some research and it appears installing Eclipse's WTP 3.9.4 is supposed to fix it for Oxygen.

Even though I'm running a later version of eclipse, I installed Eclipse WTP 3.9.4 and still have the problem. I also tried the pre-configured site for WTP in Eclipse 4.9.0 without luck.

Tomcat 9 starts fine from the command line with a "catalina run" but not via Eclipse.

I can confirm this bug still exists in Eclipse 2018-09 (4.9.0) with Java 11.0.1 and Tomcat 9.0.14.

Any ideas?
Re: Endorsed Directories Not Supported. Tomcat 9 Java 11 [message #1800222 is a reply to message #1800218] Fri, 21 December 2018 14:08 Go to previous messageGo to next message
E Z is currently offline E ZFriend
Messages: 8
Registered: July 2009
Junior Member
Solved.

I had to remove the -Djava.endorsed.dirs=C:\Dev\apache-tomcat-9.0.14\endorsed option from the Debug configuration for the server in Eclipse. After removing that the server started fine.

[Updated on: Fri, 21 December 2018 14:09]

Report message to a moderator

Re: Endorsed Directories Not Supported. Tomcat 9 Java 11 [message #1829212 is a reply to message #1800222] Sun, 28 June 2020 09:37 Go to previous messageGo to next message
Ruchira Vaykole is currently offline Ruchira VaykoleFriend
Messages: 1
Registered: June 2020
Junior Member
how to remove -Djava.endorsed.dirs=C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.0\endorsed option from the Debug configuration for the server in Eclipse?
Re: Endorsed Directories Not Supported. Tomcat 9 Java 11 [message #1836267 is a reply to message #1829212] Sun, 27 December 2020 16:06 Go to previous message
Kalpalathika Ramanujam is currently offline Kalpalathika RamanujamFriend
Messages: 1
Registered: December 2020
Junior Member
Right click on your .jsp file, Go to Run As> Run Configurations then select "Tomcat Server at localhost" under Apache Tomcat then go the Arguments tab on the right then in the VM arguments box remove the line "-Djava.endorsed.dirs=C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.0\endorsed " and then click on Run. It worked for me.
Previous Topic:Default Eclipse Java - where is it installed?
Next Topic:Help Tab - Do Not Follow
Goto Forum:
  


Current Time: Thu Apr 25 14:06:35 GMT 2024

Powered by FUDForum. Page generated in 0.03048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top