title: There is no Action mapped for namespace [/] and action name [CheckLogin] associated with context path []
body: <p>I am getting an error when trying to deploy my application using ant.  When i run the application from intellij it deploys and runs correctly.  However, when I build and deploy using ant I am getting the error:</p>
  
  <pre><code>There is no Action mapped for namespace [/] and action name [CheckLogin] associated with context path [].
  </code></pre>
  
  <p>I have included my ant build.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project name="cars" default="all"&gt;
    &lt;property file="build.properties"/&gt;
    &lt;property name="dist.dir" location="${basedir}/dist"/&gt;
      &lt;property name="tomcat.deploydir" location="/Users/bernardoneill/apache-tomcat-7.0.32/webapps"/&gt;
  
      &lt;target name="init" description="Build initialization"/&gt;
  
  
      &lt;target name="setup"&gt;
          &lt;mkdir dir="dist" /&gt;
          &lt;echo&gt;Copying web into dist&lt;/echo&gt;
          &lt;copydir dest="dist/web" src="web" /&gt;
          &lt;copydir dest="dist/web/WEB-INF/lib" src="${basedir}/web/WEB-INF" /&gt;
          &lt;copydir dest="dist/web/WEB-INF/lib" src="${basedir}/lib" /&gt;
  
      &lt;/target&gt;
  
      &lt;target name="compile"&gt;
          &lt;delete dir="${dist.dir}/web/WEB-INF/classes" /&gt;
          &lt;mkdir dir="${dist.dir}/web/WEB-INF/classes" /&gt;
          &lt;javac destdir="${dist.dir}/web/WEB-INF/classes" srcdir="${basedir}/src"&gt;
              &lt;classpath&gt;
                  &lt;fileset dir="${basedir}/web/WEB-INF"&gt;
                      &lt;include name="*" /&gt;
                  &lt;/fileset&gt;
              &lt;/classpath&gt;
              &lt;classpath&gt;
                  &lt;fileset dir="${basedir}/lib"&gt;
                      &lt;include name="*" /&gt;
                  &lt;/fileset&gt;
              &lt;/classpath&gt;
          &lt;/javac&gt;
          &lt;copy todir="${dist.dir}/web/WEB-INF"&gt;
              &lt;fileset dir="src"&gt;
                  &lt;include name="**/*.properties" /&gt;
                  &lt;include name="**/*.xml" /&gt;
              &lt;/fileset&gt;
          &lt;/copy&gt;
      &lt;/target&gt;
  
      &lt;target name="buildwar"&gt;
          &lt;war basedir="${basedir}/dist/web" destfile="ROOT.war"
               webxml="${basedir}/dist/web/WEB-INF/web.xml"&gt;
              &lt;exclude name="WEB-INF/**" /&gt;
              &lt;webinf dir="${basedir}/dist/web/WEB-INF/"&gt;
                  &lt;include name="**/*.jar" /&gt;
              &lt;/webinf&gt;
          &lt;/war&gt;
      &lt;/target&gt;
  
      &lt;target name="deploy"&gt;
          &lt;copy file="ROOT.war" todir="${tomcat.deploydir}" /&gt;
      &lt;/target&gt;
  
      &lt;target name="all" depends="setup,compile,buildwar,deploy"&gt;&lt;/target&gt;
  &lt;/project&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.3//EN"
          "http://struts.apache.org/dtds/struts-2.3.dtd"&gt;
  
  &lt;struts&gt;
      &lt;package name="Cars" extends="struts-default" namespace="/"&gt;
          &lt;action name="login"&gt;
              &lt;result&gt;/index.jsp&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="CheckLogin" class="main.model.LoginResult"&gt;
              &lt;result name="SUCCESS" type="chain"&gt;loadCars&lt;/result&gt;
              &lt;result name="ERROR"&gt;/index.jsp&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="carList"&gt;
              &lt;result&gt;/HelloWorld.jsp&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="manageUsers"&gt;
              &lt;result&gt;/ManageUsers.jsp&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="loadCars" class="main.action.CarAction" method="execute"&gt;
              &lt;result name="success" type="chain"&gt;selectCar&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="selectCar"&gt;
              &lt;result name="success"&gt;/selectCar.jsp&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="hello" class="main.action.HelloWorldAction" method="execute"&gt;
              &lt;result name="success"&gt;/HelloWorld.jsp&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="add"
                  class="main.action.UserAction" method="add"&gt;
              &lt;result name="success" type="chain"&gt;manageUsers&lt;/result&gt;
              &lt;result name="input" type="chain"&gt;manageUsers&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="delete"
                  class="main.action.UserAction" method="delete"&gt;
              &lt;result name="success" type="chain"&gt;manageUsers&lt;/result&gt;
          &lt;/action&gt;
  
          &lt;action name="addCar"
                  class="main.action.CarAction" method="add"&gt;
              &lt;result name="success" type="chain"&gt;selectCar&lt;/result&gt;
              &lt;result name="input" type="chain"&gt;selectCar&lt;/result&gt;
          &lt;/action&gt;
          &lt;action name="deleteCar"
                  class="main.action.CarAction" method="delete"&gt;
              &lt;result name="success" type="chain"&gt;selectCar&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>Also, here are some of my logs...</p>
  
  <pre><code>Nov 12, 2012 11:25:44 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 10215 ms
  Nov 12, 2012 11:25:47 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
  WARNING: No configuration found for the specified action: 'CheckLogin' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
  Nov 12, 2012 11:25:48 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
  WARNING: No configuration found for the specified action: 'CheckLogin' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
  Nov 12, 2012 11:25:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
  WARNING: Could not find action or result
  There is no Action mapped for namespace [/] and action name [CheckLogin] associated with context path []. - [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:39)
      at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
      at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:680)
  Nov 12, 2012 11:28:57 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
  WARNING: No configuration found for the specified action: 'CheckLogin' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
  Nov 12, 2012 11:28:58 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
  WARNING: No configuration found for the specified action: 'CheckLogin' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
  Nov 12, 2012 11:29:00 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
  WARNING: Could not find action or result
  There is no Action mapped for namespace [/] and action name [CheckLogin] associated with context path []. - [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:39)
      at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
      at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:680)
  </code></pre>