[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [aspectj-users] AspectJ loadtime weaving limitation - Aspectwerkzsolution - Tomcat
- From: "Tatta, Sunder" <statta@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Oct 2009 18:56:50 -0400
- Delivered-to: email@example.com
- Thread-index: AcpB9Kd3BRFCV8iTTA+I8lgnaZI7tgBvkqSw
- Thread-topic: [aspectj-users] AspectJ loadtime weaving limitation - Aspectwerkzsolution - Tomcat
Sweet! Thanks Andy. The latest version seems to work. But, to weave
private/final methods, I had to put the aspect class in the same package
as that of the class whose private/final methods are being weaved.
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Andy Clement
Sent: Wednesday, September 30, 2009 1:36 PM
Subject: Re: [aspectj-users] AspectJ loadtime weaving limitation -
Aspectwerkzsolution - Tomcat
Have you tried a recent version of AspectJ? I believe this should be
working but I'm not an expert on classloaders and weavers in tomcat.
2009/9/29 Tatta, Sunder <statta@xxxxxxxxxxxxxxxxxxxxx>:
> There was a particular scenario where we saw the need to use AOP load
> time weaving but we could not accomplish what we wanted using AspectJ
> were forced to resort to AspectWerkz.
> We needed to apply an aspect around a method that was within a jar
> file. The caller to that method was a method from another class within
> the same (or a
> different) jar file.
> The application was deployed on a Tomcat Server and we used
> Aspectj(agent) to load the Tomcat container . The jar file (where we
> wanted the aspect to
> exist) of an application deployed onto the Tomcat Server was loaded
> via JarClassLoaded (Tomcat default behavior). The "aspecting" wasn't
> working but when the method in the jar was being called directly from
> any of the classes in the application (loaded by WebappClassLoader),
> "aspecting" worked as expected.
> We were able to overcome that limitation when we used AspectWerkz (I
> heard it hooks to all the existing class loaders except for
> Would this issue get resolved in future versions of AspectJ as it is
> collaborating with AspectWerkz?
> aspectj-users mailing list
aspectj-users mailing list