[jitsi-dev] Building/running jitsi/libjitsi - bundle resolution issue


#1

I did a recent pull of both Jitsi and Libjitsi into eclipse projects. I
made the jitsi project depend on the libjitsi built jar, rather than what
was packaged with jitsi. I am compiling ok, but have runtime bundle
resolution issue.

I am kinda pulling my hair out on this, why does it appear like there is a
circular dependency between net.java.sip.communicator.netaddr and
org.jitsi.libjitsi?

     [java] ERROR: Bundle net.java.sip.communicator.netaddr [13] Error
starting reference:file:sc-bundles/netaddr.jar
(org.osgi.framework.BundleException: Unable to resolve
net.java.sip.communicator.netaddr [13](R 13.0): missing requirement
[net.java.sip.communicator.netaddr [13](R 13.0)] osgi.wiring.package;
(osgi.wiring.package=org.jitsi.service.packetlogging) [caused by: Unable to
resolve org.jitsi.libjitsi [120](R 120.0): missing requirement
[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))]
Unresolved requirements: [[net.java.sip.communicator.netaddr [13](R 13.0)]
osgi.wiring.package; (osgi.wiring.package=org.jitsi.service.packetlogging)])
     [java] ERROR: Bundle org.jitsi.libjitsi [120] Error starting
reference:file:sc-bundles/libjitsi.jar (org.osgi.framework.BundleException:
Unable to resolve org.jitsi.libjitsi [120](R 120.0): missing requirement
[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))
Unresolved requirements: [[org.jitsi.libjitsi [120](R 120.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))])

-Scott M.


#2

Project dependencies don't work between the two. You need to build libjitsi with Maven. Note that the master branches currently don't work woth each other, theres an issue open in Jitsi where the most recent working libjitsi commit is noted.

Ingo

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

···

On 19.12.2015, at 19:30, Scott McClements <kc2pih@gmail.com> wrote:

I did a recent pull of both Jitsi and Libjitsi into eclipse projects. I made the jitsi project depend on the libjitsi built jar, rather than what was packaged with jitsi. I am compiling ok, but have runtime bundle resolution issue.

I am kinda pulling my hair out on this, why does it appear like there is a circular dependency between net.java.sip.communicator.netaddr and org.jitsi.libjitsi?

     [java] ERROR: Bundle net.java.sip.communicator.netaddr [13] Error starting reference:file:sc-bundles/netaddr.jar (org.osgi.framework.BundleException: Unable to resolve net.java.sip.communicator.netaddr [13](R 13.0): missing requirement [net.java.sip.communicator.netaddr [13](R 13.0)] osgi.wiring.package; (osgi.wiring.package=org.jitsi.service.packetlogging) [caused by: Unable to resolve org.jitsi.libjitsi [120](R 120.0): missing requirement [org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))] Unresolved requirements: [[net.java.sip.communicator.netaddr [13](R 13.0)] osgi.wiring.package; (osgi.wiring.package=org.jitsi.service.packetlogging)])
     [java] ERROR: Bundle org.jitsi.libjitsi [120] Error starting reference:file:sc-bundles/libjitsi.jar (org.osgi.framework.BundleException: Unable to resolve org.jitsi.libjitsi [120](R 120.0): missing requirement [org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0))) Unresolved requirements: [[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))])

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


#3

Thanks. I am building libjitsi with Maven. I have the jitsi project copy
the jar file from the libjitsi target folder over to sc-bundles/.
Everything looks good there, I will have to look at the open issues i
guess.

···

On Sat, Dec 19, 2015 at 4:45 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

Project dependencies don't work between the two. You need to build
libjitsi with Maven. Note that the master branches currently don't work
woth each other, theres an issue open in Jitsi where the most recent
working libjitsi commit is noted.

Ingo

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

> On 19.12.2015, at 19:30, Scott McClements <kc2pih@gmail.com> wrote:
>
> I did a recent pull of both Jitsi and Libjitsi into eclipse projects. I
made the jitsi project depend on the libjitsi built jar, rather than what
was packaged with jitsi. I am compiling ok, but have runtime bundle
resolution issue.
>
> I am kinda pulling my hair out on this, why does it appear like there is
a circular dependency between net.java.sip.communicator.netaddr and
org.jitsi.libjitsi?
>
>
>
> [java] ERROR: Bundle net.java.sip.communicator.netaddr [13] Error
starting reference:file:sc-bundles/netaddr.jar
(org.osgi.framework.BundleException: Unable to resolve
net.java.sip.communicator.netaddr [13](R 13.0): missing requirement
[net.java.sip.communicator.netaddr [13](R 13.0)] osgi.wiring.package;
(osgi.wiring.package=org.jitsi.service.packetlogging) [caused by: Unable to
resolve org.jitsi.libjitsi [120](R 120.0): missing requirement
[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))]
Unresolved requirements: [[net.java.sip.communicator.netaddr [13](R 13.0)]
osgi.wiring.package; (osgi.wiring.package=org.jitsi.service.packetlogging)])
> [java] ERROR: Bundle org.jitsi.libjitsi [120] Error starting
reference:file:sc-bundles/libjitsi.jar (org.osgi.framework.BundleException:
Unable to resolve org.jitsi.libjitsi [120](R 120.0): missing requirement
[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))
Unresolved requirements: [[org.jitsi.libjitsi [120](R 120.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))])
>
>
> -Scott M.
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

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


#4

Ingo - Thanks - Issue 193 is exactly the problem I am having. -Scott

···

On Sat, Dec 19, 2015 at 11:54 PM, Scott McClements <kc2pih@gmail.com> wrote:

Thanks. I am building libjitsi with Maven. I have the jitsi project copy
the jar file from the libjitsi target folder over to sc-bundles/.
Everything looks good there, I will have to look at the open issues i
guess.

On Sat, Dec 19, 2015 at 4:45 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

Project dependencies don't work between the two. You need to build
libjitsi with Maven. Note that the master branches currently don't work
woth each other, theres an issue open in Jitsi where the most recent
working libjitsi commit is noted.

Ingo

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

> On 19.12.2015, at 19:30, Scott McClements <kc2pih@gmail.com> wrote:
>
> I did a recent pull of both Jitsi and Libjitsi into eclipse projects. I
made the jitsi project depend on the libjitsi built jar, rather than what
was packaged with jitsi. I am compiling ok, but have runtime bundle
resolution issue.
>
> I am kinda pulling my hair out on this, why does it appear like there
is a circular dependency between net.java.sip.communicator.netaddr and
org.jitsi.libjitsi?
>
>
>
> [java] ERROR: Bundle net.java.sip.communicator.netaddr [13] Error
starting reference:file:sc-bundles/netaddr.jar
(org.osgi.framework.BundleException: Unable to resolve
net.java.sip.communicator.netaddr [13](R 13.0): missing requirement
[net.java.sip.communicator.netaddr [13](R 13.0)] osgi.wiring.package;
(osgi.wiring.package=org.jitsi.service.packetlogging) [caused by: Unable to
resolve org.jitsi.libjitsi [120](R 120.0): missing requirement
[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))]
Unresolved requirements: [[net.java.sip.communicator.netaddr [13](R 13.0)]
osgi.wiring.package; (osgi.wiring.package=org.jitsi.service.packetlogging)])
> [java] ERROR: Bundle org.jitsi.libjitsi [120] Error starting
reference:file:sc-bundles/libjitsi.jar (org.osgi.framework.BundleException:
Unable to resolve org.jitsi.libjitsi [120](R 120.0): missing requirement
[org.jitsi.libjitsi [120](R 120.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))
Unresolved requirements: [[org.jitsi.libjitsi [120](R 120.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.ice4j.socket)(version>=1.0.0)(!(version>=2.0.0)))])
>
>
> -Scott M.
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

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