What is your App server ?
Where did you change the policy of the classloaders ?
 

Cordialement / Best regards

Jean-Louis Pasturel


  _____  

De : aspectj-users-boun...@eclipse.org
[mailto:aspectj-users-boun...@eclipse.org] De la part de Praks
Envoyé : mercredi 30 janvier 2013 15:32
À : aspectj-users@eclipse.org
Objet : [aspectj-users] Aspectj LTW issue


I am trying to get aspectj ltw working in my app.

My app is structured like below

Test
-- TestCommon
-- TestPersistence
-- TestWeb

where Test is the base EAR project.

I have created a simple logging aspect and placed it in TestCommon. The
aop.xml has been placed in TestCommon/Meta-Inf folder.

The problem is with the class loading policy of the app. By default the war
class loader policy is set to module. In this case the LTW doesnt seem to
work i.e the app doesnt seem to recognize the aspect and ltw doesnt work.

But if I change the war class loader policy to Application, then everything
works fine. 

What I understand is with module setting , there are 2 class loaders, one
for the application and one for the war. In this case the war classes are
not recognized. If I move the aop.xml to the web folder , then my other
classes in the other projects like TestCommon and TestPersistence are not
weaved.

Is there a solution to this issue without changing the war classloader mode
to application?
 
Please note that from the debug logs it looks like both the class-loaders
recognize the aspect and the aop.xml but only the web class loader does the
weaving while the app class loader does nothing .


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete 
altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages 
that have been modified, changed or falsified.
Thank you.

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to