You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Doug <it...@gmail.com> on 2016/03/10 16:50:54 UTC

Issues with fresh install of DOSGI

I just did a fresh install of karaf 4.0.4 and ran:

feature:repo-add cxf-dosgi
feature:install cxf-dosgi-discovery-distributed

Before, this worked for me without a hitch, but now it gives me the
following error:

/karaf@root()> ERROR: Bundle cxf-dosgi-ri-dsw-cxf [158] Error starting
inputstream:cxf-dosgi-ri-dsw-cxf-1.7.0.jar
(org.osgi.framework.BundleException: Unable to resolve cxf-dosgi-ri-dsw-cxf
[158](R 158.0): missing requirement [cxf-dosgi-ri-dsw-cxf [158](R 158.0)]
osgi.wiring.package; (&(osgi.wiring.p
ackage=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0))) Unresolved
requirements: [[cxf-dosgi-ri-dsw-cxf [158](R 158.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve cxf-dosgi-ri-dsw-cxf
[158](R 158.0): missing requirement [cxf-dosgi-ri-dsw-cxf [158](R 158.0)]
osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
Unresolved requirements: [[cxf-dosgi-ri-dsw-cxf [158](R
 158.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))]
        at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:745)/

It looks like cxf-dosgi-ri-dsw-cxf is causing issues. I just wanted to make
sure everything with the discovery distributed bundle was up to date. Or
that I wasn't missing something... Thanks!




--
View this message in context: http://karaf.922171.n3.nabble.com/Issues-with-fresh-install-of-DOSGI-tp4045747.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Issues with fresh install of DOSGI

Posted by Christian Schneider <ch...@die-schneider.net>.
The upcoming version of CXF-DOSGi and Aries RSA will use zookeeper 3.4.8.
The current code on master of both projects works nicely but I would 
like to get more feedback before doing a release.
I plan to do a release in a month timeframe.

Would be great if you could already try with the current code on master 
of both projects.

Christian

On 15.03.2016 19:27, Doug wrote:
> Sorry Christian, just one more question about the update. Would the newer
> version of zookeeper be used in 1.8.0, or a later release like 1.9 or 2.*? I
> guess I'm just wondering ballpark when that would be. Within the year?
>
> -Doug
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045801.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


Re: Issues with fresh install of DOSGI

Posted by Doug <it...@gmail.com>.
Sorry Christian, just one more question about the update. Would the newer
version of zookeeper be used in 1.8.0, or a later release like 1.9 or 2.*? I
guess I'm just wondering ballpark when that would be. Within the year?

-Doug



--
View this message in context: http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045801.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Issues with fresh install of DOSGI

Posted by Christian Schneider <ch...@die-schneider.net>.
The current version of zookeeper is at 3.4.8. I will soon do a release that
contains it.


Christian


2016-03-12 1:51 GMT+01:00 Doug <it...@gmail.com>:

> Will do. Thanks Christian!
>
> Also, is there a reason DOSGi is using Zookeeper 3.3.2 instead of an
> updated
> version? I was just curious if that was something that would be changed in
> future releases.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045771.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>

Re: Issues with fresh install of DOSGI

Posted by Doug <it...@gmail.com>.
Will do. Thanks Christian!

Also, is there a reason DOSGi is using Zookeeper 3.3.2 instead of an updated
version? I was just curious if that was something that would be changed in
future releases.



--
View this message in context: http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045771.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Issues with fresh install of DOSGI

Posted by Christian Schneider <ch...@die-schneider.net>.
Yes. Please always use a fixed version. If you leave it out it will take
the newest SNAPSHOT which might
be broken at the time.

I am currently working a lot on the SNAPSHOT. As soon as I got some good
status I will blog about the changes.

Christian

2016-03-10 18:47 GMT+01:00 Doug <it...@gmail.com>:

> It's an issue with the 1.8.0 snapshot version of cxf-dosgi. Initially
> running:
> /feature:repo-add cxf-dosgi 1.7.0/
> instead of the latest version fixed my issues.
>
> Also, I didn't need to install cxf-dosgi-core before discovery-distributed
> when I used 1.7.0.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045751.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>

Re: Issues with fresh install of DOSGI

Posted by Doug <it...@gmail.com>.
It's an issue with the 1.8.0 snapshot version of cxf-dosgi. Initially
running:
/feature:repo-add cxf-dosgi 1.7.0/
instead of the latest version fixed my issues.

Also, I didn't need to install cxf-dosgi-core before discovery-distributed
when I used 1.7.0.



--
View this message in context: http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045751.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Issues with fresh install of DOSGI

Posted by Doug <it...@gmail.com>.
I guess I should add that I ran:

/feature:install cxf-dosgi-zookeeper-server/

as well. The issue could have to do with how that is configured by default?



--
View this message in context: http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045750.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Issues with fresh install of DOSGI

Posted by Doug <it...@gmail.com>.
No I don't have cxf feature installed, but running:
/feature:install cxf-dosgi-core/
before:
/feature:install cxf-dosgi-discovery-distributed/
fixed that error.

Things still don't seem to be working correctly though. When I run my
service (or the example greeter service here...
https://cxf.apache.org/dosgi-apache-karaf-feature.html) I get the error:

/2016-03-10 09:43:01,478 | ERROR | ool-105-thread-1 | TopologyManagerExport           
| 55 - cxf-dosgi-ri-topology-manager - 1.8.0.SNAPSHOT | No
RemoteServiceAdmin available! Unable to export service from.../

Something weird is going on. I'm setting things up exactly the same way I
did on another machine a week ago.



--
View this message in context: http://karaf.922171.n3.nabble.com/Re-Issues-with-fresh-install-of-DOSGI-tp4045748p4045749.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Issues with fresh install of DOSGI

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Doug,

do you have cxf feature installed ?

Regards
JB

On 03/10/2016 04:50 PM, Doug wrote:
> I just did a fresh install of karaf 4.0.4 and ran:
>
> feature:repo-add cxf-dosgi
> feature:install cxf-dosgi-discovery-distributed
>
> Before, this worked for me without a hitch, but now it gives me the
> following error:
>
> /karaf@root()> ERROR: Bundle cxf-dosgi-ri-dsw-cxf [158] Error starting
> inputstream:cxf-dosgi-ri-dsw-cxf-1.7.0.jar
> (org.osgi.framework.BundleException: Unable to resolve cxf-dosgi-ri-dsw-cxf
> [158](R 158.0): missing requirement [cxf-dosgi-ri-dsw-cxf [158](R 158.0)]
> osgi.wiring.package; (&(osgi.wiring.p
> ackage=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0))) Unresolved
> requirements: [[cxf-dosgi-ri-dsw-cxf [158](R 158.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))])
> org.osgi.framework.BundleException: Unable to resolve cxf-dosgi-ri-dsw-cxf
> [158](R 158.0): missing requirement [cxf-dosgi-ri-dsw-cxf [158](R 158.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))
> Unresolved requirements: [[cxf-dosgi-ri-dsw-cxf [158](R
>   158.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))]
>          at
> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
>          at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
>          at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
>          at
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
>          at java.lang.Thread.run(Thread.java:745)/
>
> It looks like cxf-dosgi-ri-dsw-cxf is causing issues. I just wanted to make
> sure everything with the discovery distributed bundle was up to date. Or
> that I wasn't missing something... Thanks!
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Issues-with-fresh-install-of-DOSGI-tp4045747.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com