简体   繁体   English

Eclipse Tomcat 服务器无法启动

[英]Eclipse Tomcat server does not start

Situation : I installed JRE 8, and configured Tomcat 8.5 on my Eclipse Neon.3 Release (4.6.3).情况:我安装了 JRE 8,并在我的 Eclipse Neon.3 Release (4.6.3) 上配置了 Tomcat 8.5。

Problem : I added a project and the server console shows server start-up in 41935 ms.问题:我添加了一个项目,服务器控制台显示服务器启动时间为 41935 毫秒。 But the background process keeps showing "Starting...." This is shown in the ScreenShot below.但是后台进程一直显示“正在启动....”这显示在下面的屏幕截图中。

Later, the server stops because it times out.后来,服务器因为超时而停止。 Please help me resolve this.请帮我解决这个问题。

在此处输入图片说明

I don't know how this worked, but merely restarting the PC and cleaning Eclipse's Tomcat server solved this issue.我不知道这是如何工作的,但只需重新启动 PC 并清理 Eclipse 的 Tomcat 服务器即可解决此问题。

Also, if at any point of time there is a Security alert asking permission to allow Java to access Public or Private networks, check all the boxes.此外,如果在任何时候有一个安全警报要求允许 Java 访问公共或专用网络,请选中所有框。

This can happen if already an instance of Tomcat server is running on the port(default is 8080).如果 Tomcat 服务器的实例已经在端口上运行(默认为 8080),就会发生这种情况。 Kindly run below command in command prompt请在命令提示符下运行以下命令

netstat -ano

to list down the list of process and the port they acquire that are running currently and see if there a process running on the Port that your tomcat server is trying to acquire.列出当前正在运行的进程列表和他们获取的端口,并查看您的 tomcat 服务器试图获取的端口上是否有进程正在运行。

If yes, kill it and run the server again如果是,杀死它并再次运行服务器

Tomcat 7(Liferay服务器)也有同样的问题,好像是eclipse的兼容性问题,只好换低版本的eclipse。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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