Unexpected element when editing Standalone.xml

1.9k Views Asked by At

I'm trying ton configure a JMS MQueue on JBoss but when I add an admin-object to the standalone.xml file :

<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
        <resource-adapters>
            <resource-adapter id="wmq.jmsra.rar">
                <archive>
                    wmq.jmsra.rar
                </archive>
                ...
                <admin-objects>
                    <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/resources/jms/MyQueueName" use-java-context="true" pool-name="MyQueuePool">
                        <config-property name="baseQueueManagerName">
                            AAAA
                        </config-property>
                        <config-property name="baseQueueName">
                            BBBB
                        </config-property>
                    </admin-object>
                </admin-objects>
                    

I'm getting the following error :

Message: JBAS014789: Unexpected element '{urn:jboss:domain:resource-adapters:1.1}config-property' encountered

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[587,74]

Important points :

  • There are other admin-object already existing.
  • The XML is formatted correctly.
  • I'm getting this error when trying to start my server.
  • I'm using JBoss Entreprise Application Platform 6.3.3.GA
  • [587,74] references the admin-object I'm trying to add.
2

There are 2 best solutions below

0
On
0
On

I had the same "Unexpected element" problem by duplicating a "<connection-definition" block. The issue was duplicate pool-name attribute in several blocks. By changing one of the pool name it solves the problem.