1 Reply Latest reply on Aug 6, 2015 6:15 AM by Mohan Radhakrishnan

    Arquillian hornetq-jms.xml parse error

    Mohan Radhakrishnan Newbie

      When I add this hornetq-jms.xml to my EAR like this I get an error.

          ear.addAsManifestResource("hornetq-jms.xml");

       

      <configuration xmlns="urn:hornetq"

                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">

              <connection-factory name="ConnectionFactory">

              <connectors>

                  <connector-ref connector-name="in-vm"/>

              </connectors>

              <entries>

              <entry name="java:/ConnectionFactory"/>

              </entries>

          </connection-factory>

          <!--the queue used by the example-->

           <queue name="test4">

               <entry name="java:/jms/queue/test45"/>

               <entry name="java:jboss/exported/jms/queue/test4"/>

           </queue>

      </configuration>

       

      What does this error mean ?

       

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSG0055: Could not parse file D:\arquillian\wildfly-9.0.0.Final\wildfly-9.0.0.Final\standalone\tmp\vfs\temp\tempcab860d931c0ad41\content-780de49073159d26\contents\META-INF\hornetq-jms.xml

      at org.jboss.as.messaging.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:98)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)
      ... 5 more

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSG0055: Could not parse file D:\arquillian\wildfly-9.0.0.Final\wildfly-9.0.0.Final\standalone\tmp\vfs\temp\tempcab860d931c0ad41\content-780de49073159d26\contents\META-INF\hornetq-jms.xml

      at org.jboss.as.messaging.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:95)
      ... 6 more

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

      Message: Unexpected element '{urn:hornetq}configuration'

      at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
      at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
      at org.jboss.as.messaging.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:89)
      ... 6 more
        • 1. Re: Arquillian hornetq-jms.xml parse error
          Mohan Radhakrishnan Newbie

          This doesn't work either.

           

          <subsystem xmlns="urn:jboss:domain:messaging:1.0">

             <hornetq-server>     

             <jms-connection-factories>

             <connection-factory name="ConnectionFactory">

                  <connectors>

                      <connector-ref connector-name="in-vm"/>

                  </connectors>

                  <entries>

                  <entry name="java:/ConnectionFactory"/>

                  </entries>

              </connection-factory>

              </jms-connection-factories>

              <!--the queue used by the example-->

              <jms-destinations>

               <queue name="test4">

                   <entry name="java:/jms/queue/test45"/>

                   <entry name="java:jboss/exported/jms/queue/test4"/>

               </queue>

            </jms-destinations>

             </hornetq-server>

          </subsystem>

           

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

          Message: Unexpected element '{urn:jboss:domain:messaging:1.0}subsystem'

            at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)

            at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

            at org.jboss.as.messaging.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:89)

            ... 6 more

           

          Even after adding this to standalone.xml

          <extension module="org.jboss.as.messaging"/>

           

          Should something be changed in this file ?

           

          <?xml version="1.0" encoding="UTF-8"?>

          <arquillian xmlns="http://jboss.org/schema/arquillian"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="http://jboss.org/schema/arquillian

                  http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

           

           

            <container qualifier="jboss" default="true">

            <configuration>

            <!-- We use the standalone-full configuration to have HornetQ started

            in the AS9 -->

            <property name="jbossHome">D:\arquillian\wildfly-9.0.0.Final\wildfly-9.0.0.Final</property>

            <property name="serverConfig">standalone-full.xml</property>

            </configuration>

            </container>

           

           

          </arquillian>