title: Setting context root does not work in Glassfish
body: <p>I am specifying a context root as the XML below shows. It does not work however when I upload the war file manually in the Glassfish admin web console. If I deploy it through the maven plugin for glassfish it works. It seems like Glassfish does not read the file and use the default name...Am I missing something or is this (yet another) a bug? I am using Glassfish 3.1.2.2 build 5.</p>
  
  <p><em>glassfish-web.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN"
      "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"&gt;
  &lt;glassfish-web-app&gt;
      &lt;context-root&gt;myContextRoot&lt;/context-root&gt;
  &lt;/glassfish-web-app&gt;
  </code></pre>