2 Replies Latest reply on Dec 10, 2008 8:58 AM by gerix

    Dynamic AOP and SEAM

    gerix

      Hi,

      I have a problem with AOP on a webapp with SEAM POJO.

      I have

      java.lang.IllegalAccessException: Class org.jboss.seam.util.Reflections can not access a member of class fr.cpage.faces.test.web.pagebean.TogglePanelPage with modifiers "protected"


      I saw that SEAM intercept a call to "getCurrentAdvisor$aop" that is protected when trying to call a method in JSF EL.

      Is there a way to make it work ?

      Thanks :)

        • 1. Re: Dynamic AOP and SEAM
          kabirkhan

          In that case it is probably a problem on the Seam side of things. They should not be calling methods added by JBoss AOP. In AOP 2.0 we have made methods added by JBoss AOP volatile to make it easier for other projects such as Seam, web services etc. to ignore the methods introduced by JBoss AOP.

          • 2. Re: Dynamic AOP and SEAM
            gerix

            Thanks for response. After some search, I just add

            <attribute name="Instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</attribute>
            
            to jboss-service.xml and it works fine. :)