TomEE 启动但 Netbeans 提示“无法启动"错误 [英] TomEE starts but Netbeans gives "Failed to start" error

查看:17
本文介绍了TomEE 启动但 Netbeans 提示“无法启动"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 NetBeans 8.0.2(也在最新的每晚构建中尝试过)并尝试在端口 8084 上启动 TomEE Plume 服务器(也在不同的端口上尝试过).服务器启动并工作正常,但 NetBeans 认为它​​没有启动,等待大约 2 分钟后(等待 Tomcat")抛出一个错误窗口Tomcat 无法启动"或类似的东西.

I'm using NetBeans 8.0.2 (also, tried it in the latest nightly build) and trying to start TomEE Plume server on port 8084 (tried it on different port too). Server starts and works fine, but NetBeans thinks it is not started and after approximately 2 minutes of waiting ("Waiting for Tomcat") throws an error window "Tomcat failed to start" or something like that.

有一些与我类似的问题,不同之处在于我完全没有错误,只有Tomcat 无法启动"窗口,所以我什至不能把日志放在这里,因为它说没有任何用处.此外,可用的解决方案对我不起作用.

There are questions similar to mine with the difference that I have totally no errors, only "Tomcat failed to start" window, so I can't even put the log here as it says nothing useful. Also, available solutions are not working for me.

我相信 NetBeans 和 TomEE 之间存在一些通信问题,而且我几乎可以肯定问题出在 NetBeans 中,因为 TomEE 运行良好并按预期启动,localhost:8084 为我提供了 Tomcat 页面,但 NetBeans 认为它​​无法启动.由于某种原因,TomEE 在启​​动后没有向 NetBeans 发送确认的可能性很小,但我真的不知道如何检查.

I believe that there's some communication problems between NetBeans and TomEE, also I'm almost sure the problem is in NetBeans because TomEE works well and starts as it should, localhost:8084 gives me Tomcat page though NetBeans think it failed to start. There's some small chance that for some reason TomEE is not sending confirmation to NetBeans after starting, but I really have no ideas how to check that.

我研究过同样的问题,两个最常见的问题是'127.0.0.1*' 未被识别为内部或外部命令",我也遇到过同样的问题.建议的解决方案是在工具选项中选择无代理",但它仍然没有帮助我.

I've looked into the same issues, two most common problems are "'127.0.0.1*' is not recognized as an internal or external command" and the very same I have. Solution suggested was to choose "No proxy" in the Tools-Options, still it didn't help me.

另外,为了确定,我已经编辑了 catalina.bat 文件并检查了我的用户权限,即 roles="admin-gui,manager-gui,admin,manager-脚本".

Also, just to be sure, I've edited catalina.bat file and checked my user permissions that are roles="admin-gui,manager-gui,admin,manager-script".

我希望有人遇到同样的问题.另外,我想知道这个问题是否可以解决.谢谢.

I hope someone faced the same issue. Also, I'd like to know is this problem even solvable. Thanks.

推荐答案

在 server.xml 中,从连接器中删除 xpoweredBy 和 server 属性:

In server.xml, remove the xpoweredBy and server attributes from the connector:

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" xpoweredBy="false"
           server="Apache TomEE" />

这篇关于TomEE 启动但 Netbeans 提示“无法启动"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆