【问题标题】:Feature installation error wmqjmsclient-1.1功能安装错误 wmqjmsclient-1.1
【发布时间】:2021-08-02 20:25:20
【问题描述】:

功能安装错误:

尝试按照文档启用此 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

【问题讨论】:

    标签: jms open-liberty


    【解决方案1】:

    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 功能本身。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多