title: There is no action mapped etc.. In Struts 2
body: <p>Yet another question on this I know, but let me just say I looked everything else or about. So, I'm currently building the structure of my Struts 2 Project. I use Struts 2.3.4, JBoss 7.1 and Eclipse Indigo. I also included all the necessary jar into my project. The problem is when I run my application (Add project to Jboss, Run On Server) and go "<a href="http://localhost:8080/booxstore/" rel="nofollow noreferrer">http://localhost:8080/booxstore/</a>" I get this: </p>
  
  <pre><code>Etat HTTP 404 - There is no Action mapped for namespace [/] and action name [] associated with context path [/booxstore]
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/qRlM2.png" alt="Project"></p>
  
  <p>My web.xml</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;Booxstore&lt;/display-name&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;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>My 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="false" /&gt;
      &lt;package name="pages" namespace="/pages" extends="struts-default"&gt;
          &lt;action name="afficher" class="com.booxstore.controller.DisplayAction" &gt;
              &lt;result name="SUCCESS"&gt;/center.jsp&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
   &lt;/struts&gt;
  </code></pre>
  
  <p>My action :</p>
  
  <pre><code>/**
   * 
   */
  package com.booxstore.controller;
  
  import com.opensymphony.xwork2.Action;
  import com.opensymphony.xwork2.ActionSupport;
  
  public class DisplayAction extends ActionSupport {
  
      /**
       * 
       */
      private static final long serialVersionUID = 8199854978749642334L;
  
      public String execute() throws Exception{
          System.out.println("IN");
          return Action.SUCCESS;
      }
  }
  </code></pre>
  
  <p>My JSP just have plain text and have imported struts 2 tags. Basically no matter what I do I can't get a resource. If I go to "<a href="http://localhost:8080/booxstore/" rel="nofollow noreferrer">http://localhost:8080/booxstore/</a>" or "<a href="http://localhost:8080/booxstore/DisplayAction" rel="nofollow noreferrer">http://localhost:8080/booxstore/DisplayAction</a>" I get "There is no action mapped" and if I tried to access directly the jsp I get a 404. Please note my war is deployed and enabled on the server.</p>