title: How to deploy Java Webapp on Netbeans to AWS?
body: <p>I am developing a Java web application in <code>Netbeans IDE 7.1.1</code>. The IDE comes with pre-installed <code>Apache Tomcat 7.0</code>.  </p>
  
  <p>The folder structure in Netbeans looks like this</p>
  
  <p><img src="https://i.stack.imgur.com/6gAhh.jpg" alt="enter image description here"></p>
  
  <p>All the servlet are in <code>Source Packages</code> and have added two in <code>Libraries</code> - MySQL JDBC Driver and Apache Commons Collection in <code>Libraries</code> folder.</p>
  
  <p>Now I want to deploy this on <code>Amazon Web Services - Elastic Beanstalk'. The documentation of AWS Elastic Beanstalk (beta) says
  </code>Package your deployable code into a standard Java Web Application Archive (WAR file) and Upload your WAR file to Elastic Beanstalk using the AWS Management Console`</p>
  
  <p><strong>My Question</strong></p>
  
  <p>How to package my deployable code into <code>WAR file</code>?</p>