IBM Support

IT30812: MQ Resource Adapter IVT sample application "wmq.jmsra.ivt.ear" fails to deploy to WebSphere Application Server

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • An attempt is made to deploy the MQ Resource Adapter
    Installation-Verification-Test (IVT) sample application named:
    
      /opt/mqm/java/lib/jca/wmq.jmsra.ivt.ear
    
    from the IBM MQ v9.0.0.0 version, to the WebSphere Application
    Server (WAS) v9.0.0.0.
    
    This deployment fails, and the application server's
    SystemOut.log file reports the error message:
    
    org.eclipse.emf.common.util.WrappedException:
    org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
    content was found starting with element 'lookup-name'.
    

Local fix

  • Look to remove the resource-ref element from the following file
    within the wmq.jmsra.ivt.ear package:
    
      wmq.jmsra.ivt.ear/WMQ_IVT_MDB.jar/META-INF/ejb-jar.xml
    
    The resource-ref element to remove is the following section:
    
    &#09;&#09;    <resource-ref>
                    <res-ref-name>jms/cf1</res-ref-name>
    
    <res-type>javax.jms.QueueConnectionFactory</res-type>
                    <res-auth>Container</res-auth>
                    <lookup-name>JMS2CF</lookup-name>
                </resource-ref>
    
    Then repackage and deploy the .ear file into the WebSphere
    Application Server.
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    This issue affects users of the Installation, Verification and
    Test (IVT) sample application for the IBM MQ Resource Adapter,
    as supplied in the Enterprise Archive (EAR) file at the
    location:
    
      ${MQ_INSTALLATION_ROOT}/java/lib/jca/wmq.jmsra.ivt.ear
    
    when attempting to use the application within WebSphere
    Application Server environment.
    
    This issue is not known to affect other application servers (eg.
    JBoss, WebSphere Liberty Profile).
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    The basic functionality of the IBM MQ Resource Adapter as used
    within the WebSphere Application Server environment can be
    tested using the sample IVT application which is supplied with
    the IBM MQ installation at the location:
    
      ${MQ_INSTALLATION_ROOT}/java/lib/jca/wmq.jmsra.ivt.ear
    
    However when attempting to deploy this into the WebSphere
    Application Server environment, an error would be encountered
    during the deployment phase.
    
    The WebSphere Application Server "SystemOut.log" file would
    report the following exception:
    
    Creating the project.
    An unexpected exception was thrown. Halting execution.
    Shutting down workbench.
    Error executing deployment:
    org.eclipse.jst.j2ee.commonarchivecore.internal.exception.Deploy
    mentDescriptorLoadException. Error is META-INF/ejb-jar.xml.
    org.eclipse.jst.j2ee.commonarchivecore.internal.exception.Deploy
    mentDescriptorLoadException: META-INF/ejb-jar.xml
    Stack trace of nested exception:
    org.eclipse.emf.common.util.WrappedException:
    org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
    content was found starting with element 'lookup-name'. One of
    '{"http://java.sun.com/xml/ns/j2ee":res-sharing-scope}' is
    expected.
    at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.loa
    dDocument(EMF2DOMRenderer.java:81)
    at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doL
    oad(EMF2DOMRenderer.java:62)
    at
    org.eclipse.wst.common.internal.emf.resource.TranslatorResourceI
    mpl.basicDoLoad(TranslatorResourceImpl.java:153)
    at
    org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIRes
    ourceImpl.doLoad(CompatibilityXMIResourceImpl.java:182)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceIm
    pl.java:1518)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceIm
    pl.java:1297)
    
    As the deployment of the IVT application had failed, it could
    not then be utilised.
    

Problem conclusion

  • The IVT Enterprise Archive (.ear) file has been updated to allow
    it to be deployed into the WebSphere Application Server
    environment.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v9.0 LTS   9.0.0.9
    v9.1 CD    9.1.5
    v9.1 LTS   9.1.0.5
    
    The latest available maintenance can be obtained from
    'WebSphere MQ Recommended Fixes'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'WebSphere MQ
    Planned Maintenance Release Dates'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT30812

  • Reported component name

    IBM MQ BASE M/P

  • Reported component ID

    5724H7261

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-10-31

  • Closed date

    2019-11-29

  • Last modified date

    2019-11-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    IBM MQ BASE M/P

  • Fixed component ID

    5724H7261

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 November 2019