Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] config.ini and equinox aspects

This line works for me as well and avoids the error at startup:
osgi.bundles=org.aspectj.runtime,org.aspectj.weaver,org.eclipse.equinox.weaving.aspectj@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start

However, I am reluctant to try this (I am trying to keep the
config.ini as close to a default config.ini as possible):
osgi.bundles=org.eclipse.equinox.weaving.aspectj@1\:start,org.eclipse.equinox.simpleconfigurator@1\:start
 because by default config.ini files for eclipse use the file\: syntax
for the simple configurator bundle.

I wonder if this problem has something to do with this line in my
config.ini (found by default on an eclipse install):

org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info

This line essentially states that a list of bundles (plugins), their
start level, and auto-start status can be found in the bundles.info
file.  Perhaps the OSGi framework can't find the weaver and the
runtime bundles because they are only specified in the bundles.info
file, and not the config.ini.

--a

On Fri, Oct 24, 2008 at 10:35 AM, Heiko Seeberger
<heiko.reg@xxxxxxxxxxxxx> wrote:
> Andrew,
>
> This looks weired, as neither org.aspectj,runtime nor ...weaver have to be
> started at all.
>
> That might be another issue: Maybe when you add these to osgi.bundles they
> are INSTALLED (and the start level is not important). Could you please try
> without starting them:
>>
>>
>> osgi.bundles=org.aspectj.runtime,org.aspectj.weaver,org.eclipse.equinox.weaving.aspectj@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
>
>
> Another point: I wonder if your syntax is correct. I never have used
> reference... or the full name including the bundle version in osgi.bundles.
> Could you please try:
>>
>>
>> osgi.bundles=org.eclipse.equinox.weaving.aspectj@1\:start,org.eclipse.equinox.simpleconfigurator@1\:start
>
> Please let me know your results.
>
> Cheers
> Heiko
>
> Am 24.10.2008 um 17:39 schrieb Andrew Eisenberg:
>
>> I am applying equinox aspects to Eclipse 3.4.1.  When I add this line
>> to my config.ini:
>>
>>
>> osgi.bundles=org.eclipse.equinox.weaving.aspectj@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
>>
>> I get an exception at startup:
>> org.osgi.framework.BundleException: The bundle could not be resolved.
>> Reason: Missing Constraint: Require-Bundle: org.aspectj.weaver;
>> bundle-version="0.0.0"
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
>> <snip/>
>>
>> But when I change the start level of org.eclipse.equinox.weaving.aspectj
>> to 4:
>>
>>
>> osgi.bundles=org.eclipse.equinox.weaving.aspectj@4\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
>>
>> or when I add the aspectj runtime and weaving bundles to have a start
>> level of one as well:
>>
>>
>> osgi.bundles=org.aspectj.runtime@1\:start,org.aspectj.weaver@1\:start,org.eclipse.equinox.weaving.aspectj@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
>>
>> I get no exceptions at startup.
>>
>> My question is, I would prefer to have the first option
>> (org.eclipse.equinox.weaving.aspectj@4\:start) are there any potential
>> problems with this?  Consider that I only want to weave a select few
>> bundles that all have a start level of 4.
>>
>> thanks again,
>> --a
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>


Back to the top