简体   繁体   中英

Can't start tomcatv9.0 in Eclipse

Server Overview I 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"

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

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.

Eclipse 中的 TomCat 概述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM