title: HTTP Status 404 on Struts project with tomcat
body: <p>I'm trying to follow <a href="https://examples.javacodegeeks.com/enterprise-java/struts-2/struts-2-helloworld-example/" rel="nofollow noreferrer">this</a> tutorial about how getting started to Struts.
  I followed the exact steps, but in the end I got this error <code>HTTP Status 404 - /Struts2-HelloWorldExample/</code></p>
  
  <p>I know 404 error means that I was able to communicate to the server, but server could not find what I requested. I suspected that there's something wrong with my library, but I couldn't find anything in the solution for the same problem.</p>
  
  <p><a href="https://i.stack.imgur.com/6lzMN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6lzMN.png" alt=""></a></p>
  
  <p>My java code:</p>
  
  <pre><code>package com.aziz;
  
  public class HelloWorldExample {
  
      private String name;
  
      public String execute() throws Exception {
          return "success";
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  }
  </code></pre>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app id="WebApp_ID" version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"&gt;
    &lt;display-name&gt;Struts 2 - Hello World Example&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>hello.jsp:</p>
  
  <pre><code>&lt;%@taglib prefix="s" uri="/struts-tags"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Hello World Example&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      Hello &lt;s:property value="name"/&gt;!
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>index.jsp:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Hello World Example&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Hello World Example&lt;/h1&gt;
      &lt;form action="hello"&gt;
          &lt;label for="name"&gt;Enter your name&lt;/label&gt;&lt;br/&gt;
          &lt;input type="text" name="name"/&gt;
          &lt;input type="submit" value="Submit"/&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>struts.xml:</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="default" namespace="/" extends="struts-default"&gt;
          &lt;action name="hello"
                  class="com.aziz.HelloWorldExample"&gt;
                  &lt;result name="success"&gt;hello.jsp&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>And I'm not sure what i'm doing is right or wrong but i just added manually struts library that i've downloaded from <a href="http://struts.apache.org/download.cgi#struts251" rel="nofollow noreferrer">here</a>(full distribution) in the WEB-INF/lib folder, so I have these JAR in that folder:</p>
  
  <p><a href="https://i.stack.imgur.com/XGx14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XGx14.png" alt=""></a></p>
  
  <p>And the last thing, I have no error but these warning on my markers:</p>
  
  <p><a href="https://i.stack.imgur.com/02uLm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/02uLm.png" alt=""></a></p>
  
  <p>I already checked this error, Idk what's that mean because when I see the solution, someone say i need to decide whether and which of the libraries to copy to the WAR in project Properties -> Java EE Module Dependencies. But in my project properties there's no such thing as Java EE Module Dependencies.
  I really need your help.
  Thanks in advance.</p>