[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] {Disarmed} Re: {Disarmed} ECF and felix

Hi Markus

Ok, I tried this with Felix (not using pax-runner), but just plain old apache felix.

What I did was to load the "Extension registry bundle" along with MOST other bundles at startup, and then the ECF bundles I load via the FileInstall mechanism, which ensures that they get loaded after the "Extension registry bundle" has been started.
After this my little test works in Felix...Happiness :-)

But, this is not ideal, since one does not want to rely on the startup order of bundles in osgi.
I guess I will have to dig a bit deeper to find out why the resolution does not happen the same as in equinox.

Thanks again

On Tue, Feb 22, 2011 at 5:52 PM, Markus Alexander Kuppe <ecf-dev_eclipse.org@lemmster.de> wrote:
On 02/22/2011 12:34 PM, Ivanhoe Abrahams wrote:
> Hi Markus
> I have tried the same with one of my properties set to
> props.put(IDistributionConstants.SERVICE_EXPORTED_CONFIGS,
> "ecf.generic.server");
> I assume that thats all I need to do to get " ECF generic provider" to
> work. I looked at
> http://wiki.eclipse.org/EIG:Runtime_Dependencies/Configuration to see if
> I need to deploy any other dependent jars.
> Once again I have deployed the extra dependencies
> - ch.ethz.iks.r_osgi.remote_1.0.0.RC4_v20101029-1626.jar
> - org.eclipse.ecf.provider.r_osgi_3.1.0.v20101029-1626.jar
> - asm-all-3.2.jar
> And my little test bundles
> - ecf.test_1.0.0.201102221211.jar
> - ecf.test.client_1.0.0.201102211232.jar
> When I run on felix I still get the same error
> [Felix Shell TUI] ERROR org.eclipse.ecf.identity -
> org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.identity;code=2001;message=Namespace
> cannot be
> null;severity4;exception=org.eclipse.ecf.core.identity.IDCreateException: Namespace
> cannot be null;children=[]]
> org.eclipse.ecf.core.identity.IDCreateException: Namespace cannot be null
>     at
> org.eclipse.ecf.core.identity.IDFactory.logAndThrow(IDFactory.java:186)
>     at org.eclipse.ecf.core.identity.IDFactory.createID(IDFactory.java:204)
> But when I run on equinox, using the --platform=equinox switch in
> pax-runner everything works.
> Regards
> Ivanhoe

Hi Ivanhoe,

I have changed the order in which the core bundles get loaded by pax
(Extension registry prior to all ECF bundles). This appears to fix it
for me (you might have to clean runner/ for the changes to be picked up).

ecf-dev mailing list