Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Aspectj LTW issue(Aspectj LTW issue)
Aspectj LTW issue [message #1006008] Tue, 29 January 2013 14:27 Go to next message
Prakash Rao is currently offline Prakash RaoFriend
Messages: 1
Registered: January 2013
Junior Member
I am trying to get aspectj ltw working in my app.

My app is structured like below

-- 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 project classes are not weaved.

Is there a solution to this w/o changing the war classloader mode to application?
Re: Aspectj LTW issue [message #1006126 is a reply to message #1006008] Wed, 30 January 2013 05:55 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
You would be better off sending your message to the aspectj users mailing list. You can subscribe to the list here:
Previous Topic:How do I run a binary woven project?
Next Topic:Elipse build output dir, wrong !
Goto Forum:

Current Time: Sun Feb 16 18:47:43 GMT 2020

Powered by FUDForum. Page generated in 0.03009 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top