title: can't change or add action in struts2
body: <p>i am having a problem with struts i've been working with struts with more than 4 month now
  the problem is when i add a new action i get this:</p>
  
  <p><a href="https://i.stack.imgur.com/QWoig.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QWoig.png" alt="enter image description here"></a></p>
  
  <p>the previous actions work fine but when i modify the name of the action in struts.xml i get the error i mention above.
  so for example i have the following code in struts.xml</p>
  
  <pre><code>&lt;action name="test1" class="com.onda.beans.AfficheVolList"&gt;
              &lt;result name="success"&gt;table_vols_test_css.jsp&lt;/result&gt;
              &lt;result name="fail"&gt;admin.jsp&lt;/result&gt;
          &lt;/action&gt;
  </code></pre>
  
  <p>when i enter <a href="http://localhost:8080/Myproject/test1" rel="nofollow noreferrer">http://localhost:8080/Myproject/test1</a> it works fine 
  but after i change the name of the action  </p>
  
  <pre><code> &lt;action name="test2" class="com.onda.beans.AfficheVolList"&gt;
                  &lt;result name="success"&gt;table_vols_test_css.jsp&lt;/result&gt;
                  &lt;result name="fail"&gt;admin.jsp&lt;/result&gt;
              &lt;/action&gt;
  </code></pre>
  
  <p>and i try to enter localhost:8080/Myproject/test2
  i got the error in the previous image it doesn't even take me to admin.jsp</p>
  
  <p>i tried to clean the server and clean work directory but nothing work i even changed the server it works for the first time but after i change the name of the action it doesn't work
  here is the log </p>
  
  <pre><code>`Jun 01, 2016 12:24:58 PM org.apache.struts2.dispatcher.Dispatcher error
  SEVERE: Could not find action or result
  /Onda_vol/vols2
  There is no Action mapped for namespace [/] and action name [vols2] associated with context path [/Onda_vol]. - [unknown location]
      at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
      at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
      at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
      at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:554)
      at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)`
  </code></pre>
  
  <p>thank you for taking time to answer my question i really appreciate it </p>