问题
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