- This topic has 15 replies, 4 voices, and was last updated 15 years, 7 months ago by support-joy.
-
AuthorPosts
-
ethutchMemberI am just trying to incorporate AspectJ into my project, well actually right now it would be more accurate to say I’m trying to incorporate it into my brain. Regardless, I enabled AspectJ for my project and it seems to have sort of worked. I’m not certain what all I should see, but I’m pretty sure I shouldn’t see this:
Every time I start Myeclipse (7.1.1 Build 7.1.1-20090310) now, I get a message box that starts out:
“Should AJDT’s weaving service be enabled? (Requires restart)”
….
it goes on toe explain how the weaving service enables more advanced AJDT etc. Since I really don’t know what I’m doing with AspectJ, this all sounds like a good idea.But if I say “YES” and restart. It just prompts again (and again and again). In fact it produces this message box every time I restart Myeclispe period.
I can’t say if the weaving service is really enabled since I don’t know what it “should” look like. There seems to be some context assist going on, but I suspect “weaving” would give more.
Any help getting this fixed would be greatly appreciated.
support-joyMemberI am not familiar with AspectJ. I will get a dev member to assist you on this. Sorry for the inconvinience.
Loyal WaterMemberMoving to Off Topic >> Software Development.
ethutchMemberThere doesn’t seem to be an actual problem reporting and tracking facility beyond these forums.
Please explain your reasoning or better yet give a status on this problem.
My question can be summed up as:
“Why did the most current release of your product cause this problem? Is it a bug? Can it be fixed?”That seems EXACTLY like “Installation, Configuration & Updates”. I looked at this forum and intentionally did not post here because this seems to be more of “how to” questions. Although I will admit it does get a fair bit of configuration questions. Still “Nonsensical message every single time I start Myeclipse” seems fundamentally different from “how do I configure a data source etc”.
I am also less than impressed that you don’t even imply that you will look into the problem.
Is there an official status?
Can you reproduce the problem?
Do you acknowledge it is a problem?
Is there some better way to raise a formal support issue?
Or are you just throwing this out to the community for me to hope for the best?
Loyal WaterMemberI’m sorry for pre-maturely moving the post to Off-Topic. Can you tell me what would be the easiest way to try and reproduce this at our end so that I can see the issue since I’m not familiar with AspectJ.
ethutchMemberWhen I right click on any project in my workspace (note that they are all Java projects, as opposed to web service etc, I get the normal context menu. The next to last item, between PDE Tools and Properties, is AspectJ Tools. This is a fly out menu with a single choice on it: “Convert to AspectJ Project”.
To start trying to learn AspectJ, I created a new Java Project and chose the above action. It seems to work OK. When I define an Aspect and run the main() method (Java Application) from MyEclipse the Aspect fires and it prints out just like the tutorial says it will.
The only problem is the above stated issues with this “enable weaving” message box as described in my first post.
…
Now all that said I was just telling a co-worker and he pointed out he didn’t have AspectJ. So there has been a LONG pause in completing this post as I rechecked my tracks. And bluntly I told a lie about MyEclipse. We got very busy and I had to just endure the error for the last few weeks. But going over everything, it seems AspectJ does NOT ship with MyEclipse. I installed it from the Eclipse web site. I really can’t say I remember doing that, but firefox remembers I was there: http://www.eclipse.org/aspectj/
So does that mean you don’t support this? That seems way more reasonable if indeed you do not ship it with ME 7.1 as I thought. If you don’t support it I will try and get support over at their project site.
ethutchMemberAfter more research I found discussion of this bug:
“it is currently only possible to install AJDT with JDT weaving in the same directory that Eclipse itself is installed in”:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257178I think maybe this is what I’m experiencing. However, I don’t even understand enough about eclipse plug-in development to know for sure that this is the problem. I did investigate some of the stuff they talk about, but thus far my settings appear to be what they recommend. Currently I’m thinking I may need to do a manual install which I haven’t tried yet. They discuss that here:
http://wiki.eclipse.org/JDT_weaving_featuresSince you guys’ product is MyEclipse, I suspect you are experts at all this. So if you could take a look and give me your opinion I’d really appreciate it.
support-joyMemberI will have a dev member take a look at the links you have provided and get back to you. I was doing research on my own over the net and found that AspectJ is indeed a plugin. MyEclipse doesn’t provide an integrated support for AspectJ. I will get back to you with the findings of the dev team. I would also request you to keep searching over the net and cross post your queries to eclipse forums as well as AspectJ forums.
ethutchMemberIt appears I have this working now.
For those like me who are maddened by posts like that here is what I did
ref: http://wiki.eclipse.org/JDT_weaving_features
(Turning on JDT Weaving manually)THIS DID NOT WORK
Simple way (try this first):1. In Eclipse open up the plug-in registry view.
2. Look for org.eclipse.equinox.weaving.aspectj
3. Right click and select “Show Advanced operations”
4. Right click again and select start (if not already started)
5. Restart————–
THIS DID NOT WORK BECAUSE ME 7.1 DOES NOT HAVE THE REFERENCED FILEIf JDT Weaving still does not start, then try the following:
1. Find the eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info file and open it in a text editor
2. Find the line that says:org.eclipse.equinox.weaving.aspectj
1. Change false to true
2. Save and start Eclipse————–
THIS I WAS ABLE TO MAKE IT WORK
Or you can try this:1. Find the eclipse/configuration/config.ini file and open in a text editor
2. Ensure that the line: osgi.framework.extensions=org.eclipse.equinox.weaving.hook is present
3. On the line that starts osgi.bundles= after the ‘=’, insert the textorg.eclipse.equinox.weaving.aspectj@2\:start,
The above is nearly right. The syntax is technically wrong but it’s easy enough to work out what it should be
Rather than blindly pasting in the text as they say, you have to actually change the beginning of the line to read:
osgi.bundles=reference\:file\:org.eclipse.equinox.weaving.aspectj@2\:start,Note that their example leaves out the rather obvious “reference\:file\:” part.
I did put this as the very first parameter as they suggest and I no longer get the annoying message about enabling AspectJ weaving every time I start ME.
Some reading shows that this weaving makes the plugin more ITD-aware. Which is conveniently not defined anywhere. ITD is InterType Declare. This means:
Intertype declared methods, fields, and constructors are now available in content assist.I can’t swear to that working as I have such a limited set of aspects. But weaving also says it adds:
Ability to search for aspect elements using standard Java search and Open Java typeAnd that seems to work. So I would say you can get AspectJ weaving to work on a typical MyEclipse 7.1 install by following option 3 above.
Probably one day I’ll reread this post and say “Damn I was stupid back then”. But for now this all seems like it could be really helpful.
Enjoy.
support-joyMemberGood to hear that you have everything under control. And thank you for posting the resolution.
rgaussMemberI followed all these steps and still get the enable weaving message and the JDT preference pane shows it disabled.
Once again another failed attempt and wasted hours trying to get the latest version of MyEclipse working and have to revert to my working eclipse 3.1 and MyEclipse 6 install.
When will I be able to download MyEclipse and be running in minutes instead of digging through forums and editing text files? Isn’t that what I’m paying for?
support-joyMemberrgauss,
Sorry to hear you are running into this issue. Can you answer few questions for me to determine your current configuration and root cause –
1. Can you copy and paste your installation detail? You can get it from MyEclipse > Installation Summary > Installation Detail.
2. How did you install MyEclipse? using all-in-one installer/ using pulse/ installing Eclipse classic 3.4.1 and adding MyEclipse as a plugin?
3. Do you have any 3rd party plugins installed? You can get them from Help > Software Updates > Add/Remove Software. Can you list them here for me?
4. Can you document the steps to reproduce this error? Be as detailed as possible. This will help me in reproducing this issue at my end.Sorry for the inconvinience.
rgaussMember1) I’ve wiped out that installation so no, but it should be easy to reproduce.
2) The all in one installer
3) At the time I did not
4-1) Downloaded the 7.1 installer
4-2) I was presented with the updates/install screen which shows 2 identically entries for Pulse (I tried each and both, wiping the install between each time).
4-3) Restarted Eclipse and opened JDT preferences then clicked Enable
4-4) Got an error telling me to manually edit config.ini file and add a line which was already present.
4-5) Tried the other steps in ethutch’s post to no avail.I’ve since given up on the all in one installer and went with installing MyEclipse as a plugin and using the AJDT plugin straight from the project instead of MyEclipse and things seem to work for now.
support-joyMemberI am not able to reproduce the same at my end. What is your OS? and version? What is the version of ME you were facing this issue with?
I am glad to hear that you have a workaround. I would like to investigate more on this and I need more pointers. So feel free to add anything else you think might be useful for me to reproduce the same at my end.
rgaussMemberMac OS X 10.5.6
ME 7.1 -
AuthorPosts