Ok so I downloaded the multi bundle distro from the provided link.
It still fails, then I noticed a text on the web page stating
"You may need to update the 'org.osgi.framework.system.packages.extra' to
reference the org.w3c.dom.traversal package"
So I added this line to the felix configuraion.properties
org.osgi.framework.system.packages.extra=org.w3c.dom.traversal
Cleaned the cache and re-started Felix, now I got a new error
INFO: added servlet context:
HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@98ce7e}
ERROR: Bundle org.apache.cxf.bundle-minimal [14] Error starting
file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-bundle-minimal-2.2.9.jar
(java.lang.NullPointerException)
java.lang.NullPointerException
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:856)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:899)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:893)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:899)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:899)
at
org.apache.felix.framework.resolver.ResolverImpl.calculatePackageSpaces(ResolverImpl.java:659)
at
org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:181)
at
org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3811)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
at java.lang.Thread.run(Unknown Source)
ERROR: Bundle cxf-dosgi-ri-dsw-cxf [10] Error starting
file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.2.jar
(java.lang.NullPointerException)
java.lang.NullPointerException
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:856)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:899)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:893)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:899)
at
org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:899)
at
org.apache.felix.framework.resolver.ResolverImpl.calculatePackageSpaces(ResolverImpl.java:659)
at
org.apache.felix.framework.resolver.ResolverImpl.calculatePackageSpaces(ResolverImpl.java:609)
at
org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:181)
at
org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3811)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
at java.lang.Thread.run(Unknown Source)
The list of loaded bundles is as follows:
START LEVEL 85
ID|State |Level|Name
0|Active | 0|System Bundle (4.0.1)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Configuration Admin Service (1.0.10)
3|Active | 1|Apache Felix File Install (1.0.0)
4|Active | 1|Apache Felix Gogo Command (0.12.0)
5|Active | 1|Apache Felix Gogo Runtime (0.10.0)
6|Active | 1|Apache Felix Gogo Shell (0.10.0)
7|Active | 1|Apache Felix Web Management Console (3.1.8)
8|Active | 85|CXF dOSGi Topology Manager (1.2.0)
9|Active | 53|geronimo-javamail_1.4_spec (1.2.0)
10|Installed | 84|CXF dOSGi Remote Service Admin Implementation
(1.2.0)
11|Active | 52|geronimo-activation_1.1_spec (1.0.2)
12|Active | 83|CXF Local Discovery Service Bundle (1.2.0)
13|Active | 51|geronimo-annotation_1.0_spec (1.1.1)
14|Installed | 82|Apache CXF Minimal Bundle Jar (2.2.9)
15|Active | 81|Apache ServiceMix Specs :: JSR311 API 1.0 (1.3.0)
16|Active | 80|Apache ServiceMix Specs :: JAXWS API 2.1 (1.3.0)
17|Active | 79|Apache ServiceMix Specs :: JAXB API 2.1 (1.3.0)
18|Active | 78|Apache ServiceMix Specs :: STAX API 1.0 (1.3.0)
19|Active | 77|Apache ServiceMix Specs :: SAAJ API 1.3 (1.3.0)
20|Active | 76|Apache ServiceMix Bundles: commons-pool-1.5.4
(1.5.4.1)
21|Active | 75|Apache ServiceMix Bundles: woodstox-3.2.7 (3.2.7.1)
22|Active | 74|Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1)
23|Active | 73|Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1)
24|Active | 72|Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)
25|Active | 71|Apache ServiceMix Bundles: xmlschema-1.4.3 (1.4.3.1)
26|Active | 70|Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1)
27|Resolved | 50|osgi.compendium (4.1.0.build-200702212030)
28|Active | 69|Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1)
29|Active | 68|Apache ServiceMix Bundles: jaxb-impl-2.1.6 (2.1.6.1)
30|Active | 67|OPS4J Pax Web - Service (0.5.1)
31|Active | 66|spring-osgi-extender (1.2.0)
32|Active | 65|spring-osgi-core (1.2.0)
33|Active | 64|spring-osgi-io (1.2.0)
34|Active | 63|Spring AOP (2.5.6)
35|Resolved | 62|SLF4J Jakarta Commons Logging Binding (1.5.10)
36|Active | 61|SLF4J API (1.5.10)
37|Active | 60|AOP Alliance API (1.0.0)
38|Active | 59|Spring Context (2.5.6)
39|Active | 58|Spring Beans (2.5.6)
40|Active | 57|Spring Core (2.5.6)
41|Active | 56|JDOM DOM Processor (1.0.0)
42|Active | 55|Apache Commons Logging (1.1.1)
43|Active | 54|geronimo-ws-metadata_2.0_spec (1.1.2)
Btw there is a slight inconsistency between the download
felix.config.properties.append file and the instructions on the web page
https://cwiki.apache.org/confluence/display/CXF/DOSGi+Multi+Bundle+Setup
https://cwiki.apache.org/confluence/display/CXF/DOSGi+Multi+Bundle+Setup
The file states: org.osgi.framework.startlevel.beginning=85
The web page: org.osgi.framework.startlevel.beginning=81
--
View this message in context:
http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5077289.html
Sent from the cxf-user mailing list archive at Nabble.com.