title: What does Context Root mean?
body: <p>I am deploying a simple web module to <strong>glassfish</strong> server.</p>
  
  <p>The package name is <code>test2.war</code>.</p>
  
  <p>The runtime deployment descriptor file <code>sun-web.xml</code> specifies the <code>Context Root</code> as below:</p>
  
  <pre><code>  &lt;context-root&gt;/myTest&lt;/context-root&gt;
  </code></pre>
  
  <p>According to the Java EE 5 tutorial, <code>A context root identifis a web application in a Java EE server.</code> I expected that I should visit my site like below:</p>
  
  <pre><code>http://localhost:8080/myTest
  </code></pre>
  
  <p>But it turns out I still have to use:</p>
  
  <pre><code>http://localhost:8080/test2
  </code></pre>
  
  <p>So what's the purpose of Context Root? How to use it?</p>
  
  <h2>ADD 1</h2>
  
  <p>According to <a href="https://stackoverflow.com/questions/16491203/setting-context-root-does-not-work-in-glassfish">Setting context root does not work in Glassfish</a></p>
  
  <p>This seems to be a glassfish bug.</p>