title: struts2 on tomcat project shows blank page, using Fiddler shows 404 error
body: <p>my project is using Tomcat 7.0.</p>
  
  <p>The file structure is:</p>
  
  <blockquote>
    <p>Project</p>
    
    <p>-src</p>
    
    <p>--project package</p>
    
    <p>----LogInActon.java</p>
    
    <p>--struts.xml</p>
    
    <p>-WebContent</p>
    
    <p>--Web-INF</p>
    
    <p>----lib</p>
    
    <p>------...reference jars</p>
    
    <p>----Web.xml</p>
    
    <p>--index.jsp</p>
    
    <p>--LogInSuccess.jsp</p>
  </blockquote>
  
  <p>The struts.xml is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE struts PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
     "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;
  &lt;struts&gt;
  &lt;constant name="struts.devMode" value="true" /&gt;
     &lt;package name="homeLogin" extends="struts-default"&gt;
  
        &lt;action name="logIn" 
              class="com.myApp.system.main.actions.LogInAction" 
              method="execute"&gt;
              &lt;result name="success"&gt;/logInSuccess.jsp&lt;/result&gt;
              &lt;result name="fail"&gt;/index.jsp&lt;/result&gt;
        &lt;/action&gt;
     &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>the Web.xml is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;Welcome&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
     &lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
     &lt;/filter&gt;
  
     &lt;filter-mapping&gt;
        &lt;filter-name&gt;struts2&lt;/filter-name&gt;
        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
     &lt;/filter-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and the index.jsp (the default home page) is:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
     pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt;
     &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
  "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Welcome!&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
     &lt;h1&gt;Log in:&lt;/h1&gt;
     &lt;form action="logIn"&gt;
        &lt;label for="name"&gt;Please enter your name  &lt;/label&gt;
        &lt;!--&lt;s:textfield name="username" key="label.name1"/&gt;&lt;br/&gt;--&gt;
        &lt;s:textfield name="username"/&gt;&lt;br/&gt;&lt;br/&gt;
        &lt;label for="pw"&gt;Please enter your password    &lt;/label&gt;
        &lt;s:password name="pw"/&gt;&lt;br/&gt;&lt;br/&gt;
        &lt;s:submit value="Log In" align="left"/&gt;
     &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The project built successfully without error on Localhost, and totally work as expected; however when we deploy to an online server, it shows a blank page. Using Fiddler I see that the request header is:</p>
  
  <pre><code>GET /home HTTP/1.1
  Host: dev-dev1.wherego.ca
  User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-US,en;q=0.5
  Accept-Encoding: gzip, deflate
  Connection: keep-alive
  Cache-Control: max-age=0
  </code></pre>
  
  <p>and the response header is:</p>
  
  <pre><code>HTTP/1.1 404 Not Found
  Date: Thu, 28 Nov 2013 02:50:15 GMT
  Server: Apache-Coyote/1.1
  Content-Length: 0
  Connection: close
  Content-Type: text/plain; charset=UTF-8
  </code></pre>
  
  <p>is it any clue on debugging this??</p>