TomEE开始但Netbeans给出“无法启动”错误 [英] TomEE starts but Netbeans gives "Failed to start" error

查看:267
本文介绍了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-script

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天全站免登陆