简体   繁体   English

Eclipse 插件无法与 GlassFish 服务器通信

[英]The Eclipse plugin cannot communicate with the GlassFish server

I need use Glassfish in a project we're currently working on in Eclipse IDE.我需要在我们目前在 Eclipse IDE 中进行的项目中使用 Glassfish。 My problem is after installing Glassfish Tools in Eclipse I manage to correctly create a new glassfish server en SERVERS tab but when I try to start it the following error message pop up:我的问题是在 Eclipse 中安装 Glassfish 工具后,我设法在 SERVERS 选项卡上正确创建了一个新的 glassfish 服务器,但是当我尝试启动它时,会弹出以下错误消息:

The Eclipse plugin cannot communicate with the GlassFish server.... The Eclipse plugin cannot communicate with the GlassFish server. Eclipse 插件无法与 GlassFish 服务器通信。... Eclipse 插件无法与 GlassFish 服务器通信。 A GlassFish Enterprise Server may be running on the same admin or HTTP port, but with a different root installation.Please also check for antivirus software, firewall configuration, or VPN setup which might block some ports. GlassFish Enterprise Server 可能在相同的管理员或 HTTP 端口上运行,但具有不同的根安装。请同时检查可能会阻止某些端口的防病毒软件、防火墙配置或 VPN 设置。

<\/blockquote>

Actually the problem looks more complex since not only I'm not able to start server but I cannot execute any action on server.实际上问题看起来更复杂,因为我不仅无法启动服务器,而且无法在服务器上执行任何操作。 Neither deploying, nor clean or whaterever else do work resulting in popping up the above message.部署、清理或其他任何工作都不会导致弹出上述消息。

In the internet developers communities I only find clues about CREDENTIAL ERROR but this is not the case.在互联网开发者社区中,我只找到有关 CREDENTIAL ERROR 的线索,但事实并非如此。 Looking in the Glassfish log folder there is no trace of any access attempt.查看 Glassfish 日志文件夹,没有任何访问尝试的痕迹。 Everythings points at Eclipse plug-in neither be able to communicate with glassfish by any circumstance.一切都指向 Eclipse 插件在任何情况下都无法与 glassfish 通信。

This issue occours either with Glassfish 3.1 (using jdk1.7) and 4.1 (using jdk1.8) and in Eclipse Luna and Mars.这个问题发生在 Glassfish 3.1(使用 jdk1.7)和 4.1(使用 jdk1.8)以及 Eclipse Luna 和 Mars 中。

I already tried to create, delete and manage glassfish domains (as suggested in other questions here at StackOverflow) to get over potential "credential-related" issues but no result.我已经尝试创建、删除和管理 glassfish 域(如 StackOverflow 的其他问题中所建议的那样)以克服潜在的“与凭据相关”的问题,但没有结果。

Tried to uninstall and reinstall Glassfish Tools from Eclipse too but still no way.也尝试从 Eclipse 卸载并重新安装 Glassfish 工具,但仍然没有办法。

Both Glasshfish 3.1 an 4.1 start flawlessly manually and NetBeans manage to start them without any problem but, as said, I need to work with eclipse so switching to NetBeans is not the solution (and, please, don't suggest me a manual deploy and server start). Glasshfish 3.1 和 4.1 都可以完美地手动启动,而 NetBeans 可以毫无问题地启动它们,但是如上所述,我需要使用 eclipse,因此切换到 NetBeans 不是解决方案(请不要建议我手动部署和服务器启动)。

As a last attempt, since I work in Windows, in a console window I tried this:作为最后一次尝试,因为我在 Windows 中工作,所以在控制台窗口中我尝试了这个:

 netstat -a -b<\/code><\/pre>

to verify no other service is "taking" port 8080 (although it doesn't seem to be a port problem but a "plug-in communication" one) but it resulted free.验证没有其他服务正在“占用”端口 8080(尽管它似乎不是端口问题,而是“插件通信”问题),但结果是免费的。

I'm into this mess by days.几天来我陷入了这种混乱。 Please help.请帮忙。

Thank you谢谢

"

I had exactly the same problem. 我有完全相同的问题。 When I set "preserve sessions across redeployment" in the Eclipse properties dialog for GlassFish, tab "GlassFish", to false (true being the default), everything worked out fine. 当我在GlassFish的Eclipse属性对话框中设置“在重新部署中保留会话”时,选项卡“GlassFish”,为false(默认为true),一切正常。

I have faced the same problem. 我遇到了同样的问题。 Generally, the programs that get dynamicly port numbers causes this. 通常,动态获取端口号的程序会导致这种情况。 Etc: skype, teamviewer. 等等:skype,teamviewer。

For me, I solved the problem with starting eclipse before them. 对我来说,我解决了在他们面前开始日食的问题。

Maybe this works for you too. 也许这也适合你。

我有同样的问题,我通过从Eclipse中删除glassfish服务器并再次添加它来解决它。

我只是在Eclipse菜单窗口 - >首选项 - >常规 - >网络连接中设置代理配置(将Active Provider值从“Native”更改为“Manual”并插入HTTP和HTTPS行所需的所有值)并添加“localhost” “和”127.0.0.1“到”代理旁路“部分。

我在自己的案例中注意到的是其他应用程序使用端口号 4848,所以我不得不停止使用端口 4848 并再次重新启动域(重新启动 glassfish 服务器)

"

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

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