[英]running tomcat 5.5 server in Eclipse Helios
i have build jsp page that i want to run on tomcat server in eclipse 我已经建立了要在Eclipse中的Tomcat服务器上运行的jsp页面
whenever,i try to do this,i get the following error: 每当我尝试执行此操作时,都会出现以下错误:
Several ports (8080, 8009) required by Tomcat v5.5 Server at localhost are already in use.
Tomcat v5.5服务器在本地主机所需的几个端口(8080、8009)已在使用中。 The server may already be running in another process, or a system process may be using the port.
服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。 To start this server you will need to stop the other process or change the port number(s).
要启动此服务器,您将需要停止其他进程或更改端口号。
the address:http://localhost:8080/ opens just fine in the browser . 地址:http:// localhost:8080 /在浏览器中可以正常打开。
i start the tomcat5 service manually using windows services 我使用Windows服务手动启动tomcat5服务
there is other service running on ports 8009,8080. 端口8009、8080上还有其他服务在运行。 the firewall is even not blocking
防火墙甚至没有阻塞
The error means the same what it says, "you can't run 2 instances of server on the same port". 该错误表示的含义与“不能在同一端口上运行2个服务器实例”相同。 In this case, it can be another project of yours that might have used tomcat previously and hasn't left it yet.
在这种情况下,它可能是您的另一个项目,该项目以前可能曾经使用过tomcat,但尚未离开。
Solution: 解:
If you are not sure if your port are currently being used : 如果不确定当前是否正在使用您的端口,请执行以下操作:
netstat -a
in a terminal (linux) or command prompt (windows). netstat -a
。 It'll list down all the ports open/listening on your machine. Once you get to know that the port you want to use is already in use, 一旦知道要使用的端口已在使用中,
You cannot run two Tomcat servers on the same port. 您不能在同一端口上运行两个Tomcat服务器。 When you intend to develop and not to let your machine act as a real webserver for the world wide web, then just stop and disable the Window service.
当您打算开发而不是让您的机器充当万维网的真实Web服务器时,只需停止并禁用Window服务即可。 It is not useful for you.
它对您没有用。 This way the port comes free for local Tomcat instance in Eclipse.
这样,在Eclipse中,本地Tomcat实例即可免费使用该端口。
Or if you really want to keep the Windows service for some reason, then you'll give your development Tomcat machine a different port number. 或者,如果您确实出于某种原因想要保留Windows服务,则可以为您的开发Tomcat计算机提供不同的端口号。 Doubleclick the server entry in Eclipse to get the configuration screen.
双击Eclipse中的服务器条目以获取配置屏幕。 You can edit the port numbers there.
您可以在此处编辑端口号。
In the future, installing Tomcat should be as simple as downloading the zip and extracting it. 将来,安装Tomcat应该就像下载zip并将其解压缩一样简单。 The exe installer contains a Windows specific service, but actually no service needs to be installed for just local development.
exe安装程序包含Windows特定的服务,但实际上仅本地开发不需要安装任何服务。
在Windows上停止tomcat服务,然后在eclipse中启动tomcat。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.