Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] I had a problem please help me

Actually, a non-privileged aspect is allowed to advise non-public methods
and fields. It can't call or access them: for that you would need a
privileged aspect. We use non-privileged aspects that advise non-public
methods extensively in Glassbox.

 

Vasumathi, I'd be interested to know where you put the compiled aspect and
aspectjrt.jar for this application: is it in WEB-INF/lib? Are you using
compile-time or load-time weaving?

 

  _____  

From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Ron DiFrango
Sent: Wednesday, May 02, 2007 7:51 AM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] I had a problem please help me

 

I think your aspect needs to be marked as privileged access the protected
method.  

 

privileged aspect Hello { .... }

 

See the following:

 

 
<http://www.eclipse.org/aspectj/doc/released/progguide/semantics-aspects.htm
l>
http://www.eclipse.org/aspectj/doc/released/progguide/semantics-aspects.html

 

Ron DiFrango
Senior Consultant

 

  _____  

From: aspectj-users-bounces@xxxxxxxxxxx on behalf of
vasumathi.guduru@xxxxxxxx
Sent: Wed 5/2/2007 9:55 AM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] I had a problem please help me

Yes I have

Vasumathi

> Do you have aspectjrt.jar on the classpath?
>
> Yawn !!
>
> ----- Original Message ----
> From: "vasumathi.guduru@xxxxxxxx" <vasumathi.guduru@xxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx; aspectj-dev@xxxxxxxxxxx
> Sent: Monday, April 30, 2007 10:29:18 PM
> Subject: [aspectj-users] I had a problem please help me
>
> Hello Guyz,
>
> I am working on WebGoat(web application) project as of my research work. I
> am trying to write some aspects to improve the security of the Webgoat
> aplication.
>
> I wrote a simple aspect to say hello when a servlets doPost() is called.
> But I am AspectNotBoundException. I don't have any idea, why it is coming
> and how can solve that.
>
> I did deploy the project as it was mentioned in the aspectJ cook book.
>
> Please help me.
> Thank you,
> Vasumathi.
>
>
>
> _______________________________________________
> 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

<<attachment: winmail.dat>>


Back to the top