Please help! I am trying to use the AspectWerkz AOP with JBoss. Unfortunately, I have no success. Please note, that I success to run the example stand alone, but when I am trying to do the same thing in JBoss I have the following exception
java.lang.ClassNotFoundException: test.aop.LogAspect and the following AspectWerkz warning: loader: [EMAIL PROTECTED] aspectClassName: test.aop.LogAspect Warning: could not load aspect test.aop.LogAspect from [EMAIL PROTECTED] to: java.lang.ClassNotFoundException: test.aop.LogAspect java.lang.ClassNotFoundException: test.aop.LogAspect My steps: 1) Create aspect public class LogAspect { public Object aroundAdvice(JoinPoint joinPoint) throws Throwable { if (joinPoint == null) { return null; } MemberSignature signature = (MemberSignature)joinPoint.getSignature(); System.out.println("-->: " + joinPoint.getTargetClass().getName() + "::" + signature.getName()); try { return joinPoint.proceed(); } finally { System.out.println("<--: " + joinPoint.getTargetClass().getName() + "::" + signature.getName()); } } } 2) Create aop.xml ( created WITH < and /> characters ) aspectwerkz system id="AspectWerkzExample" package name="test.aop" aspect class="LogAspect" pointcut name="pc1" expression="execution(* est.aop.TestMe.foo*(..))" advice name="aroundAdvice" type="around" bind-to="pc1" aspect package system aspectwerkz 3) Create application public class TestMe1 { public void foo() { System.out.println("foo body"); } } 4) Offline weaving of application 5) Packing the aspect, application and aop.xml in the same EAR file 6) Deployed EAR 7) Calling to the foo method TestMe1 testMe = new TestMe1(); testMe.foo(); Please help! Best regards, Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854498#3854498 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854498 ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development