title: 404 not found when calling servlet
body: <p>I have a simple servlet say <code>com.test.HelloWorld.class</code></p>
  
  <p>then I create these folders tree:</p>
  
  <pre><code>WEB-INF --&gt;
              lib
              classes --&gt;
                      com --&gt;
                             test --&gt;
                                  HelloWorld.class
  web.xml
  </code></pre>
  
  <p>where web.xml is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
             http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
           version="3.0"&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;helloworld&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
        com.test.HelloWorld
      &lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;helloworld&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/servlets&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>after I create a .war called servlets.war and put it inside the autodeploy dir of the GlassFish server.</p>
  
  <p>After I point the url: localhost:8080/servlets/helloworld but I have a 404 error.</p>
  
  <p>Why? What's worng?</p>
  
  <p>Thanks.</p>