title: The requested resource is not available in struts2 when action class is configured in struts.xml
body: <p>I've tried to create a new action class and add it to <code>struts.xml</code>, the action class successfully get compiled but when I run tomcat it shows The requested resource is not available 404 error on index page itself.</p>
  
  <p><strong>CreateUser.jsp</strong></p>
  
  <pre><code>&lt;s:form action = "CreateUserAction" &gt;
      &lt;s:textfield name = "name" label = "Name" /&gt;
      &lt;s:textfield name = "userName" label = "User Name" /&gt;
      &lt;s:submit value = "Register" /&gt;
  &lt;/s:form&gt;
  </code></pre>
  
  <p><strong>CreateUserAction.java</strong></p>
  
  <pre><code>public String execute() {
      setMessage("Hello " + getUserName());
      return "SUCCESS";
  }
  </code></pre>
  
  <p><strong>Struts.xml</strong></p>
  
  <pre><code>&lt;package name="default" extends="struts-default"&gt;
      &lt;action name="CreateUserAction" class="com.ecommerce.action.CreateUserAction"&gt;
      &lt;result name="SUCCESS"&gt;/success.jsp&lt;/result&gt;
      &lt;/action&gt;
  &lt;/package&gt;
  </code></pre>