gpt4 book ai didi

java - 在 Eclipse 中打开 Liberty : publishing results in an JMX connection error

转载 作者:行者123 更新时间:2023-12-02 08:44:08 24 4
gpt4 key购买 nike

我使用 https://openliberty.io/downloads/#eclipse_developer_tools 中的 Eclipse Developer Tools 在 Eclipse 2020-03 中配置了 Open Liberty 服务器.

我可以添加我的 .war 项目并毫无问题地启动服务器,但在正在运行的服务器上发布会导致错误: enter image description here

启动时服务器控制台也出现错误:

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

这可能与 open-liberty github 上的这个(已解决的)讨论相匹配:https://github.com/OpenLiberty/open-liberty/issues/6533 .

在 server.xml 中,Eclipse 显示一条警告,指出无法识别 localConnector-1.0 功能,但当我尝试删除它时,保存后它会再次出现。

我尝试在 AdoptJDK 8、11 和 14 之间切换,但行为没有改变。

最佳答案

工具需要 localConnector-1.0 功能才能连接到服务器。如果它不存在,您将收到有关 JMX 连接失败的错误消息,并且工具将继续尝试将其添加回 server.xml。您是否使用仅具有特定功能子集的最小化服务器?您可以使用 Liberty 附带的 installUtility 安装 localConnector-1.0 功能部件。在bin目录下找到:

bin/installUtility install localConnector-1.0

您还可以使用这些工具安装功能。打开 Runtime Explorer View ,右键单击 Liberty 运行时并选择安装附加内容。使用搜索字段搜索本地连接器,单击该功能的安装,然后完成向导并接受任何许可证。

关于java - 在 Eclipse 中打开 Liberty : publishing results in an JMX connection error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61197358/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com