title: AOP on Spring Managed JSF beans
body: <p>I am trying to apply AOP on Spring managed JSF Beans, but for some reason as soon as I apply AOP JSF is throwing MethodNotFoundException.</p>
  
  <p>here is my code :
  <strong>Web.xml</strong></p>
  
  <pre><code>&lt;application&gt;
  &lt;default-render-kit-id&gt;org.apache.myfaces.trinidad.core&lt;/default-render-kit-id&gt;
  &lt;el-resolver&gt;org.springframework.web.jsf.el.SpringBeanFacesELResolver&lt;/el-resolver&gt;    
  &lt;/application&gt;
  </code></pre>
  
  <p><strong>applicationContext.xml</strong></p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:security="http://www.springframework.org/schema/security"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:aop="http://www.springframework.org/schema/aop"
   xmlns:tx="http://www.springframework.org/schema/tx"
   xsi:schemaLocation="http://www.springframework.org/schema/beans    
   http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
   http://www.springframework.org/schema/aop  
   http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
   http://www.springframework.org/schema/tx  
   http://www.springframework.org/schema/tx/spring-tx-3.2.xsd"&gt;
  
  &lt;aop:aspectj-autoproxy/&gt;
   &lt;bean id="loginAuditAspect" class="com.test.mobile.service.LoginAuditManagementAspect"&gt;
   &lt;constructor-arg index="0"&gt;
  &lt;list&gt;
  &lt;bean class="com.test.mobile.service.LoginAuditableResourceResolver" /&gt;
  &lt;bean class="com.test.mobile.service.LoggedInAuditableResourceResolver" /&gt;
  &lt;bean class="com.test.mobile.service.NavigationAuditableResourceResolver" /&gt;
  &lt;/list&gt;
  &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  
     &lt;bean id="loginService" class="com.test.mobile.service.MLoginServiceImpl" /&gt;  
     &lt;bean id="memberService" class="com.test.mobile.service.MMemberServiceImpl" 
           scope="session"&gt;
      &lt;property name="thpContext" ref="thpContext"&gt;&lt;/property&gt;
      &lt;/bean&gt; 
  
    &lt;bean id="mMemberProfileBean" class="com.test.mobile.service.MMemberProfileBean" 
          scope="session"&gt;
    &lt;property name="memberService" ref="memberService"&gt;&lt;/property&gt;
    &lt;/bean&gt;
  
    &lt;bean id="testBean" class="com.test.mobile.service.TestBean" scope="session"&gt;
    &lt;/bean&gt;
    &lt;/beans&gt;
  </code></pre>
  
  <p><strong>Backing Bean:</strong></p>
  
  <pre><code> public class TestBean extends BaseBackingBean {
     private static final long serialVersionUID = 1L; 
  
     @Auditable(resourceName="LoggedIn",      
   resourceResolverClass=com.test.mobile.service.LoggedInAuditableResourceResolver.class)
  public String getXxx() {
  
      return null;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Can someone help me in applying AOP logic on spring managed JSF beans</p>