How are you launching equinox? Are you using the org.eclipse.equinox.launcher jar or using the eclipse.exe or are you starting equinox directly with something like java -jar org.eclipse.osgi.jar?
The reason I ask is because the osgi.framework.extensions property is processed by the org.eclipse.equinox.launcher jar which sets up the class loader for the framework (org.eclipse.osgi). The launcher uses the osgi.framework.extensions property to discover additional jars that should be placed on the framework class loader's class path. Tom |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |"Kashtan, Daniel" <daniel.kash...@itt.com> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Equinox development mailing list <equinox-dev@eclipse.org> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |06/23/2010 04:03 PM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |RE: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hey Martin, I just recently found this link, http://wiki.eclipse.org/JDT_weaving_features, which I believe details the classpath setup code you are referring to (correct me if I am wrong). I unfortunately still can't get the hook working with the system bundle. Here is what my config.ini looks like: osgi.clean=true osgi.frameworkClassPath=file \:/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/org.eclipse.osgi_3.4.0.v20080605-1900.jar,file \:/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar osgi.bundles=org.aspectj.runtime_1.6.1.20080703120000, org.aspectj.weaver_1.6.1.20080703120000,org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar, org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar,org.eclipse.equinox.weaving.demo.hello, org.eclipse.equinox.weaving.demo.hello.aspects osgi.framework.extensions=org.eclipse.equinox.weaving.hook aj.weaving.verbose=true org.aspectj.weaver.showWeaveInfo=true org.aspectj.osgi.verbose=true All my bundles are in /home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld. My config.ini is in /home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/Configuration. I am not sure what else I could be doing wrong at this point and I must be close to figuring out this problem :) ________________________________________ From: equinox-dev-boun...@eclipse.org [equinox-dev-boun...@eclipse.org] On Behalf Of Martin Lippert [lipp...@acm.org] Sent: Wednesday, June 23, 2010 3:50 PM To: Equinox development mailing list Subject: Re: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI Hi Daniel, if I remember this correctly you need to put the org.eclipse.osgi bundle AND the framework extension bundles on the classpath if you start the runtime the way you do it. (The exception you mention indicates that the framework extension is not installed correctly.) HTH, -Martin > I have been trying very hard to get the Equinox Aspects Hello World project run correctly outside of Eclipse, just using a custom config.ini and the Equinox shell. I believe the last thing holding me up is that the weaving.hook fragment bundle is not hooking into the system bundle. I have all the files from the plugins folder of the Hello World demo in the same folder as my system bundle and I have the hello and hello.aspects bundle in the same folder. My config.ini is in the ./configuration folder. It is a simple setup and there shouldn't be a co-location problems with the hook bundle. I'll post my config.ini below. > > Config.ini: > > osgi.clean=true > org.aspectj.osgi.verbose=true > eclipse.ignoreApp=true > aj.weaving.verbose=true > org.aspectj.weaver.showWeaveInfo=true > osgi.bundles=org.eclipse.equinox.weaving.demo.hello.aspects, org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar, org.aspectj.weaver_1.6.1.20080703120000, org.aspectj.runtime_1.6.1.20080703120000, org.eclipse.equinox.weaving.demo.hello > osgi.framework.extensions=org.eclipse.equinox.weaving.hook > > > > > > I set the framework extension correctly right? Also, here is how I start the Equinox shell. If I enter start 3 I get an error, java.lang.NoClassDefFoundError: org.eclipse.equinox.service.weaving.IWeavingService > > djka...@zaius:~/workspaceBlueprint/EquinoxAspectsHellowWorld$ java -jar org.eclipse.osgi_3.4.0.v20080605-1900.jar -console -Dosgi.framework.extensions=org.eclipse.equinox.weaving.hook > > osgi> ss > > Framework is launched. > > id State Bundle > 0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900 > Fragments=1 > 1 RESOLVED org.eclipse.equinox.weaving.hook_1.0.0.200808061839 > Master=0 > 2 RESOLVED org.eclipse.equinox.weaving.demo.hello.aspects_1.0.0 > 3<<LAZY>> org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839 > 4 RESOLVED org.aspectj.weaver_1.6.1.20080703120000 > 5 RESOLVED org.aspectj.runtime_1.6.1.20080703120000 > 6 RESOLVED org.eclipse.equinox.weaving.demo.hello_1.0.0 > > osgi> > > This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. > Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail. > _______________________________________________ > equinox-dev mailing list > equinox-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/equinox-dev > _______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev _______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev