Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/513725/#msg_513725
was enabled - but when I started Eclipse I got the prompt, so I clicked to enable it and restarted. However, it prompted me again, so I clicked to enable again and restarted again, after which... well, you get the idea.
I can't seem to get JDT Weaving enabled. I've tried it through the prompt and through Preferences, restarting immediately or in a bit, uninstalling and reinstalling the AJDT/weaving plugins - nothing seems to help. Any ideas?]]>Graham Mitchell2010-02-10T23:41:52-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/515764/#msg_515764
I just installed the AspectJ Development Tools 2.0.2.e35x-20100105-0900 as
well as all "Other AJDT Tools" from AJDT Update Site - http://download.eclipse.org/tools/ajdt/35/update into my plain vanilla
3.5/Galileo and now I am getting these popup whenever I start eclipse. JDT
Weaving (in preferences) also remains "DISABLED".
Ideas welcome!
M.]]>Michael Moser2010-02-20T15:24:28-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/515883/#msg_515883
Graham Mitchell2010-02-22T02:02:26-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/600815/#msg_600815
Graham Mitchell2010-02-22T02:02:31-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/516651/#msg_516651
Apologies for the late reply here, but here are some things you can try:
1. Go to your plugin registry view.
2. Look for the org.eclipse.equinox.weaving.aspectj bundle.
3. Right click on it. Select "Enable advanced operations".
4. Right click again and select start (if it's not already started).
5. Go to the eclipse/configuration/config.ini file on your file system and open in a text editor.
6. Do you see a line that looks like osgi.framework.extensions=org.eclipse.equinox.weaving.hook?
7. If not, then add it.
8. Restart Eclipse.
Is JDT Weaving enabled? If not, then there is likely a conflict somewhere. Perhaps you have multiple versions of aspectj or equinox weaving installed. Try this:
1. Go to your plugin registry view.
2. Look for the org.aspectj.weaver bundle.
3. You should see only one installed.
4. Also look for this bundle: com.springsource.org.aspectj.weaver
5. Look for the org.eclipse.equinox.weaving.aspectj bundle. You should see only one.
6. Now if you've found any duplicates, you can remove them from your installation.
7. open in a text editor eclipse/configuration/org.eclipse.equinox.simpleconfigurator /bundles.info
8. make a backup of this file!
9. If you found any duplicate versions of bundles above, remove all but the newest.
10. If you've found com.springsource.org.aspectj.weaver, then remove all references to org.aspectj.weaver
11. Save and restart and re-enable JDT Weaving.
12. Working?
Hope this can help you. Please report back your findings.]]>Andrew Eisenberg2010-02-24T16:36:44-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/517172/#msg_517172
andrew@eisenberg.as> wrote in message
news:hm3kiu$ilu$1@build.eclipse.org...
> Hi,
>
> Apologies for the late reply here, but here are some things you can try:
>
> 1. Go to your plugin registry view. 2. Look for the
> org.eclipse.equinox.weaving.aspectj bundle. 3. Right click on it. Select
> "Enable advanced operations". 4. Right click again and select start (if
> it's not already started).
> 5. Go to the eclipse/configuration/config.ini file on your file system and
> open in a text editor.
> 6. Do you see a line that looks like
> osgi.framework.extensions=org.eclipse.equinox.weaving.hook? 7. If not,
> then add it.
> 8. Restart Eclipse. ...
> Hope this can help you. Please report back your findings.
The first section up to point 4 did it for me. It's now working. And, alas,
eclipse startup times have become substantially longer (maybe 2x compared to
before/). But according to the docs that was to be expected...
Thanks,
Michael]]>Michael Moser2010-02-26T13:23:18-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/517267/#msg_517267
Thanks for the help, in any case, and I'll keep this in mind if it starts happening again. Glad it worked for you, Michael.]]>Graham Mitchell2010-02-26T18:22:26-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/600853/#msg_600853
Thanks for the help, in any case, and I'll keep this in mind if it starts happening again. Glad it worked for you, Michael.]]>Graham Mitchell2010-02-26T18:22:29-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/518068/#msg_518068
I just spent a frustrating few hours seeing this behavior. But then I found out it was something really silly, so just in case this helps anyone I thought I would share it. When I started up eclipse, I had the -clean option specified, and I kept seeing exactly the behavior described above. When I turned this off, the problem went away. ]]>Sharon 2010-03-02T22:25:44-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/528998/#msg_528998
I'm experiencing intermittent behavior starting eclipse. I'm using STS 2.3.2 flavor.Sometimes it gets a loop asking if I want to turn weaving on. I say yes, restart and the dialog appears again. Adding the following to config.ini seems to fix it for a while.
But then it starts happening again. Looks like a timing issue to me. Where one plugin removes the reference and one adds it. I followed Andrew's suggestion "10. If you've found com.springsource.org.aspectj.weaver, then remove all references to org.aspectj.weaver". But on restart received errors related to methods defined in .aj files. Luckily I followed the directions and made a backup. Restoring the backup fixed the
errors.
It seems the question that needs answering surrounds what plugin are conflicting. Thoughts?
Thanks,
Steve]]>Steve Wall2010-04-22T14:58:27-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/529025/#msg_529025
Graham Mitchell2010-04-22T16:27:37-00:00Re: Eclipse asking over and over to enable JDT Weaving
https://www.eclipse.org/forums/index.php/mv/msg/162430/529053/#msg_529053
There are conflicts between org.aspectj.weaver and com.springsource.org.aspectj.weaver. The second one is only present if you are using STS. It is usually the case that when you enable JDT weaving all the steps above are done for you, but sometimes things don't work out well. This can be the case when there is an exception thrown on shutdown, preventing the IDEs state from being saved (the exception can be completely unrelated to AJDT).
It could be that when you disabled com.springsource.org.aspectj.weaver, org.aspectj.weaver was also disabled. And that is why you were seeing problems in your editor. It is sometimes hard to know exactly why this happened, but going through the manual steps to enable JDT weaving will fix things.]]>Andrew Eisenberg2010-04-22T18:17:56-00:00