title: struts action is not taking the default method(execute) when i add struts2-rest-plugin in struts2+spring3 project
body: <p>i am trying to create a restful service using struts2. when i added the struts2-rest-plugin in the dependency struts action is not taking the default method(execute).It is looking for create() or index() methods .</p>
  
  <p><strong>struts2-convention-plugin and struts2-rest-plugin</strong></p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-convention-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
               &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
               &lt;artifactId&gt;struts2-rest-plugin&lt;/artifactId&gt;
               &lt;version&gt;${struts.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I have all these constants in <strong>struts.xml</strong></p>
  
  <pre><code>    &lt;constant name="struts.devMode" value="false" /&gt;
      &lt;constant name="struts.i18n.encoding" value="UTF-8" /&gt;
      &lt;constant name="struts.action.extension" value="action," /&gt;
      &lt;constant name="struts.objectFactory" value="spring" /&gt;
      &lt;constant name="struts.custom.i18n.resources" value="ApplicationResources,errors,global" /&gt;
      &lt;constant name="struts.multipart.maxSize" value="2097152" /&gt;
      &lt;constant name="struts.ui.theme" value="css_xhtml" /&gt;
      &lt;constant name="struts.codebehind.pathPrefix" value="/WEB-INF/pages/" /&gt;
      &lt;constant name="struts.enable.SlashesInActionNames" value="true" /&gt;
      &lt;constant name="struts.convention.action.disableScanning" value="true" /&gt;
      &lt;constant name="struts.mapper.alwaysSelectFullNamespace" value="false" /&gt;
     &lt;constant name="struts.convention.package.locators" value="controller"/&gt; 
     &lt;constant name="struts.convention.action.suffix" value="Controller"/&gt; 
     &lt;constant name="struts.convention.action.mapAllMatches" value="false"/&gt;
     &lt;constant name="struts.convention.default.parent.package" value="rest-default"/&gt;
  </code></pre>
  
  <p>I am getting the error when i execute the web project</p>
  
  <pre><code>ERROR [tomcat-http--34] Dispatcher.error(38) | Exception occurred during processing request: com.vxl.appanalytix.webapp.action.LoginAction.create()
  java.lang.NoSuchMethodException: com.vxl.appanalytix.webapp.action.LoginAction.create()
      at java.lang.Class.getMethod(Class.java:1655)
      at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
      at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
      at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
      at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
      at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
      at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  </code></pre>
  
  <p>my project has spring for dependency management, insted of using the spring MCV we planned for using struts2.I tried to use spring restful service but I was getting some dispacher error so i moved to struts2-rest-plugin. here the controller class i implemented as a service has methods like index() and create() for HTTP GET and PUT respectivelly. how exactly the rest plugin works. </p>