Skip to main content



      Home
Home » Language IDEs » AspectJ » Equinox Weaving & Indigo
Equinox Weaving & Indigo [message #687733] Thu, 23 June 2011 01:36 Go to next message
Eclipse UserFriend
After upgrading an RCP application from Helios to Indigo, I noticed that AspectJ advice is no longer being applied. The weaving is enabled with -Dosgi.framework.extensions=org.eclipse.equinox.weaving.hook. There is still a message like "[org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ..." on startup, but that's it; no errors. Anyone have success with Equinox Weaving in the Indigo release?
Re: Equinox Weaving & Indigo [message #687982 is a reply to message #687733] Thu, 23 June 2011 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Is the org.eclipse.equinox.weaving.aspectj bundle still being autostarted?

Go to configuration/org.eclipse.equinox.simpleconfigurator/bundles.info

Look for the org.eclipse.equinox.weaving.aspectj line and make sure that the line ends with 'true' not 'false'.

Of course, if you are using an RCP app, it may not use the simpleconfigurator to determine starting bundles. If that's the case, you will need to specify the auto startup for the bundle in your config.ini file. You can do this like so. In the osgi.bundles line of your config.ini, add this:
org.eclipse.equinox.weaving.aspectj@2\:start
Re: Equinox Weaving & Indigo [message #688003 is a reply to message #687982] Thu, 23 June 2011 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Andrew Eisenberg wrote on Thu, 23 June 2011 11:47
Is the org.eclipse.equinox.weaving.aspectj bundle still being autostarted?


I just verified that 3.7 works fine with http://download.eclipse.org/tools/ajdt/36/update/features/org.eclipse.contribution.weaving_2.1.2.e36x-20110307-1000.jar.

But it looks like the target platform can't find any of the org.eclipse.equinox.weaving.* bundles in http://download.eclipse.org/tools/ajdt/37/dev/update/features/org.eclipse.contribution.weaving_2.1.3.e37x-20110622-0800.jar.

Perhaps the problem is with the 1.0.0.HEAD version for the org.eclipse.equinox.weaving.sdk feature? http://download.eclipse.org/tools/ajdt/37/dev/update/features/org.eclipse.equinox.weaving.sdk_1.0.0.HEAD.jar is a 404...
Re: Equinox Weaving & Indigo [message #688056 is a reply to message #688003] Thu, 23 June 2011 15:25 Go to previous message
Eclipse UserFriend
Ahhh...thanks for catching that. I see what's happening now. The correct link is http://download.eclipse.org/tools/ajdt/37/dev/update/features/org.eclipse.equinox.weaving.sdk_1.0.000.HEAD.jar. The site.xml file is incorrect. The reason why I didn't catch this earlier is that I do not install the JDT weaving feature individually. It is always installed with the rest of AJDT, which is working right now.

I fixed the problem and I'm firing off a new build. The build service is acting a little wonky now, so the next build may not be available for a few hours.
Previous Topic:Indigo Release?
Next Topic:Can't get javax.swing.* and java.awt.* to weave
Goto Forum:
  


Current Time: Fri May 23 14:55:28 EDT 2025

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

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

Back to the top