Getting error while starting Tomcat Server 9 in Eclipse though command line run is successfull

假装没事ソ 提交于 2019-12-24 23:06:37

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/59359535/getting-error-while-starting-tomcat-server-9-in-eclipse-though-command-line-run

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!