[jboss-user] [JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader

2008-05-19 Thread shu_boston
Hi, Thank you very much for your help. I tried what you said in the topic you created, and I have bad news and good news :P Unfortunatelly, it still doens't work with 2.0.0 CR8, but I found it works with 1.5.6. When I override getResource(), my application is sometime required to load "Object.

[jboss-user] [JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader

2008-05-14 Thread shu_boston
Hi, I tried what you said, and got a series of stack traces as below. Line 44 of test.Main.main (Main.java) invokes test.Test.print(), and the last stack trace came from RuntimeException thrown by JBoss AOP. I'll try load-time weaving. Thanks for your advice! | java.lang.Exception | a

[jboss-user] [JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader

2008-05-12 Thread shu_boston
Oops, a XML tag was gone. I precompile Test class, where aspects are weaved, using aopc with View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150184#4150184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150184

[jboss-user] [JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader

2008-05-12 Thread shu_boston
Hi, I precompile Test class, where aspects are weaved, using aopc with . Is this load-time weaving? My classloader simply overrides findClass() to load class files as byte strings and call defineClass(), and I don't think getResource() is called. I tracked the error, and found ScopedClassPool

[jboss-user] [JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader

2008-05-12 Thread shu_boston
Flavia, I still have a problem. Revised code throws the following exception. My class loader loads the test.Test$JoinPoint_print4216308509294254048 class , but javassist cannot see it. I have no idea what's happening. Can you please help me out? | java.lang.RuntimeException: Error generating

[jboss-user] [JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader

2008-05-07 Thread shu_boston
Hi, I understand what was the problem. Thanks a lot for your quick response!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149203#4149203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149203

[jboss-user] [JBoss AOP] - Dynamic AOP and User-Defined Class Loader

2008-05-05 Thread shu_boston
Hi, I want to weave interceptors which loaded by a user-defined class loader (like NetworkClassLoader), but I got a javassist.NotFoundException. My code is as follows | ClassLoader loader = new ... // my class loader | Thread.currentThread().setContextClassLoader(loader); | Class clazz =

[jboss-user] [JBoss AOP] - Re: pointcut other than execution in AdviceBinding

2007-12-30 Thread shu_boston
Hi, Thank you very much for your quick reply. I understand the situation. I'm looking forward to the next version :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116140#4116140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss AOP] - pointcut other than execution in AdviceBinding

2007-12-27 Thread shu_boston
Hi, I'm start learning JBoss AOP, especially dynamic AOP. As an example says, I wrote code as follows and it worked fine. GreetingInterceptor is called when any method in Test class is executed. AdviceBinding binding = new AdviceBinding( "binding1", "execution(* *.Test->*(..))", null ); | bin