[英]Getting CWWKF0044E incompatible feature error using Open Liberty with Maven, but I didn't configure incompatible features
When using Open Liberty version 22.0.0.5 and liberty-maven-plugin version 3.3 with a server config (server.xml) configuring just a single feature:当使用 Open Liberty 版本 22.0.0.5 和 liberty-maven-plugin 版本 3.3 以及仅配置一个功能的服务器配置 (server.xml) 时:
<featureManager>
<feature>batch-2.0</feature>
</featureManager>
and running "dev mode" (via mvn liberty:dev
), I get this error as dev mode starts the server:并运行“开发模式”(通过
mvn liberty:dev
),当开发模式启动服务器时出现此错误:
[INFO] [ERROR ] CWWKF0044E: The io.openliberty.connectionManager1.0.internal.ee-6.0 and batch-2.0 features cannot be loaded at the same time.
[INFO] [ERROR ] CWWKF0044E: 无法同时装入 io.openliberty.connectionManager1.0.internal.ee-6.0 和 batch-2.0 功能部件。 The io.openliberty.connectionManager1.0.internal.ee-6.0 feature of Java EE 6 is incompatible with the batch-2.0 feature of Jakarta EE 9. The batch-2.0 and batch-2.0 configured features include an incompatible combination of features.
Java EE 6 的 io.openliberty.connectionManager1.0.internal.ee-6.0 功能与 Jakarta EE 9 的 batch-2.0 功能不兼容。batch-2.0 和 batch-2.0 配置的功能包括不兼容的功能组合。 Your configuration is not supported.
不支持您的配置。 Update the configuration to use features that support either the Java EE or Jakarta EE programming models, but not both.
更新配置以使用支持 Java EE 或 Jakarta EE 编程模型但不能同时支持两者的特性。
[INFO] [WARNING ] CWWKF0046W: The configuration includes an incompatible combination of features.
[INFO] [WARNING ] CWWKF0046W: 配置包含不兼容的功能组合。 As a result, the feature manager did not install any features.
结果,功能管理器没有安装任何功能。
This is a bug.这是一个错误。 To resolve, update liberty-maven-plugin to the latest version (or at least to version 3.4, where this was fixed ).
要解决此问题,请将 liberty-maven-plugin 更新至最新版本(或至少更新至 3.4 版,已修复此问题)。
The bug is described here from the runtime angle, as it was an issue with the way the liberty-maven-plugin queries the Open Liberty runtime for feature versions.此处从运行时角度描述了该错误,因为它是 liberty-maven-plugin 查询 Open Liberty 运行时以获取功能版本的方式的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.