title: How do I get my Spring Aspect to kick in for a @Valid annotation on a service method?
body: <p>We're using Spring 3.2.11.RELEASE and Maven 3.0.3.  I'm trying to set up validation of a parameter being passed into a service method.  The method is below.  Notice the <code>@Valid</code> annotation.</p>
  
  <pre class="lang-java prettyprint-override"><code>package org.mainco.subco.mypck.service;
  
  @Service
  @RemoteProxy
  @Transactional
  public class MypckServiceImpl implements MypckService {
  
      @RemoteMethod
      @Override
      public String myMethod(@Valid final MyObjectDto request) {
          // ...
      }
  }
  </code></pre>
  
  <p>Here is the aspect I have set up to help validate the object:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Aspect
  @Component
  public class MyObjectValidatingAspect extends AbstractDWRAspectValidator&lt;MyObjectDto&gt;
  {
  
      @Before("execution(* org.mainco.subco.mypck.service.MypckService.myMethod(..))")
      public void validateBefore(JoinPoint jp) 
      {
          errors = new ArrayList&lt;String&gt;();
          final MyObjectDto request = validate(jp);
          validateMyObject(request);
          throwErrors();
      }   // validateBefore
  </code></pre>
  
  <p>This is in included in my application context file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;global-method-security pre-post-annotations="enabled"&gt;
  &lt;/global-method-security&gt;
  
  &lt;aop:aspectj-autoproxy/&gt; 
  </code></pre>
  
  <p>And this is what I've included in the Maven pom.xml file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>           &lt;dependency&gt;
                      &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                      &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
                      &lt;version&gt;1.8.2&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                      &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                      &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
                      &lt;version&gt;1.8.2&lt;/version&gt;
              &lt;/dependency&gt;
  </code></pre>
  
  <p>Unfortunately when the method is invoked, the aspectj's <code>validateBefore</code> is never called.  What else do I need to do so that this gets invoked?</p>