Rodolfo,
Can you do :
diag 53(id)
Regards,
Morgan
On 2016-02-19 15:51, Rodolfo Alcazar Portillo wrote:
...I just want to run this as a proof of concept, later will handle
versions. So, I got some advances with Karaf 4.0.4. On the server,
everything goes fine:
karaf@root()> config:property-set -p
org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
karaf@root()> config:property-set -p
org.apache.cxf.dosgi.discovery.zookeeper.server clientPort 2181
karaf@root()> feature:repo-add cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
karaf@root()> feature:install cxf-dosgi-discovery-distributed
cxf-dosgi-zookeeper-server
karaf@root()> feature:repo-add
mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
Adding feature url
mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
karaf@root()> feature:install example-tasklist-persistence
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
---------------------------------------------------------------------------------------
52 | Active | 80 | 1.0.0.SNAPSHOT | tasklist-model
53 | Active | 80 | 1.0.0.SNAPSHOT | tasklist-persistence
On the client, DOSGI loads (Yes!!!, small delays!), but it remains in
GracePeriod:
karaf@root()> config:property-set -p org.ops4j.pax.web
org.osgi.service.http.port 8182
karaf@root()> config:property-set -p
org.apache.cxf.dosgi.discovery.zookeeper zookeeper.port 2181
karaf@root()> feature:repo-add cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
karaf@root()> feature:install cxf-dosgi-discovery-distributed
karaf@root()> feature:repo-add
mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
Adding feature url
mvn:net.lr.tasklist/tasklist-features/1.0.0-SNAPSHOT/xml
karaf@root()> feature:install example-tasklist-ui
karaf@root()> list|grep task
52 | Active | 80 | 1.0.0.SNAPSHOT | tasklist-model
53 | GracePeriod | 80 | 1.0.0.SNAPSHOT | tasklist-ui
So the log under data/log/karaf.log says something that I don't get:
2016-02-19 15:50:14,647 | INFO | nsole user karaf |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Adding features:
example-tasklist-ui/[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]
2016-02-19 15:50:15,239 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Changes to perform:
2016-02-19 15:50:15,239 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Region: root
2016-02-19 15:50:15,240 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Bundles to update:
2016-02-19 15:50:15,240 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT with
mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
2016-02-19 15:50:15,240 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Stopping bundles:
2016-02-19 15:50:15,240 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT
2016-02-19 15:50:15,241 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Updating bundles:
2016-02-19 15:50:15,246 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | mvn:net.lr.tasklist/tasklist-model/1.0.0-SNAPSHOT
2016-02-19 15:50:15,261 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Stopping bundles:
2016-02-19 15:50:15,261 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT
2016-02-19 15:50:15,262 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.ui/1.0.0.SNAPSHOT
2016-02-19 15:50:15,262 | INFO | pool-60-thread-1 | BlueprintExtender
| 13 - org.apache.aries.blueprint.core - 1.5.0 |
Destroying BlueprintContainer for bundle net.lr.tasklist.ui/1.0.0.SNAPSHOT
2016-02-19 15:50:15,265 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Refreshing bundles:
2016-02-19 15:50:15,266 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT (Bundle will be updated)
2016-02-19 15:50:15,266 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.ui/1.0.0.SNAPSHOT (Wired to
net.lr.tasklist.model/1.0.0.SNAPSHOT which is being refreshed)
2016-02-19 15:50:15,276 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Starting bundles:
2016-02-19 15:50:15,277 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.model/1.0.0.SNAPSHOT
2016-02-19 15:50:15,278 | INFO | pool-60-thread-1 | bundle
| 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1
| Bundle Considered for SPI providers: net.lr.tasklist.model
2016-02-19 15:50:15,279 | INFO | pool-60-thread-1 | bundle
| 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1
| No 'SPI-Provider' Manifest header. Skipping bundle:
net.lr.tasklist.model
2016-02-19 15:50:15,280 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | net.lr.tasklist.ui/1.0.0.SNAPSHOT
2016-02-19 15:50:15,288 | INFO | pool-60-thread-1 |
InterfaceMonitorManager | 54 -
cxf-dosgi-ri-discovery-distributed - 1.7.0 | updating EndpointListener
interests: [org.osgi.service.remoteserviceadmin.EndpointListener]
2016-02-19 15:50:15,291 | INFO | pool-60-thread-1 |
BlueprintContainerImpl | 13 -
org.apache.aries.blueprint.core - 1.5.0 | Bundle
net.lr.tasklist.ui/1.0.0.SNAPSHOT is waiting for dependencies
[(objectClass=net.lr.tasklist.model.TaskService)]
2016-02-19 15:50:15,292 | INFO | pool-60-thread-1 | bundle
| 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1
| Bundle Considered for SPI providers: net.lr.tasklist.ui
2016-02-19 15:50:15,293 | INFO | pool-60-thread-1 | bundle
| 63 - org.apache.aries.spifly.dynamic.bundle - 1.0.1
| No 'SPI-Provider' Manifest header. Skipping bundle: net.lr.tasklist.ui
2016-02-19 15:50:15,293 | INFO | pool-60-thread-1 |
FeaturesServiceImpl | 9 - org.apache.karaf.features.core
- 4.0.4 | Done.
I'm using the tutorial as it was provided on github. An eclipse search
of the word 'SPI' is empty. Is there anything I can try to solve this?
Thanks in advance, and have a nice weekend!
Rodolfo
2016-02-18 20:15 GMT+01:00 Christian Schneider
<[email protected] <mailto:[email protected]>>:
I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0
version on karaf 3 or 4.
I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine
on both versions.
Normally you should not need to install CXF as the dosgi feature
refers to it.
If you install CXF by hand then better use the current version
3.1.5. The 3.1.0 version had some issues as far as I know.
Christian
2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo
<[email protected]
<mailto:[email protected]>>:
Hi, my first time on the list :)
I'm using karaf 2.4.1 (can't change version) and want to test
dosgi. I'm following some tutorials, mainly lessons 4 & 8 in
http://www.liquid-reality.de/, but can't make dosgi startup in
karaf. I'm stucked here (the versions shown below give the
less errors, others give thougher errors):
karaf@root> features:chooseurl cxf-dosgi 1.4.0
Adding feature url
mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
(good!)
karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature
cxf-dosgi-discovery-distributed/0.0.0:
Could not start bundle
mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
bundle cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0:
missing requirement [216.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
(oops, ok, let's provide cxf)...
karaf@root> features:chooseurl cxf 2.7.4
Adding feature url
mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features
(ok)
karaf@root> features:install cxf
(ok, and here we go again:)
karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature
cxf-dosgi-discovery-distributed/0.0.0:
Could not start bundle
mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in
feature(s) cxf-dosgi-core-1.4.0: Unresolved constraint in
bundle cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0:
missing requirement [223.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))
karaf@root> list|grep cxf
[ 197] [Active ] [Created ] [ ] [ 50]
camel-cxf-transport (2.14.1)
[ 198] [Active ] [Created ] [ ] [ 50] camel-cxf
(2.14.1)
Why? I'm on the right version, providing the right package! As
said, with other versions I get other errors, mainly if I use
cxf 3.1.0 or higher : google for "joda-time via two dependency
chains"
Any help on this will be welcome, thanks in advance.
Greets. R.
--
--
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>