[jitsi-dev] osgi bundle


#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello!

    I am trying to build a project in eclipse using jitsi and libjitsi
as a base. I can run and debug jitsi from within eclipse now, which
helps greatly to figure out the code 'll need. The libjitsi pieces I've
used in my project seem to work fine. But when I try to use the jitsi
pieces, I'm failing to comprehend. I added libjitsi.jar to my
libraries, and in my build path I added the jitsi project. That seems
to give me visibility into the project pieces I need (like sip).

    I'm getting hung up on the felix/osgi piece. I copied these from
jitsi to my project:

lib/felix.client.run.properties
sc-bundles

and added code from net.java.sip.communicator.launcher. Ultimately I
believe
    Main.main(new String[0]);
is where I get stuck loading the bundles.

Auto-properties install: reference:file:sc-bundles/provisioning.jar
(org.osgi.framework.BundleException: Unable to cache bundle:
reference:file:sc-bundles/provisioning.jar - java.io.IOException:
Referenced file does not exist: sc-bundles/provisioning.jar)
org.osgi.framework.BundleException: Unable to cache bundle:
reference:file:sc-bundles/provisioning.jar
    at org.apache.felix.framework.Felix.installBundle(Felix.java:2876)
    at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
    at
org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:296)
    at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:79)
    at org.apache.felix.main.Main.main(Main.java:292)
    at com.mydetv.swarm.test.Main.main(Main.java:143)
Caused by: java.io.IOException: Referenced file does not exist:
sc-bundles/provisioning.jar
    at
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:852)
    at
org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
    at
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
    at
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
    at org.apache.felix.framework.Felix.installBundle(Felix.java:2872)
    ... 5 more

I copied them, they are in my project and I see
sc-bundles/provisioning.jar, why can't osgi find them.

Thanks for your consideration,
Paul


#2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello, I did get it to work but I had to use my mac sledge hammer. I'm
hoping you can provide me with a simple fly swatter:

I changed:
felix.auto.start.5=reference:file:sc-bundles/splash-screen.jar

to:
felix.auto.start.5=reference:file:/Users/phomlish/Documents/development/jitsi/sc-bundles/splash-screen.jar

It must be an eclipse thing. Build path? I did try to add sc-bundles
to my source path.

thanks,
Paul

Hello!

    I am trying to build a project in eclipse using jitsi and libjitsi
as a base. I can run and debug jitsi from within eclipse now, which
helps greatly to figure out the code 'll need. The libjitsi pieces I've
used in my project seem to work fine. But when I try to use the jitsi
pieces, I'm failing to comprehend. I added libjitsi.jar to my
libraries, and in my build path I added the jitsi project. That seems
to give me visibility into the project pieces I need (like sip).

    I'm getting hung up on the felix/osgi piece. I copied these from
jitsi to my project:

lib/felix.client.run.properties
sc-bundles

and added code from net.java.sip.communicator.launcher. Ultimately I
believe
    Main.main(new String[0]);
is where I get stuck loading the bundles.

Auto-properties install: reference:file:sc-bundles/provisioning.jar
(org.osgi.framework.BundleException: Unable to cache bundle:
reference:file:sc-bundles/provisioning.jar - java.io.IOException:
Referenced file does not exist: sc-bundles/provisioning.jar)
org.osgi.framework.BundleException: Unable to cache bundle:
reference:file:sc-bundles/provisioning.jar
    at org.apache.felix.framework.Felix.installBundle(Felix.java:2876)
    at

org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)

    at

org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:296)

    at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:79)
    at org.apache.felix.main.Main.main(Main.java:292)
    at com.mydetv.swarm.test.Main.main(Main.java:143)
Caused by: java.io.IOException: Referenced file does not exist:
sc-bundles/provisioning.jar
    at

org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:852)

    at

org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)

    at

org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)

···

On 10/17/14, 2:07 PM, Paul J. Homlish III wrote:

    at
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
    at org.apache.felix.framework.Felix.installBundle(Felix.java:2872)
    ... 5 more

I copied them, they are in my project and I see
sc-bundles/provisioning.jar, why can't osgi find them.

Thanks for your consideration,
Paul

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Have you tried executing directly with ant rather through than Eclipse?

--sent from my mobile

···

On 18 Oct 2014 12:03 PM, "Paul J. Homlish III" <phomlish@homlish.net> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello, I did get it to work but I had to use my mac sledge hammer. I'm
hoping you can provide me with a simple fly swatter:

I changed:
felix.auto.start.5=reference:file:sc-bundles/splash-screen.jar

to:
felix.auto.start.5=reference:
file:/Users/phomlish/Documents/development/jitsi/sc-bundles/splash-screen.jar

It must be an eclipse thing. Build path? I did try to add sc-bundles to
my source path.

thanks,
Paul

On 10/17/14, 2:07 PM, Paul J. Homlish III wrote:
>
> Hello!
>
> I am trying to build a project in eclipse using jitsi and libjitsi
> as a base. I can run and debug jitsi from within eclipse now, which
> helps greatly to figure out the code 'll need. The libjitsi pieces I've
> used in my project seem to work fine. But when I try to use the jitsi
> pieces, I'm failing to comprehend. I added libjitsi.jar to my
> libraries, and in my build path I added the jitsi project. That seems
> to give me visibility into the project pieces I need (like sip).
>
> I'm getting hung up on the felix/osgi piece. I copied these from
> jitsi to my project:
>
> lib/felix.client.run.properties
> sc-bundles
>
> and added code from net.java.sip.communicator.launcher. Ultimately I
> believe
> Main.main(new String[0]);
> is where I get stuck loading the bundles.
>
> Auto-properties install: reference:file:sc-bundles/provisioning.jar
> (org.osgi.framework.BundleException: Unable to cache bundle:
> reference:file:sc-bundles/provisioning.jar - java.io.IOException:
> Referenced file does not exist: sc-bundles/provisioning.jar)
> org.osgi.framework.BundleException: Unable to cache bundle:
> reference:file:sc-bundles/provisioning.jar
> at org.apache.felix.framework.Felix.installBundle(Felix.java:2876)
> at
>
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
> at
>
org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:296)
> at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:79)
> at org.apache.felix.main.Main.main(Main.java:292)
> at com.mydetv.swarm.test.Main.main(Main.java:143)
> Caused by: java.io.IOException: Referenced file does not exist:
> sc-bundles/provisioning.jar
> at
>
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:852)
> at
>
org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
> at
>
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
> at
> org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
> at org.apache.felix.framework.Felix.installBundle(Felix.java:2872)
> ... 5 more
>
> I copied them, they are in my project and I see
> sc-bundles/provisioning.jar, why can't osgi find them.
>
> Thanks for your consideration,
> Paul
>
>
>
>
>
>
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUQjpqAAoJEGmTYyKf60K5bVUIALVbmKgbHZwACTZocTzh5i9a
NtLfDZJ5JhUeyYSxLA1TSHQy0GcwWY8odrSLYbIpSBB7iAeV6ZNud2vgB7tOPnrV
bc2059eozCl6u54D6Az6bR6v1/3VrCzTXbAB3JssugSGwHGBuy7W/OKp0H6HjA4X
AnXjVlsw+mZDwAGJ+q5rQP6lMnpZOuB4j83sIsCVOMuP26A/Q0Pk+7N77g610s2S
JzY/dEpzze9qSn67UXp4At8Cr1MecL2jE4+NFLUORb0DzI1ky64+w3gjEkQHiwBQ
BwEesW4dyDz9Q0MxQa6mAd6zOWGJUHaah//1874PoVVwqopvrbv//TP9lrMUMeI=
=Frpx
-----END PGP SIGNATURE-----

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#4

I didn't create an ant build. This is a separate new project where I
eclipse 'included' the libjitsi and jitsi projects. I'm just trying to
get a hello world type thing to run right now. To answer you question
more fully, the ant builds and runs are working perfectly in the jitsi
and libjitsi I grabbed from git. After your help I even have jitsi
running in debug mode not through ant but through native eclipse which
has helped me greatly, thanks again.

For what I am doing (trying to learn), I just need a few pieces of jitsi
and libjitsi. So I did not add my pieces to the jitsi project but
created my own new project. Maybe that is a wrong approach?

Now back to osgi and felix for me. I have a lot to learn but I'm
starting to 'get' it. My project is running, but now I need to figure
out how to do something with it when I trim down the extra stuff I don't
need. Definately an osgi thing, the thing is running, now how do I use
it? No need to answer that- I do need to learn more on my own before I
waste any more of your time.

But if you have a clue on why I needed to add the full path to those
sc-bundles I'm still curious.

thanks,
Paul

···

On 10/18/14, 8:26 AM, Emil Ivov wrote:

Have you tried executing directly with ant rather through than Eclipse?

--sent from my mobile

On 18 Oct 2014 12:03 PM, "Paul J. Homlish III" <phomlish@homlish.net <mailto:phomlish@homlish.net>> wrote:

snipped the rest to save space.