You shouldn't be trying to load the framework JAR file as a bundle, nor is there much reason to load the OSGi core JAR as a bundle.

It is not really clear what you are trying to do. I assume you can start Felix 2.0.0 with the PAX tools...perhaps you should ask over on their mailing lists if no one reading this can answer...

-> richard

On 10/11/09 11:54, Ivanhoe Abrahams wrote:
H Guo
Thank you for your response

I have tried your suggestion, but I am now getting different error

Welcome to Felix
================

org.osgi.framework.BundleException: Bundle symbolic name and version are not
unique: org.apache.felix.framework:2.0.0
         at
org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1125)
         at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:82)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2379)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2282)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
         at
org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:272)
         at
org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:75)


I see that Richard has also responded to say that this dependency on 1.5 is
actually a mistake and will be rectified. I will wait for that fix. By the
way, in his post he hints that I can use the osgi core jar from the central
Maven repo., but that causes a whol lot of classcastexceptions. see below

Welcome to Felix
================

java.lang.ClassCastException: org.apache.felix.shell.impl.Activator cannot
be cast to org.osgi.framework.BundleActivatorERROR: Error starting
file:bundles/org.apache.felix.shell_1.4.0.jar (org.osgi.fr
amework.BundleException: Activator start error in bundle
org.apache.felix.shell [125].)

         at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
         at org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1621)
         at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1076)
         at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)

I guess waiting for the fix mentioned by Richard is best.

Once again thanks

Ivanhoe



On Sat, Oct 10, 2009 at 7:16 PM, Guo Du<[email protected]>  wrote:

On Sat, Oct 10, 2009 at 4:12 PM, Ivanhoe Abrahams
<[email protected]>  wrote:
Hi Everybody

After about 2 months of not playing with OSGI, I finally have some time
again.
In the mean time I see Felix has moved on to version 2

I use pax provision to run felix. But now I encounter a problem starting
up
the system.
It seem as if felix shell now has a dependency on a different  version of
the core osgi bundle. But I cant find the correct maven repository to get
this version from.

Can someone please tell me what my maven dependency should look like to
satisfy the below "Unresolved constraint" that I encounter ...below is
the
Error message....Thank you in advance

You may try
    <dependency>

      <groupId>org.apache.felix</groupId>

      <artifactId>org.apache.felix.framework</artifactId>

      <version>2.0.0</version>

    </dependency>

Felix 1.X.X has org.osgi.framework<=1.2.

Good luck!

-Guo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to