title: Deploy and automatically compile servlet with tomcat7
body: <p>I'm having trouble getting a simple Java servlet to run under tomcat7 (fresh install from ubuntu repository).</p>
  
  <p>It is a single .java file with <code>@WebServlet("/TestServlet")</code>. I put it into <code>/var/lib/tomcat7/webapps/TestServlet/WEB-INF</code> and would like Tomcat to recognize and automatically compile it (also, when I change the source file). How do I set this up in a simple way?</p>