Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-72

Cannot create JMS queues via <command>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.1.0.Alpha11
    • Maven Plugin
    • None

      Trying:

      <configuration>
         <artifact>org.wildfly:wildfly-dist:10.1.0.Final</artifact>
         <serverConfig>standalone-full.xml</serverConfig>
         <beforeDeployment>
           <commands>
             <command>jms-queue add --queue-address=demoQueue --entries=java:/jms/queue/demoQueue</command>
           </commands>
         </beforeDeployment>
      </configuration>
      

      gives the following error:

      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Alpha11:run (default-cli) on project my-project: 
      The server failed to start: Command 'jms-queue add --queue-address=demoQueue --entries=java:/jms/queue/demoQueue' is invalid.
      The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable). -> [Help 1]
      

      Workaround:

      <command>/subsystem=messaging-activemq/server=default/jms-queue=demoQueue:add(entries=["java:/jms/queue/demoQueue"])</command>
      

            Unassigned Unassigned
            xavierdury Xavier Dury (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: