title: Getting HTTP status 404 on deploying war on tomcat maven
body: <p>I am building a war file of open source android moteve video streaming project and deploying it to tomcat from my terminal using mvn tomcat:deploy command and on terminal it shows message build successful ,  but on going to  link it shows HTTP status-404 ,the requested resource (/motevwebapp/) is not available. I got stuck into this error and am not able to resolve it. Please someone help me. Thanks in advance.</p>
  
  <p>Here is my pom.xml </p>
  
  <pre><code>   &lt;project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
   &lt;parent&gt;
      &lt;groupId&gt;com.moteve&lt;/groupId&gt;
      &lt;artifactId&gt;moteve-server-parent&lt;/artifactId&gt;
      &lt;version&gt;${moteve-server-parent-version}&lt;/version&gt;
      &lt;relativePath&gt;../moteve-server-parent/pom.xml&lt;/relativePath&gt;
    &lt;/parent&gt;
   &lt;groupId&gt;com.moteve&lt;/groupId&gt;
    &lt;artifactId&gt;moteve-server-webapp&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;${moteve-server-webapp-version}&lt;/version&gt;
    &lt;name&gt;Moteve Web Application&lt;/name&gt;
    &lt;url&gt;http://moteve.com&lt;/url&gt;
   &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.moteve&lt;/groupId&gt;
        &lt;artifactId&gt;moteve-server-core&lt;/artifactId&gt;
        &lt;version&gt;${moteve-server-core-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;log4j&lt;/groupId&gt;
        &lt;artifactId&gt;log4j&lt;/artifactId&gt;
        &lt;version&gt;${log4j-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
        &lt;version&gt;${servlet-api-version}&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
        &lt;version&gt;${spring-webmvc-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;${junit-version}&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;finalName&gt;moteve-server-webapp&lt;/finalName&gt;
  &lt;plugins&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
              &lt;server&gt;myserver&lt;/server&gt;
              &lt;username&gt;admin&lt;/username&gt;
              &lt;password&gt;admin&lt;/password&gt;
   &lt;url&gt;http://localhost:8080/manager/text&lt;/url&gt;
  &lt;path&gt;/motevwebapp&lt;/path&gt; 
  
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>