首页 > 解决方案 > 功能安装错误 wmqjmsclient-1.1

问题描述

功能安装错误:

尝试按照文档启用此wmqjmsclient-1.1wmqjmsclient-2.0功能来安装 JMS-MQ。两个版本都给出相同的错误,请让我知道如何安装/启用此功能。

    [ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.3.4:run (default-cli) on project CC: CWWKF1299E: The following features could not be obtained: wmqjmsclient-1.1. Ensure that the features are valid for Open Liberty. -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

标签: jmsopen-liberty

解决方案


wmqJmsClient在 Open Liberty 中不可用,仅在 WebSphere Liberty 中可用。要将 MQ 与 Open Liberty 一起使用,您可以resourceAdapter像本示例中那样创建一个元素 ( https://github.com/epomatti/openliberty-jms-mq-example/blob/47171bec7ef8a1e701ae363293a6cfd6a9bd5b32/liberty/server.xml#L12 )

<resourceAdapter id="wmqjmsra"
    location="${server.config.dir}/wmq.jmsra.rar" />

确保选择wmqJms与示例不同的 id,因为可能会出现问题。您将使用该名称来指定属性,例如同一个示例文件:

<jmsQueue id="jms/queue1" jndiName="jms/queue1">
    <properties.wmqjmsra baseQueueManagerName="QM1"
        baseQueueName="DEV.QUEUE.1" />
</jmsQueue>

jms-2.0如果您没有任何其他功能将其引入,请确保启用该功能本身。


推荐阅读