[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Problem with annotation pointcut in WebSpere
|
- From: "Andrew Eisenberg" <andrew@xxxxxxxxxxxx>
- Date: Mon, 1 Dec 2008 08:19:57 -0800
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=cAopIzThwXpcx6zgjETlfTWXL8ISwNxtXdcKCJecqEc=; b=HrHg0nIeqXs+SS2uEgBiv/BSL0J0rs2IjhnMNkBJC3alS7BSIAf7gY6Rr+VQhtGKhB dGOzbSHyaCXgxGUCe1WmDEP55PZs9G9WT5jfJ00GOMEi6ojxTmhdcuQ7JQkz8olPFGwh /BA4FPeqvgqDRQr2dVYC0Qb/FtHcWhKK30S4o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=GnFbaQsJFKrOlZniFYqYDrHWSJZswK7rWcNb3JLApessL3sqJTTYxfy7xs4pAISYjL d2AQCgiemMtmZMqHCQmdd7bqPLxLL9zkgXuOOeQKInCPANx9lZ3xWrSa0p0SY6j9O074 3Ia82nDEFNCxs+uJA/lpeIRlwbvGu0dFfy74A=
A few suggestions:
1. Have you an up to date aspectjweaver.jar (for load time weaving)?
2. What happens if you change your pointcut to remove annotations
something like:
public pointcut timedExecution() : execution(* *());
Does this match anywhere in websphere?
3. Have you tried temporarily converting to compile time weaving to
see if you are weaving where you think you are?
On Mon, Dec 1, 2008 at 12:28 AM, <hermod.opstvedt@xxxxxxxxx> wrote:
> Hi
>
> Any suggestion about how I can get debug info about what might be going on with the annontations? A simple testcase I can run?
>
>
> Hermod
> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Hermod Opstvedt
> Sent: Wednesday, November 26, 2008 8:21 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: SV: [aspectj-users] Problem with annotation pointcut in WebSpere
>
> Hi
>
> Been there, done that - To no avail.
>
> Must be something else.
>
> Hermod
>
> -----Opprinnelig melding-----
> Fra: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] På vegne av Ramnivas Laddad
> Sendt: 26. november 2008 18:08
> Til: aspectj-users@xxxxxxxxxxx
> Emne: Re: [aspectj-users] Problem with annotation pointcut in WebSpere
>
> WebSphere ships with an older version of aspectjrt.jar (in the lib directory). I wonder if that is causing the problem. You may want to try replacing it with a newer version.
>
> -Ramnivas
>
> On Wed, Nov 26, 2008 at 2:47 AM, <hermod.opstvedt@xxxxxxxxx> wrote:
>> Hi
>>
>> I have an aspect that works just fine when run in a standalone test
>> (JDK 1.5), but fails to work when run under WebSphere 6.1 (Also JDK
>> 1.5)
>>
>> Timeable.java
>> @Retention(RetentionPolicy.RUNTIME)
>> @Documented
>> public @interface Timeable {
>>
>> }
>>
>> TimerAspect.aj:
>>
>> public aspect TimerAspect extends BaseAspect perthis(timedExecution())
>> {
>>
>> public pointcut timedExecution() : execution(@Timeable * *());
>>
>> before() : timedExecution() {
>> System.out.println("Before");
>> }
>>
>> before() : timedExecution() {
>> System.out.println("After");
>> }
>> }
>>
>> With -showWeaveInfo -verbose -debug I get in the log
>>
>> [ExtClassLoader@5d585d58] info successfully verified type
>> aa.bb.cc.TimerAspect exists. Originates from ....
>> [CompoundClassLoader@2f342f34] info register aspect
>> aa.bb.cc.TimerAspect
>>
>> So it is loading it, but it does never get applied any of the methods
>> I have annotated with @Timeable
>>
>> Anybody else had problems with this. Is there any other way I can out
>> info about what is failing.
>>
>> Hermod
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>> * * *
>>
>> This email with attachments is solely for the use of the individual or
>> entity to whom it is addressed. Please also be aware that the DnB NOR
>> Group cannot accept any payment orders or other legally binding
>> correspondence with customers as a part of an email.
>>
>> This email message has been virus checked by the anti virus programs
>> used in the DnB NOR Group.
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>> * * *
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that the DnB NOR Group
> cannot accept any payment orders or other legally binding correspondence with
> customers as a part of an email.
>
> This email message has been virus checked by the anti virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>