0

enter image description hereI recently installed Apache Tomcat and am able to start Tomcat Server from command line but while starting from Eclipse I get these errors:

Server Tomcat v9.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.

Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. -Djava.endorsed.dirs=/Library/Tomcat/endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.

I have java 10 and jdk jdk-10.0.1, Eclipse Java EE IDE for Web Developers.

Version: Oxygen.3a Release (4.7.3a)

I tried everything from these posts:

Eclipse "Server Locations" section disabled and need to change to use Tomcat installation

I could not find .snap file from this directory

.metadata.plugins\org.eclipse.core.resources to delete it

There is no temp file in this directory

.metadata.plugins\org.eclipse.wst.server.core it just has 2 temp folders

https://crunchify.com/ideal-eclipse-ini-file-setup-for-your-eclipse-environment-best-practice-for-macos-and-windows/

I also updated Eclipse Oxygen by launching link https://download.eclipse.org/webtools/repository/oxygen/ in Help to no avail.

Attaching some screens

I am held up testing my code so immediate help is appreciated.

Thanks!

enter image description here

enter image description here

enter image description here

Mona
  • 7
  • 5

1 Answers1

0

This bug has already been fixed in Photon and newer: https://bugs.eclipse.org/533162

I'd also suggest a supported release of Java, like 11, instead of 10.

nitind
  • 19,089
  • 4
  • 34
  • 43
  • OK, so does this mean I upgrade to Photon and install java 11 and change the JRE System Library for all my projects? AND change the JDK HOME params in Path too? – Mona Dec 16 '19 at 16:39
  • At the least, just update to a newer release of Eclipse. The rest you can do on your own schedule--Java 10 will work, it's just not a supported release by Oracle any more. – nitind Dec 16 '19 at 16:40
  • Hi, I installed Photon release software and now when Eclipse launches it still shows Oxygen. Also when I run Tomcat server Eclipse crashes. Here is crash report: Cant add it here its long. Waiting for an answer.... – Mona Dec 17 '19 at 16:59
  • Then I'm not sure Photon was installed properly. You could try the *current* release, which today is 2019-09. – nitind Dec 17 '19 at 18:13
  • Situation is same. I installed 2019-09 and same error – Mona Dec 18 '19 at 17:09
  • Situation is same. I installed 2019-09 and same error. Added few images to main thread – Mona Dec 18 '19 at 17:15
  • You might have to remove the instance you have and define a new one. – nitind Dec 18 '19 at 17:16
  • I removed old instances and added new Tomcat server instance and still get the same error. Could someone help? – Mona Dec 19 '19 at 05:50
  • Also I have /usr/local/apache-tomcat-9.0.30 as my Tomcat installation directory. Should it be /Library/Tomcat instead? BTW I tried both with same result – Mona Dec 19 '19 at 05:54
  • If shouldn't matter as long as you have the same layout as their downloadable zip files. – nitind Dec 19 '19 at 05:55
  • Can you remove the runtime from the preferences as well as the servers view? – nitind Dec 19 '19 at 05:58
  • Did that as well to no avail – Mona Dec 19 '19 at 05:59
  • No longer an issue in Java 13. Hence closing – Mona Apr 24 '20 at 16:34