title: Spring AOP (Aspect) Not executing
body: <p>I ams using Spring 2.5.6, asm 1.5.3, aspectjrt/aspectjweaver 1.6.1, cglib 2.1_3
  In my Web based Spring application I have following class:</p>
  
  <pre><code>package uk.co.txttools.aspects;
  
  @Aspect
  public class LoggingAspect {
      @Before("execution(* uk.co.txttools.web.controller.compose.PreviewMessageController.set*(..))")
      public void setLoggingAdvice(){
          System.out.println("********************************* Advice run..... set mothod called....");
      }
  
      @AfterThrowing("execution(* uk.co.txttools.web.controller.compose.PreviewMessageController.onSubmit(..) throws java.lang.Exception)")
      public void hadleException(){
         System.out.println("================= PreviewMessageController =========== ON SUBMIT Exception Throwen ==================");
      }
  
      @Before("execution(* uk.co.txttools.web.controller.compose.PreviewMessageController.onSubmit(..) throws java.lang.Exception)")
      public void OnSubmitAspect(){
          System.out.println("================= PreviewMessageController =========== ON SUBMIT CALLED ==================");
      }
  }
  </code></pre>
  
  <p>I have one <code>Controller:uk.co.txttools.web.controller.compose.PreviewMessageController
  which has</code>onSubmit()<code>method, which get called from web page.
  I have separate</code>applicationContext.xml` file.</p>
  
  <p>My <code>springapp-servlet.xml</code>(which is used in web.xml file with org.springframework.web.servlet.DispatcherServlet) file looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:aop="http://www.springframework.org/schema/aop"
      xmlns:util="http://www.springframework.org/schema/util"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="
              http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
              http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
              http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
              http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"&gt;
  
  &lt;aop:aspectj-autoproxy proxy-target-class="true" /&gt;
  
  &lt;bean id="loggingAspect" class="uk.co.txttools.aspects.LoggingAspect" /&gt;
  .
  .
  </code></pre>
  
  <p>Below in same xml file <code>PreviewMessageController</code> get initialize which means my Controller and Aspect live is same container.</p>
  
  <p>I don't get any exception while running application but my aspect class <code>LoggingAspect</code> never get called.
  I'm not sure what is that missing or I'm doing wrong.
  Please help me..</p>
  
  <p>Thanks</p>