Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RES: [aspectj-users] AspectJ with Servlets on Tomcat 5.x

Put the aspectjrt.jar on your WEB-INF/lib and the application will work fine.

 

And about ‘How does Tomcat know When he calls or uses these files?’:

When you weave your source with ajc(or some aspectj plugin), your advices implemented in yours aspects will be ‘inserted’ into your code ‘automatically’; after it, don’t worry about your binary files because they have ‘normal’ byte-codes.(you must only put the aspectjrt.jar in your classpath like mentioned before)

 

Regards,

Raphael Paiva

Fortaleza-Ceara-Brazil

 


De: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] Em nome de Jordi Cabré
Enviada em: segunda-feira, 21 de agosto de 2006 11:20
Para: aspectj-users@xxxxxxxxxxx
Assunto: Re: [aspectj-users] AspectJ with Servlets on Tomcat 5.x

 

Ok, thanks, I also thank it. But I supose that when you say <<"make sure you have aspectj on your classpath at runtime">>, you say me that I copy AspectJ jars file in my WEB-INF/lib app directory, no? What are these files? How does Tomcat know When he calls or uses these files?

Hello,
 my 2 cents here..... for applying aspect to your code (no matter if it is servlet, standalone, ejb or anything) you'd need to weave your cod ebefore you deploy it
also, make sure you have aspectj on your classpath at runtime (either in WEB-INF/lib or your appserver lib directories)

i m applying aspectj to Actions in my webapplication, that was all i needed to do.....


Back to the top