简体   繁体   English

Tomcat已启动,但Eclipse似乎无法检测到

[英]Tomcat started but Eclipse seems unable to detect that

I'm running Tomcat v5.0.30 inside Eclipse Helios, installed with "Server->New...". 我正在Eclipse Helios中运行Tomcat v5.0.30,并安装了“服务器->新建...”。

Tomcat starts correctly, but Eclipse seems unable to detect that the server is started, so the "starting Tomcat" status bar keeps spinning until start timeout is reached and Tomcat is shutted down. Tomcat可以正确启动,但是Eclipse似乎无法检测到服务器已启动,因此“启动Tomcat”状态栏一直旋转,直到达到启动超时并且Tomcat关闭为止。

As a workaround I set the Tomcat start timeout to a very big value, but obviously I'd like to work normally. 作为一种解决方法,我将Tomcat启动超时设置为一个很大的值,但是显然我想正常工作。

As suggested in other questions I used netstat -ano to find if the server port was being used by another process, but the port resulted free. 正如在其他问题中所建议的那样,我使用netstat -ano查找服务器端口是否已被另一个进程使用,但是该端口未使用。 In any case, I also tried to change Tomcat port to other values, but it didn't solve the problem. 无论如何,我也试图将Tomcat端口更改为其他值,但是并不能解决问题。

Any suggestion? 有什么建议吗?

Having the same issue in my case it helped to switch connector protocol from 在我的情况下有同样的问题,它有助于将连接器协议从

<Connector port="8080" protocol="org.apache.coyote.http11.Http11Nio2Protocol" ...>

to

<Connector port="8080" protocol="HTTP/1.1" ...>

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

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