title: JBoss eap 6.4 cli name deployment
body: <p>I am attempting to deploy a war file in Jboss eap 6.4 and I want to use the --name argument with the deploy. However, when I do so the war gets deployed but is inaccessible via the name.. </p>
  
  <p>The war file is named testweb.war. It works perfectly fine when I deploy it without the --name argument during the deploy command, but I am creating a deploy script where customers need to be able to name the application as well... </p>
  
  <p>Here is the web.xml in my war file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd"&gt;
  &lt;jboss-web&gt;
       &lt;context-root&gt;&lt;/context-root&gt;
  &lt;/jboss-web&gt;
  </code></pre>
  
  <p>The command I'm using with the jboss-cli is:</p>
  
  <pre><code>deploy /path/to/war/testweb.war --name=testweb
  </code></pre>
  
  <p>And the web application is inaccessible via the url:</p>
  
  <pre><code>localhost:8085/testweb
  </code></pre>
  
  <p>This is the correct port number, and should be the correct application name.. </p>
  
  <p>Thank you in advance.</p>