简体   繁体   English

带有Tomcat的Eclipse和Netbeans:已启动,但不起作用

[英]Eclipse and Netbeans with Tomcat: it is started, but don't work

I have installed, under debian jessie, tomcat 9.0.7 , netbeans 8.2 and eclipse oxigen. 我已经在debian jessie下安装了tomcat 9.0.7,netbeans 8.2和eclipse oxigen。

If i start tomcat from command line, it works, i see the welcome page in my browser. 如果我从命令行启动tomcat,它会起作用,我会在浏览器中看到欢迎页面。

If i start it from eclipse, in the console i see all info messages that finish with: "Server startup in 2526 ms", but the state in server tag, is "starting, syncronized". 如果我从eclipse启动它,则在控制台中,我会看到所有以以下内容结尾的信息消息:“服务器在2526毫秒内启动”,但是服务器标签中的状态为“正在启动,已同步”。 After a while, eclipse tells: "Server Tomcat v9.0 Server at localhost was unable to start within 450 seconds. If the server requires more time, try increasing the timeout in the server editor", but also if i increase the timeout, it doesn't work. 一段时间后,eclipse告诉:“本地服务器Tomcat v9.0服务器无法在450秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时时间”,但是如果我增加超时时间,它也会不起作用。

The same thing for netbeans. Netbeans也是如此。

I tried to install tomcat 8.5, no changes. 我尝试安装tomcat 8.5,没有任何变化。

I tried to install wildfly 12.0, same thing. 我尝试安装wildfly 12.0,也是一样。

No firewalls, no proxys, no strange network things. 没有防火墙,没有代理,没有奇怪的网络事物。

What could be the problem? 可能是什么问题呢?

Solved. 解决了。 It was a problem of firewall, that blocked some ports. 这是防火墙的问题,它阻止了某些端口。

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

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