Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1990

WebsphereMQ 7 Resource Adapter error: IJ010061: Unexpected element: archive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 8.0.0.Alpha4
    • Server

      I'm getting the error when trying to configure WebsphereMQ 7 resource adapter on WildFly/JBoss 8. (I have already copied the rar file; wmq.jmsra.rar to the deployments directory):

      12:23:44,485 DEBUG [org.jboss.as.config] (MSC service thread 1-7) VM Arguments: -XX:+TieredCompilation -XX:+UseCompressedOops -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\Install\WildFly\wildfly-8.0.0.Alpha4\nodes\node01\log\server.log -Dlogging.configuration=file:C:\Install\WildFly\wildfly-8.0.0.Alpha4\nodes\node01\configuration/logging.properties 
      12:23:54,482 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112) [wildfly-controller-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at org.jboss.as.server.ServerService.boot(ServerService.java:322) [wildfly-server-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:245) [wildfly-controller-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: javax.xml.stream.XMLStreamException: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: archive
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdapterSubsystemParser.readElement(ResourceAdapterSubsystemParser.java:363)
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdapterSubsystemParser.readElement(ResourceAdapterSubsystemParser.java:94)
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      	at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      	at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1131) [wildfly-server-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:460) [wildfly-server-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:147) [wildfly-server-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:109) [wildfly-server-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      	at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:104) [wildfly-controller-8.0.0.Alpha4.jar:8.0.0.Alpha4]
      	... 3 more
      Caused by: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: archive
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdapterParser.parseResourceAdapters(ResourceAdapterParser.java:127)
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdapterParser.parse(ResourceAdapterParser.java:89)
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdapterSubsystemParser.readElement(ResourceAdapterSubsystemParser.java:354)
      	... 13 more
      
      12:23:54,492 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      12:23:54,576 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015950: WildFly 8.0.0.Alpha4 "WildFly" stopped in 6ms
      

      Below is the resource adapter configuration:

      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
          <resource-adapters>
              <resource-adapter>
                  <archive>wmq.jmsra.rar</archive>
                  <config-property name="Name">WebsphereMQ_Resource</config-property>
                  <transaction-support>NoTransaction</transaction-support>
                  <connection-definitions>
                      <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:mq/MY_QMGR_CF" pool-name="MY_QMGR_CF">
                          <config-property name="channel">CLIENT.my_qmgr</config-property>
                          <config-property name="transportType">CLIENT</config-property>
                          <config-property name="queueManager">my_qmgr</config-property>
                          <config-property name="port">1420</config-property>
                          <config-property name="hostName">localhost</config-property>
                          <validation>
                              <background-validation>true</background-validation>
                              <background-validation-millis>0</background-validation-millis>
                          </validation>
                      </connection-definition>
                  </connection-definitions>
                  <admin-objects>
                      <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:mq/TEST_WILDFLY_8" pool-name="TEST_WILDFLY_8_POOL">
                          <config-property name="baseQueueManagerName">my_qmgr</config-property>
                          <config-property name="baseQueueName">TEST_WILDFLY_8</config-property>
                      </admin-object>
                  </admin-objects>
              </resource-adapter>
          </resource-adapters>
      </subsystem>
      

              Unassigned Unassigned
              n002213f_jira Sipatha S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: