简体   繁体   English

在 Eclipse 中打开 Liberty:发布导致 JMX 连接错误

[英]Open Liberty inside Eclipse: publishing results in an JMX connection error

I configured the Open Liberty server inside Eclipse 2020-03 using the Eclipse Developer Tools from https://openliberty.io/downloads/#eclipse_developer_tools .我使用来自https://open_liberty.io的 Eclipse 开发工具在 Eclipse 2020-03 中配置了 Open Liberty 服务器。

I can add my.war project and start the server without problem, but publishing on the running server results in an Error:我可以添加 my.war 项目并毫无问题地启动服务器,但在正在运行的服务器上发布会导致错误: 在此处输入图像描述

Also at startup there is an error in the server console:同样在启动时服务器控制台中出现错误:

[ERROR   ] CWWKF0001E: A feature definition could not be found for localconnector-1.0

that could match this (resolved) discussion on the open-liberty github: https://github.com/OpenLiberty/open-liberty/issues/6533 .这可能与关于开放自由 github: https://github.com/OpenLiberty/open-liberty/issues/6533的讨论相匹配。

Inside the server.xml Eclipse displays an warning, that the localConnector-1.0 feature is not recognized, but when I try to remove it, it reapears again after saving.在服务器内部。xml Eclipse 显示警告,即 localConnector-1.0 功能无法识别,但是当我尝试删除它时,它会在保存后再次出现。

I tried switching between the AdoptJDK 8, 11 and 14 but the behavior does not change.我尝试在 AdoptJDK 8、11 和 14 之间切换,但行为没有改变。

The localConnector-1.0 feature is required by the tools in order to connect to the server.工具需要 localConnector-1.0 功能才能连接到服务器。 If it is not there you will get that error message about the JMX connection failure and the tools will keep trying to add it back to the server.xml.如果它不存在,您将收到有关 JMX 连接失败的错误消息,并且工具将继续尝试将其添加回 server.xml。 Are you using a minimized server with only a specific subset of features?您是否正在使用仅具有特定功能子集的最小化服务器? You could install the localConnector-1.0 feature using the installUtility that comes with Liberty.您可以使用 Liberty 附带的 installUtility 安装 localConnector-1.0 功能部件。 It is found in the bin directory:它位于 bin 目录中:

bin/installUtility install localConnector-1.0

You can also install features using the tools.您还可以使用这些工具安装功能。 Open the Runtime Explorer view, right click on the Liberty runtime and select Install Additional Content .打开 Runtime Explorer 视图,右键单击 Liberty 运行时和 select Install Additional Content Use the search field to search for local connector, click Install for the feature and then finish the wizard, accepting any licenses.使用搜索字段搜索本地连接器,单击安装以获取该功能,然后完成向导,接受任何许可证。

Make sure your eclipse IDE running as Administrator.确保您的 eclipse IDE 以管理员身份运行。

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

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