Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] created the discussion
"Re: Error in deploying .aop file" To view the discussion, visit: http://community.jboss.org/message/583862#583862 -------------------------------------------------------------- 2 Problems: [kabir ~/Downloads] $unzip -l LoggingAspect.aop Archive: LoggingAspect.aop Length Date Time Name -------- ---- ---- ---- 0 01-27-11 12:16 META-INF/ 71 01-27-11 12:16 META-INF/MANIFEST.MF *3436644 08-19-08 07:44 jboss-aop-jdk50-single.jar* 0 01-27-11 11:50 classes/ 0 01-27-11 11:50 classes/org/ 0 01-27-11 11:50 classes/org/jboss/ 0 01-27-11 11:50 classes/org/jboss/soa/ 0 01-27-11 11:50 classes/org/jboss/soa/esb/ 0 01-27-11 11:50 classes/org/jboss/soa/esb/samples/ 0 01-27-11 11:50 classes/org/jboss/soa/esb/samples/quickstart/ 0 01-27-11 12:12 classes/org/jboss/soa/esb/samples/quickstart/helloworld/ 1184 01-27-11 12:12 classes/org/jboss/soa/esb/samples/quickstart/helloworld/LoggingAspect.class 577 01-27-11 11:50 META-INF/jboss-aop.xml -------- ------- 3438476 13 files 1) jboss-aop-jdk50-single.jar should NOT be bundled with your application [kabir ~/Downloads] $unzip -p LoggingAspect.aop META-INF/jboss-aop.xml <aop> <aspect class="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect"/> <!-- <bind pointcut="execution(raid.BankAccount->new(int))"> <around aspect="raid.RaidAspect" name="log"/> </bind> <bind pointcut="execution(void bank.BankAccount->*(int))"> <around aspect="raid.RaidAspect" name="log"/> </bind> --> <bind pointcut="execution(* org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction->*(..))"> <around aspect="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect" name="log"/> </bind> </aop> 2) For deployment in AS your xml must use aop beans namespace, e.g.: <?xml version="1.0" encoding="UTF-8"?> <aop *xmlns="urn:jboss:aop-beans:1.0"*> <aspect class="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect"/> <!-- <bind pointcut="execution(raid.BankAccount->new(int))"> <around aspect="raid.RaidAspect" name="log"/> </bind> <bind pointcut="execution(void bank.BankAccount->*(int))"> <around aspect="raid.RaidAspect" name="log"/> </bind> --> <bind pointcut="execution(* org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction->*(..))"> <around aspect="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect" name="log"/> </bind> </aop> -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/583862#583862] Start a new discussion in JBoss AOP at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
