[jboss-user] [JBoss AOP] - Enable to run an exemple

aquatr7 do-not-reply at jboss.com
Wed Oct 22 17:41:41 EDT 2008

I run your exemple dynamic-aop under eclipse and it works well. Then I had modified the name of the class "POJO" to "Hello" (also I updated references and in the jboss-aop.xml file) but it doesn't work and it displays the following error for "Advised advised = (Advised)pojo;".
anonymous wrote : --- new POJO(); ---
  | in empty constructor
  | --- adding instance interceptors ---Exception in thread "main" java.lang.ClassCastException: HelloWorld
  | 	at Driver.execute(Driver.java:43)
  | 	at Driver.main(Driver.java:32)
Thank you.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183996#4183996

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183996

More information about the jboss-user mailing list