Can't start tomcatv9.0 in Eclipse

不问归期 提交于 2021-02-19 05:47:05

问题


Server OverviewI am getting an error while trying to start tomcat from eclipse. The error message shows.

The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.

what I have done is installed tomcat v9.0 and eclipse oxygen and connected tomcat with eclipse.

Windows 7 - 32 bit
Eclipse Oxygen
Tomcat v9.0

Please help me!

The error message is...

error message

I followed an udemy course "Spring & Hibernate for Beginners"


回答1:


The admin port is set to '-' which is not correct. Set it e.g. to 8005 or some other free port.




回答2:


Helo, probably you not configured TomCat admin port yet. It's easy:

In Eclipse TomCat overview configuration, just assign a number to a TomCat admin port. The number can be 8085.

After that, if you get the error "Port 8080 required by Tomcat v9.0 Server at localhost is already in use" signify that you has two Tomcat instances and both your installed and launched instance can not both listen on the same port at the same time. You'll have to change one of them or in windows you can stop the Tomcat running service in command line:

net stop Tomcat9


来源:https://stackoverflow.com/questions/59471438/cant-start-tomcatv9-0-in-eclipse

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