Folks!
I've been strugling for two days now, and I find no way of making this work:

A simple web-app with spring-beans. So far, all fine. Ok, so I want to add some 
advices to some of my spring-beans. Trouble. Ok, I could use spring-aop, but I 
really want to use Jboss-aop, wich I find much more competent.

What really puzzles me it the classloading stuff. In all tutorials of 
jboss-aop, it says that I could basically drop a xxx-aop.xml in my deploy. 
(after enabling load-time-weaving in AspectManager). After that I deploy my 
war. That really doesn't do it for me...

So I build an ear, with:

/META-INF/application.xml
some.aop
 . . |
    /META-INF/jboss-aop.xml
    /META-INF/lib/3pp.jar       //spring, log4j etc
   /mypackage/myClass.class   //my own stuff, incl. my aspects,servlets
some.war
 . . |
    index.jsp
    /META-INF/web.xml & jboss.xml
    /META-INF/lib/3pp.jar       //spring, log4j etc
   /mypackage/myClass.class   //my own stuff, incl. my aspects,servlets


so I realize I have duplicated my 3pp's and own stuff. But really, I've tried 
all combinations of this, and I just can't seem to make it work in all cases, 
and it seems to me that either no weaving takes place, or if it does, I get in 
trouble when 3pp's are loaded: javassist.NotFound

Does Spring have its own classloading mechanisms that conflicts with jboss-aop?

Anyone that could point out a good resource for reading exactly how to package 
complex builds, how to use the manifest:class-path etc??

regards
/Marcus

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

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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to