title: Why does jboss-as:deploy fail?
body: <p>I wanted to deploy my war file to JBoss 7.1.1 after compilation. But it fails with the following line in output (setting maven debug output to -X and -e does not create more verbose output).</p>
  
  <p>My maven command I use to invoke it is: <code>clean install -Pintegration jboss-as:deploy</code> </p>
  
  <pre><code>[INFO] --- jboss-as-maven-plugin:7.1.1.Final:deploy (default-cli) @ webapp ---
  Aug 28, 2013 11:58:26 AM org.xnio.Xnio &lt;clinit&gt;
  INFO: XNIO Version 3.0.3.GA
  Aug 28, 2013 11:58:26 AM org.xnio.nio.NioXnio &lt;clinit&gt;
  INFO: XNIO NIO Implementation Version 3.0.3.GA
  Aug 28, 2013 11:58:26 AM org.jboss.remoting3.EndpointImpl &lt;clinit&gt;
  INFO: JBoss Remoting version 3.2.3.GA
  mojoFailed org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final(default-cli)
  projectFailed com.foo:webapp:0.0.1-SNAPSHOT
  [HUDSON] Archiving C:\Users\Administrator\.hudson\jobs\CCMS\workspace\pom.xml to C:\Users\Administrator\.hudson\jobs\CCMS\modules\com.foo$webapp\builds\2013-08-28_11-57-43\archive\com.foo\webapp\0.0.1-SNAPSHOT\pom.xml
  [HUDSON] Archiving C:\Users\Administrator\.hudson\jobs\CCMS\workspace\target\webapp.war to C:\Users\Administrator\.hudson\jobs\CCMS\modules\com.foo$webapp\builds\2013-08-28_11-57-43\archive\com.foo\webapp\0.0.1-SNAPSHOT\webapp.war
  sessionEnded
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 57.908s
  [INFO] Finished at: Wed Aug 28 11:58:49 CEST 2013
  [INFO] Final Memory: 21M/250M
  [INFO] ------------------------------------------------------------------------
  maven builder waiting
  mavenExecutionResult exceptions not empty
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final:deploy (default-cli) on project webapp: Deployment failed and was rolled back.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:146)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
      at hudson.remoting.UserRequest.perform(UserRequest.java:107)
      at hudson.remoting.UserRequest.perform(UserRequest.java:41)
      at hudson.remoting.Request$2.run(Request.java:276)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Deployment failed and was rolled back.
      at org.jboss.as.plugin.deployment.standalone.StandaloneDeployment.execute(StandaloneDeployment.java:147)
      at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:138)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 27 more
  </code></pre>
  
  <p>Before that, I added mgmtuser with the batch files to the jboss management realm.
  Profile pom.xml configuration is:</p>
  
  <pre><code>&lt;profile&gt;
              &lt;!-- The profile to build in the integration environment --&gt;
              &lt;id&gt;integration&lt;/id&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;!-- Use this plugin to cleanly deploy the application --&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
                          &lt;version&gt;7.1.1.Final&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;hostname&gt;localhost&lt;/hostname&gt;
                              &lt;username&gt;mgmtuser&lt;/username&gt;
                              &lt;password&gt;pwd&lt;/password&gt;
                              &lt;force&gt;true&lt;/force&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;                
          &lt;/profile&gt;
  </code></pre>
  
  <p>How could I retrieve detailed information about the error?</p>