title: can't run form.html page with tomcat container - 404 HTTP Status?
body: <p>I try to study base of web server programming.<br>
  I installed tomcat 7 on Ubuntu 12.04 (All works when I type <code>myIp:8080</code> I really see correct tomcat page). </p>
  
  <p>And created easy structure:  </p>
  
  <p>Under <code>apache-tomcat-7.0.42/webapps</code> => here created <code>Beer-v1</code> progect => into this folder <code>WEB-INF</code> folder and <code>form.html</code>. </p>
  
  <p>Code of <code>form.html</code>:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;h1 align=”center”&gt;Beer Selection Page&lt;/h1&gt;
          &lt;form method=”POST” 
              action=”SelectBeer.do”&gt;
              Select beer characteristics&lt;p&gt;
              Color:
              &lt;select name=”color” size=”1”&gt;  
                  &lt;option value=”light”&gt; light &lt;/option&gt;
                  &lt;option value=”amber”&gt; amber &lt;/option&gt;
                  &lt;option value=”brown”&gt; brown &lt;/option&gt;
                  &lt;option value=”dark”&gt; dark &lt;/option&gt;
              &lt;/select&gt;
              &lt;br&gt;&lt;br&gt;
              &lt;center&gt;
                  &lt;input type=”SUBMIT”&gt;
              &lt;/center&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Into <strong><em>WEB-INF</em></strong> <code>web.xml</code>.</p>
  
  <p>Code of <code>web.xml</code>:</p>
  
  <pre><code>&lt;web-app xmlns=”http://java.sun.com/xml/ns/j2ee”
      xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
      xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”
      version=”2.4”&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;Ch3 Beer&lt;/servlet-name&gt;
          &lt;servlet-class&gt;com.example.web.BeerSelect&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Ch3 Beer&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/SelectBeer.do&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>When I run <code>bin/startup.sh</code> into <code>apache-tomcat-7.0.42</code> folder I see next output:</p>
  
  <pre><code>root@nazar-desctop:/usr/local/tomcat/apache-tomcat-7.0.42# bin/startup.sh
  Using CATALINA_BASE:   /usr/local/tomcat/apache-tomcat-7.0.42
  Using CATALINA_HOME:   /usr/local/tomcat/apache-tomcat-7.0.42
  Using CATALINA_TMPDIR: /usr/local/tomcat/apache-tomcat-7.0.42/temp
  Using JRE_HOME:        /usr
  Using CLASSPATH:       /usr/local/tomcat/apache-tomcat-7.0.42/bin/bootstrap.jar:/usr/local/tomcat/apache-tomcat-7.0.42/bin/tomcat-juli.jar
  </code></pre>
  
  <p>And after type at browser <code>http://localhost:8080/Beer-v1/form.html</code> - I see:<br>
   <strong>HTTP Status 404 - /Beer-v1/form.html</strong>.</p>
  
  <p>I couldn’t figure out what is wrong.</p>
  
  <p><em><strong>Update:</em></strong></p>
  
  <p>Content of <code>catalina.out</code> - you can see <a href="http://pastebin.com/Mv4KSyt6" rel="nofollow">here</a><br>
  And <code>localhost.2013-09-12.log</code>:</p>
  
  <pre><code>Sep 12, 2013 9:17:26 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Sep 12, 2013 9:17:26 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Sep 12, 2013 9:17:27 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@d47feb3')
  Sep 12, 2013 9:17:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Sep 12, 2013 9:17:34 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Sep 12, 2013 9:17:35 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@27c76b8d')
  Sep 12, 2013 9:17:35 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextDestroyed()
  Sep 12, 2013 9:17:35 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextDestroyed()
  Sep 12, 2013 9:21:12 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Sep 12, 2013 9:21:12 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Sep 12, 2013 9:21:14 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@41fb43a2')
  Sep 12, 2013 9:21:17 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextDestroyed()
  Sep 12, 2013 9:21:17 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextDestroyed()
  Sep 12, 2013 9:30:38 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Sep 12, 2013 9:30:38 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Sep 12, 2013 9:30:38 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@30ce9337')
  Sep 12, 2013 9:30:39 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextDestroyed()
  Sep 12, 2013 9:30:39 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextDestroyed()
  Sep 12, 2013 9:44:30 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Sep 12, 2013 9:44:30 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Sep 12, 2013 9:44:30 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@357c4ab7')
  Sep 12, 2013 9:44:31 PM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextDestroyed()
  Sep 12, 2013 9:44:31 PM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextDestroyed()
  </code></pre>
  
  <p><em><strong>How to solve this trouble?</em></strong></p>