title: How to deploy war file in tomcat7 ubuntu 12.0.4 server
body: <p>I need to deploy war file in tomcat7..
  What I have done so far is
  1. Installed Tomcat7 - up and running. Able to see index page 
  2. Installed apache2 - up and running. successfully redirects 80 to 8080 port of tomcat. 'All' requests are redirected to tomcat. 
  3. Now I need to deploy war file.</p>
  
  <pre><code>/var/lib/tomcat7/
  ├── common
  │   └── classes
  ├── conf -&gt; /etc/tomcat7
  ├── logs -&gt; ../../log/tomcat7
  ├── server
  │   └── classes
  ├── shared
  │   └── classes
  ├── webapps
  │   ├── mycompany.war
  │   └── ROOT
  │       ├── index.html
  │       └── META-INF
  │           └── context.xml
  └── work -&gt; ../../cache/tomcat7
  
  /etc/tomcat7/
  ├── Catalina
  │   └── localhost
  ├── catalina.properties
  ├── context.xml
  ├── logging.properties
  ├── policy.d
  │   ├── 01system.policy
  │   ├── 02debian.policy
  │   ├── 03catalina.policy
  │   ├── 04webapps.policy
  │   └── 50local.policy
  ├── server.xml
  ├── tomcat-users.xml
  └── web.xml
  
  /usr/share/tomcat7/
  ├── bin
  │   ├── bootstrap.jar
  │   ├── catalina.sh
  │   ├── catalina-tasks.xml
  │   ├── configtest.sh
  │   ├── daemon.sh
  │   ├── digest.sh
  │   ├── setclasspath.sh
  │   ├── shutdown.sh
  │   ├── startup.sh
  │   ├── tomcat-juli.jar -&gt; ../../java/tomcat-juli.jar
  │   ├── tool-wrapper.sh
  │   └── version.sh
  ├── conf -&gt; /var/lib/tomcat7/conf
  ├── defaults.md5sum
  ├── defaults.template
  ├── lib
  │   ├── annotations-api.jar -&gt; ../../java/tomcat-annotations-api-7.0.26.jar
  │   ├── catalina-ant.jar -&gt; ../../java/catalina-ant-7.0.26.jar
  │   ├── catalina-ha.jar -&gt; ../../java/tomcat-catalina-ha-7.0.26.jar
  │   ├── catalina.jar -&gt; ../../java/tomcat-catalina-7.0.26.jar
  │   ├── catalina-tribes.jar -&gt; ../../java/catalina-tribes-7.0.26.jar
  │   ├── commons-dbcp.jar -&gt; ../../java/commons-dbcp.jar
  │   ├── commons-pool.jar -&gt; ../../java/commons-pool.jar
  │   ├── el-api.jar -&gt; ../../java/tomcat-el-api-2.2.jar
  │   ├── jasper-el.jar -&gt; ../../java/tomcat-jasper-el-7.0.26.jar
  │   ├── jasper.jar -&gt; ../../java/tomcat-jasper-7.0.26.jar
  │   ├── jsp-api.jar -&gt; ../../java/tomcat-jsp-api-2.2.jar
  │   ├── servlet-api.jar -&gt; ../../java/tomcat-servlet-api-3.0.jar
  │   ├── tomcat-api.jar -&gt; ../../java/tomcat-api-7.0.26.jar
  │   ├── tomcat-coyote.jar -&gt; ../../java/tomcat-coyote-7.0.26.jar
  │   ├── tomcat-i18n-es.jar -&gt; ../../java/tomcat-i18n-es-7.0.26.jar
  │   ├── tomcat-i18n-fr.jar -&gt; ../../java/tomcat-i18n-fr-7.0.26.jar
  │   ├── tomcat-i18n-ja.jar -&gt; ../../java/tomcat-i18n-ja-7.0.26.jar
  │   └── tomcat-util.jar -&gt; ../../java/tomcat-util-7.0.26.jar
  └── webapps -&gt; /var/lib/tomcat7/webapps
  </code></pre>
  
  <p>my war is not detected nor expanded. No logs.. No 'mycompany' directory created.</p>
  
  <p>I checked my server.xml below is the code</p>
  
  <pre><code> &lt;Host name="localhost"  appBase="webapps"
          unpackWARs="true" autoDeploy="true"&gt; 
  </code></pre>
  
  <p>Do I miss something... Why tomcat is not taking the deployed war file ???? </p>