在eclipse里运行jsp文件最初迟迟没有反应,重启报了这个错误,tomcat的端口设置有问题。需要打开服务器设置一下端口号。

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

 

 点击Servers,如果没有这一项,按照Window-Show View-Other...-Server-Servers调出。然后双击服务器(Tomcat)弹出编辑窗口。

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

 

 

在Modify the server ports栏里

Tomcat admin port 如果是-,就改为8005。Ctrl+s保存。再次运行解决了。

相关文章:

  • 2021-05-25
  • 2021-04-08
  • 2021-09-13
  • 2021-12-23
  • 2021-09-29
  • 2022-02-15
猜你喜欢
  • 2022-12-23
  • 2021-06-04
  • 2021-05-04
  • 2021-11-19
  • 2021-09-23
相关资源
相似解决方案