Discussion:
Unresolved constraint in bundle - when starting DOSGi on Felix 4.0.1
(too old to reply)
Peter Nerg
2011-12-15 09:01:06 UTC
Permalink
Hi guys.

I've just downloaded the latest edition of DOSGi multi bundle (1.2).
As well as unpacking all the jar files to a directiory (addons/), I added
all the config.properties to the felix config file.
But when I start felix it blurts out a range of errors.
Among other things unresolved dependencies and nullpointers.
I'm running felix 4.0.1. The web page
http://cxf.apache.org/dosgi-multi-bundle-setup.html dosgi-multi-bundle-setup
states "Verified with: Felix 1.8.0" but that's like 100 years old so it has
to support something newer, or?

Auto-properties start:
file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar
(org.osgi.framework.BundleException: Fr
agment bundles can not be started.)
felix.fileinstall.poll (ms) 2000
felix.fileinstall.dir c:\3PP\felix-framework\4.0.1\.\load
felix.fileinstall.debug -1
felix.fileinstall.bundles.new.start true
____________________________
Welcome to Apache Felix Gogo

g! 2011-dec-15 09:46:18
org.springframework.osgi.extender.internal.activator.ContextLoaderListener
start
INFO: Starting [org.springframework.osgi.extender] bundle v.[1.2.0]
2011-dec-15 09:46:18
org.springframework.osgi.extender.internal.support.ExtenderConfiguration
<init>
INFO: No custom extender configuration detected; using defaults...
2011-dec-15 09:46:18 org.springframework.scheduling.timer.TimerTaskExecutor
afterPropertiesSet
INFO: Initializing Timer
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: Logging to ***@1f31652
via org.ops4j.pax.web.service.internal.util.JCLLogger
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.Activator start
INFO: Starting pax http service
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
configure
INFO: configuring server: ServerControllerImpl{state=UNCONFIGURED} ->
ConfigurationImpl{http enabled=true,http port=8080,http secure
enabled=false,htt
p secure port=8443,ssl keystore=C:\Users\epknerg\.keystore,ssl
keystoreType=null,session timeout=30,listening
addresses=[Ljava.lang.String;@18bd7f1}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
start
INFO: starting server: ServerControllerImpl{state=STOPPED}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.JettyServerImpl
addConnector
INFO: adding ***@0.0.0.0:8080
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.JettyServerImpl
start
INFO: starting JettyServerImpl{}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: jetty-6.1.x
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: Started ***@0.0.0.0:8080
2011-dec-15 09:46:18
org.ops4j.pax.web.service.internal.HttpServiceFactoryImpl getService
INFO: binding bundle: [org.apache.felix.webconsole [7]] to http service
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
configure
INFO: configuring server: ServerControllerImpl{state=STARTED} ->
ConfigurationImpl{http enabled=true,http port=8080,http secure
enabled=false,http sec
ure port=8443,ssl keystore=C:\Users\epknerg\.keystore,ssl
keystoreType=null,session timeout=30,listening
addresses=[Ljava.lang.String;@b20352}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
stop
INFO: stopping server: ServerControllerImpl{state=STARTED}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.JettyServerImpl stop
INFO: stopping JettyServerImpl{}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.HttpServiceStarted
<init>
INFO: Creating http service for: org.apache.felix.webconsole [7]
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.HttpServiceProxy
createDefaultHttpContext
INFO: Creating adefault context
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.HttpServiceProxy
registerServlet
INFO: Registering servlet: [/system/console] ->
***@aa0877
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerWrapper
addContext
INFO: added servlet context:
HttpServiceContext{httpContext=***@111ded2}
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.HttpServiceProxy
registerResources
INFO: Registering resource: [/system/console/res] -> /res
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.Activator start
INFO: Started pax http service
ERROR: Bundle org.apache.servicemix.bundles.xmlsec [27] Error starting
file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles
.xmlsec-1.3.0_1.jar (org.osgi.framework.BundleException: Unresolved
constraint in bundle org.apache.servicemix.bundles.xmlsec [27]: Unable to
resolve
27.0: missing requirement [27.0] osgi.wiring.package;
(osgi.wiring.package=org.w3c.dom.traversal))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.servicemix.bundles.xmlsec [27]: Unable to resolve 27.0: missing
require
ment [27.0] osgi.wiring.package; (osgi.wiring.package=org.w3c.dom.traversal)
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3818)
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)
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.HttpServiceStarted$1
stateChanged
INFO: Handling event: [STOPPED]
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.ServerControllerImpl
start
INFO: starting server: ServerControllerImpl{state=STOPPED}
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerImpl
addConnector
INFO: adding ***@0.0.0.0:8080
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerImpl
start
INFO: starting JettyServerImpl{}
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: jetty-6.1.x
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: Started ***@0.0.0.0:8080
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.HttpServiceStarted$1
stateChanged
INFO: Handling event: [STARTED]
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerWrapper
addContext
INFO: added servlet context:
HttpServiceContext{httpContext=***@111ded2}
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.l
ang.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.NullP
ointerException)
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)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.Activator start
INFO: TopologyManager: start()
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl
getRegistrationProperties
INFO: EndpointListener: current filter: []
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.TopologyManager$1
addingService
INFO: TopologyManager: new EndpointListener that wants to be informed about
wants going on ...
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.event.EventAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.event.EventAdmin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (&(osgi.command.scope=*)(osgi.command.function=*))
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs [null]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.apache.felix.service.command.Converter)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.service.command.Converter]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.apache.felix.gogo.api.CommandSessionListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.gogo.api.CommandSessionListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.remoteserviceadmin.EndpointListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.springframework.osgi.context.event.OsgiBundleApplicationContextListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.springframework.osgi.context.event.OsgiBundleApplicationContextListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.apache.felix.bundlerepository.RepositoryAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.bundlerepository.RepositoryAdmin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=javax.servlet.Servlet)
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
INFO: EndpointListener: extending scope by
(&(objectClass=javax.servlet.Servlet)(!(endpoint.framework.uuid=b033bccb-5ba6-448c-bc5f-0fb3d7b393ff)))
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
INFO: EndpointListenerImpl: filters:
[(&(objectClass=javax.servlet.Servlet)(!(endpoint.framework.uuid=b033bccb-5ba6-448c-bc5f-0fb3d7b393ff)))]
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl
getRegistrationProperties
INFO: EndpointListener: current filter:
[(&(objectClass=javax.servlet.Servlet)(!(endpoint.framework.uuid=b033bccb-5ba6-448c-bc5f-0fb3d7b393ff)))]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.TopologyManager$1
modifiedService
INFO: TopologyManager: EndpointListener changed ...
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.apache.felix.webconsole.BrandingPlugin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.webconsole.BrandingPlugin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.apache.felix.webconsole.WebConsoleSecurityProvider)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.webconsole.WebConsoleSecurityProvider]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.http.HttpService)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.http.HttpService]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: null
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping empty filter
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping request from myself
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: null
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping request from myself
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.osgi.service.remoteserviceadmin.RemoteServiceAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping request from myself
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.log.LogService)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.log.LogService]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ConfigurationListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.apache.felix.cm.PersistenceManager)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.cm.PersistenceManager]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ManagedService)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ManagedService]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ManagedServiceFactory)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ManagedServiceFactory]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter:
(objectClass=org.apache.felix.service.command.CommandProcessor)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.service.command.CommandProcessor]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.packageadmin.PackageAdmin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ConfigurationAdmin]

Once started this is the status of my bundles.
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 | 50|osgi.cmpn (4.2.0.200908310645)
16|Active | 81|Apache ServiceMix Specs :: JSR311 API 1.0 (1.3.0)
17|Active | 80|Apache ServiceMix Specs :: JAXWS API 2.1 (1.3.0)
18|Active | 79|Apache ServiceMix Specs :: JAXB API 2.1 (1.3.0)
19|Active | 78|Apache ServiceMix Specs :: STAX API 1.0 (1.3.0)
20|Active | 77|Apache ServiceMix Specs :: SAAJ API 1.3 (1.3.0)
21|Active | 76|Apache ServiceMix Bundles: commons-pool-1.5.4
(1.5.4.1)
22|Active | 75|Apache ServiceMix Bundles: woodstox-3.2.7 (3.2.7.1)
23|Active | 74|Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1)
24|Active | 73|Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1)
25|Active | 72|Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)
26|Active | 71|Apache ServiceMix Bundles: xmlschema-1.4.3 (1.4.3.1)
27|Installed | 70|Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1)
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)

I've appended this to the felix config.properties
org.ops4j.pax.web.session.timeout=30
org.osgi.framework.startlevel.beginning=85
felix.auto.start.50=file:addons/org.osgi.compendium-4.2.0.jar

felix.auto.start.51=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-annotation_1.0_spec-1.1.1.jar
felix.auto.start.52=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-activation_1.1_spec-1.0.2.jar
felix.auto.start.53=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-javamail_1.4_spec-1.2.jar
felix.auto.start.54=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-ws-metadata_2.0_spec-1.1.2.jar
felix.auto.start.55=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.apache.commons.logging-1.1.1.jar
felix.auto.start.56=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.jdom-1.0.0.jar
felix.auto.start.57=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-core-2.5.6.jar
felix.auto.start.58=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-beans-2.5.6.jar
felix.auto.start.59=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-context-2.5.6.jar
felix.auto.start.60=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.aopalliance-1.0.0.jar
felix.auto.start.61=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.api-1.5.10.jar
felix.auto.start.62=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar
felix.auto.start.63=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-aop-2.5.6.jar
felix.auto.start.64=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-io-1.2.0.jar
felix.auto.start.65=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-core-1.2.0.jar
felix.auto.start.66=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-extender-1.2.0.jar
felix.auto.start.67=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/pax-web-service-0.5.1.jar
felix.auto.start.68=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.jaxb-impl-2.1.6_1.jar
felix.auto.start.69=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar
felix.auto.start.70=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlsec-1.3.0_1.jar
felix.auto.start.71=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlschema-1.4.3_1.jar
felix.auto.start.72=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.asm-2.2.3_1.jar
felix.auto.start.73=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlresolver-1.2_1.jar
felix.auto.start.74=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.neethi-2.0.4_1.jar
felix.auto.start.75=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.woodstox-3.2.7_1.jar
felix.auto.start.76=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.commons-pool-1.5.4_1.jar
felix.auto.start.77=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.saaj-api-1.3-1.3.0.jar
felix.auto.start.78=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.stax-api-1.0-1.3.0.jar
felix.auto.start.79=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jaxb-api-2.1-1.3.0.jar
felix.auto.start.80=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jaxws-api-2.1-1.3.0.jar
felix.auto.start.81=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jsr311-api-1.0-1.3.0.jar
felix.auto.start.82=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-bundle-minimal-2.2.9.jar
felix.auto.start.83=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-discovery-local-1.2.jar
felix.auto.start.84=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.2.jar
felix.auto.start.85=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-topology-manager-1.2.jar















--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5076919.html
Sent from the cxf-user mailing list archive at Nabble.com.
Sergey Beryozkin
2011-12-15 11:40:20 UTC
Permalink
Hi

Try the trunk please, I validated it works with felix 4.0.2, single &
multi bundles, here is more uptodate info:
https://cwiki.apache.org/confluence/display/CXF/DOSGi+Multi+Bundle+Setup

if someone can confirm the trunk works with Equinox then I will update
the page; suppose it should work OK
Sergey
Post by Peter Nerg
Hi guys.
I've just downloaded the latest edition of DOSGi multi bundle (1.2).
As well as unpacking all the jar files to a directiory (addons/), I added
all the config.properties to the felix config file.
But when I start felix it blurts out a range of errors.
Among other things unresolved dependencies and nullpointers.
I'm running felix 4.0.1. The web page
http://cxf.apache.org/dosgi-multi-bundle-setup.html dosgi-multi-bundle-setup
states "Verified with: Felix 1.8.0" but that's like 100 years old so it has
to support something newer, or?
file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar
(org.osgi.framework.BundleException: Fr
agment bundles can not be started.)
felix.fileinstall.poll (ms) 2000
felix.fileinstall.dir c:\3PP\felix-framework\4.0.1\.\load
felix.fileinstall.debug -1
felix.fileinstall.bundles.new.start true
____________________________
Welcome to Apache Felix Gogo
g! 2011-dec-15 09:46:18
org.springframework.osgi.extender.internal.activator.ContextLoaderListener
start
INFO: Starting [org.springframework.osgi.extender] bundle v.[1.2.0]
2011-dec-15 09:46:18
org.springframework.osgi.extender.internal.support.ExtenderConfiguration
<init>
INFO: No custom extender configuration detected; using defaults...
2011-dec-15 09:46:18 org.springframework.scheduling.timer.TimerTaskExecutor
afterPropertiesSet
INFO: Initializing Timer
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.util.JCLLogger info
via org.ops4j.pax.web.service.internal.util.JCLLogger
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.Activator start
INFO: Starting pax http service
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
configure
INFO: configuring server: ServerControllerImpl{state=UNCONFIGURED} ->
ConfigurationImpl{http enabled=true,http port=8080,http secure
enabled=false,htt
p secure port=8443,ssl keystore=C:\Users\epknerg\.keystore,ssl
keystoreType=null,session timeout=30,listening
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
start
INFO: starting server: ServerControllerImpl{state=STOPPED}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.JettyServerImpl
addConnector
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.JettyServerImpl
start
INFO: starting JettyServerImpl{}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: jetty-6.1.x
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.util.JCLLogger info
2011-dec-15 09:46:18
org.ops4j.pax.web.service.internal.HttpServiceFactoryImpl getService
INFO: binding bundle: [org.apache.felix.webconsole [7]] to http service
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
configure
INFO: configuring server: ServerControllerImpl{state=STARTED} ->
ConfigurationImpl{http enabled=true,http port=8080,http secure
enabled=false,http sec
ure port=8443,ssl keystore=C:\Users\epknerg\.keystore,ssl
keystoreType=null,session timeout=30,listening
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.ServerControllerImpl
stop
INFO: stopping server: ServerControllerImpl{state=STARTED}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.JettyServerImpl stop
INFO: stopping JettyServerImpl{}
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.HttpServiceStarted
<init>
INFO: Creating http service for: org.apache.felix.webconsole [7]
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.HttpServiceProxy
createDefaultHttpContext
INFO: Creating adefault context
2011-dec-15 09:46:18 org.ops4j.pax.web.service.internal.HttpServiceProxy
registerServlet
INFO: Registering servlet: [/system/console] ->
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerWrapper
addContext
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.HttpServiceProxy
registerResources
INFO: Registering resource: [/system/console/res] -> /res
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.Activator start
INFO: Started pax http service
ERROR: Bundle org.apache.servicemix.bundles.xmlsec [27] Error starting
file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles
.xmlsec-1.3.0_1.jar (org.osgi.framework.BundleException: Unresolved
constraint in bundle org.apache.servicemix.bundles.xmlsec [27]: Unable to
resolve
27.0: missing requirement [27.0] osgi.wiring.package;
(osgi.wiring.package=org.w3c.dom.traversal))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.servicemix.bundles.xmlsec [27]: Unable to resolve 27.0: missing
require
ment [27.0] osgi.wiring.package; (osgi.wiring.package=org.w3c.dom.traversal)
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3818)
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)
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.HttpServiceStarted$1
stateChanged
INFO: Handling event: [STOPPED]
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.ServerControllerImpl
start
INFO: starting server: ServerControllerImpl{state=STOPPED}
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerImpl
addConnector
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerImpl
start
INFO: starting JettyServerImpl{}
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.util.JCLLogger info
INFO: jetty-6.1.x
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.util.JCLLogger info
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.HttpServiceStarted$1
stateChanged
INFO: Handling event: [STARTED]
2011-dec-15 09:46:19 org.ops4j.pax.web.service.internal.JettyServerWrapper
addContext
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.l
ang.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.NullP
ointerException)
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)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.Activator start
INFO: TopologyManager: start()
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl
getRegistrationProperties
INFO: EndpointListener: current filter: []
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.TopologyManager$1
addingService
INFO: TopologyManager: new EndpointListener that wants to be informed about
wants going on ...
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.event.EventAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.event.EventAdmin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (&(osgi.command.scope=*)(osgi.command.function=*))
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs [null]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.apache.felix.service.command.Converter)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.service.command.Converter]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.apache.felix.gogo.api.CommandSessionListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.gogo.api.CommandSessionListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.remoteserviceadmin.EndpointListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.springframework.osgi.context.event.OsgiBundleApplicationContextListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.springframework.osgi.context.event.OsgiBundleApplicationContextListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.apache.felix.bundlerepository.RepositoryAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.bundlerepository.RepositoryAdmin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=javax.servlet.Servlet)
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
INFO: EndpointListener: extending scope by
(&(objectClass=javax.servlet.Servlet)(!(endpoint.framework.uuid=b033bccb-5ba6-448c-bc5f-0fb3d7b393ff)))
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
[(&(objectClass=javax.servlet.Servlet)(!(endpoint.framework.uuid=b033bccb-5ba6-448c-bc5f-0fb3d7b393ff)))]
2011-dec-15 09:46:19
org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl
getRegistrationProperties
[(&(objectClass=javax.servlet.Servlet)(!(endpoint.framework.uuid=b033bccb-5ba6-448c-bc5f-0fb3d7b393ff)))]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.TopologyManager$1
modifiedService
INFO: TopologyManager: EndpointListener changed ...
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.apache.felix.webconsole.BrandingPlugin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.webconsole.BrandingPlugin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.apache.felix.webconsole.WebConsoleSecurityProvider)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.webconsole.WebConsoleSecurityProvider]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.http.HttpService)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.http.HttpService]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: null
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping empty filter
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping request from myself
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: null
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping request from myself
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.osgi.service.remoteserviceadmin.RemoteServiceAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping request from myself
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.log.LogService)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.log.LogService]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationListener)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ConfigurationListener]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.apache.felix.cm.PersistenceManager)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.cm.PersistenceManager]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ManagedService)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ManagedService]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ManagedServiceFactory)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ManagedServiceFactory]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
(objectClass=org.apache.felix.service.command.CommandProcessor)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.apache.felix.service.command.CommandProcessor]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.packageadmin.PackageAdmin]
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationAdmin)
2011-dec-15 09:46:19 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs
[org.osgi.service.cm.ConfigurationAdmin]
Once started this is the status of my bundles.
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 | 50|osgi.cmpn (4.2.0.200908310645)
16|Active | 81|Apache ServiceMix Specs :: JSR311 API 1.0 (1.3.0)
17|Active | 80|Apache ServiceMix Specs :: JAXWS API 2.1 (1.3.0)
18|Active | 79|Apache ServiceMix Specs :: JAXB API 2.1 (1.3.0)
19|Active | 78|Apache ServiceMix Specs :: STAX API 1.0 (1.3.0)
20|Active | 77|Apache ServiceMix Specs :: SAAJ API 1.3 (1.3.0)
21|Active | 76|Apache ServiceMix Bundles: commons-pool-1.5.4
(1.5.4.1)
22|Active | 75|Apache ServiceMix Bundles: woodstox-3.2.7 (3.2.7.1)
23|Active | 74|Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1)
24|Active | 73|Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1)
25|Active | 72|Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)
26|Active | 71|Apache ServiceMix Bundles: xmlschema-1.4.3 (1.4.3.1)
27|Installed | 70|Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1)
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)
I've appended this to the felix config.properties
org.ops4j.pax.web.session.timeout=30
org.osgi.framework.startlevel.beginning=85
felix.auto.start.50=file:addons/org.osgi.compendium-4.2.0.jar
felix.auto.start.51=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-annotation_1.0_spec-1.1.1.jar
felix.auto.start.52=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-activation_1.1_spec-1.0.2.jar
felix.auto.start.53=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-javamail_1.4_spec-1.2.jar
felix.auto.start.54=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-ws-metadata_2.0_spec-1.1.2.jar
felix.auto.start.55=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.apache.commons.logging-1.1.1.jar
felix.auto.start.56=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.jdom-1.0.0.jar
felix.auto.start.57=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-core-2.5.6.jar
felix.auto.start.58=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-beans-2.5.6.jar
felix.auto.start.59=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-context-2.5.6.jar
felix.auto.start.60=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.aopalliance-1.0.0.jar
felix.auto.start.61=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.api-1.5.10.jar
felix.auto.start.62=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar
felix.auto.start.63=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-aop-2.5.6.jar
felix.auto.start.64=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-io-1.2.0.jar
felix.auto.start.65=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-core-1.2.0.jar
felix.auto.start.66=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-extender-1.2.0.jar
felix.auto.start.67=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/pax-web-service-0.5.1.jar
felix.auto.start.68=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.jaxb-impl-2.1.6_1.jar
felix.auto.start.69=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar
felix.auto.start.70=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlsec-1.3.0_1.jar
felix.auto.start.71=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlschema-1.4.3_1.jar
felix.auto.start.72=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.asm-2.2.3_1.jar
felix.auto.start.73=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlresolver-1.2_1.jar
felix.auto.start.74=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.neethi-2.0.4_1.jar
felix.auto.start.75=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.woodstox-3.2.7_1.jar
felix.auto.start.76=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.commons-pool-1.5.4_1.jar
felix.auto.start.77=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.saaj-api-1.3-1.3.0.jar
felix.auto.start.78=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.stax-api-1.0-1.3.0.jar
felix.auto.start.79=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jaxb-api-2.1-1.3.0.jar
felix.auto.start.80=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jaxws-api-2.1-1.3.0.jar
felix.auto.start.81=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jsr311-api-1.0-1.3.0.jar
felix.auto.start.82=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-bundle-minimal-2.2.9.jar
felix.auto.start.83=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-discovery-local-1.2.jar
felix.auto.start.84=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.2.jar
felix.auto.start.85=file:addons/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-topology-manager-1.2.jar
--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5076919.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com
Peter Nerg
2011-12-15 12:17:29 UTC
Permalink
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=***@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.
Peter Nerg
2011-12-15 12:32:01 UTC
Permalink
Downloaded the latest Felix 4.0.2 and installed no other bundles than the
ones in the base installation.
Then I added:
org.osgi.framework.system.packages.extra=org.w3c.dom.traversal

+ I added all the bundles and configuration according to the documentation

NOW it works...*hmmm*.

Either it requires Felix 4.0.2 or something clashes with some other bundle I
have installed.
So I went back to Felix 4.0.1 and removed all the extra bundles:
org.apache.felix.configadmin-1.0.10.jar
org.apache.felix.fileinstall-1.0.0.jar
org.apache.felix.webconsole-3.1.8.jar

But it still fails.
Seems a bit rigid to require a specific version down to the build version.
A bit harsh to require such detailed version, and the error it threw out was
not very helpful

Anyways this is what I got now:
START LEVEL 85
ID|State |Level|Name
0|Active | 0|System Bundle (4.0.2)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
5|Active | 85|CXF dOSGi Topology Manager (1.2.0)
6|Active | 53|geronimo-javamail_1.4_spec (1.2.0)
7|Active | 84|CXF dOSGi Remote Service Admin Implementation
(1.2.0)
8|Active | 52|geronimo-activation_1.1_spec (1.0.2)
9|Active | 83|CXF Local Discovery Service Bundle (1.2.0)
10|Active | 51|geronimo-annotation_1.0_spec (1.1.1)
11|Active | 82|Apache CXF Minimal Bundle Jar (2.2.9)
12|Active | 81|Apache ServiceMix Specs :: JSR311 API 1.0 (1.3.0)
13|Active | 80|Apache ServiceMix Specs :: JAXWS API 2.1 (1.3.0)
14|Active | 79|Apache ServiceMix Specs :: JAXB API 2.1 (1.3.0)
15|Active | 78|Apache ServiceMix Specs :: STAX API 1.0 (1.3.0)
16|Active | 77|Apache ServiceMix Specs :: SAAJ API 1.3 (1.3.0)
17|Active | 76|Apache ServiceMix Bundles: commons-pool-1.5.4
(1.5.4.1)
18|Active | 75|Apache ServiceMix Bundles: woodstox-3.2.7 (3.2.7.1)
19|Active | 74|Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1)
20|Active | 73|Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1)
21|Active | 72|Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)
22|Active | 71|Apache ServiceMix Bundles: xmlschema-1.4.3 (1.4.3.1)
23|Active | 70|Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1)
24|Resolved | 50|osgi.compendium (4.1.0.build-200702212030)
25|Active | 69|Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1)
26|Active | 68|Apache ServiceMix Bundles: jaxb-impl-2.1.6 (2.1.6.1)
27|Active | 67|OPS4J Pax Web - Service (0.5.1)
28|Active | 66|spring-osgi-extender (1.2.0)
29|Active | 65|spring-osgi-core (1.2.0)
30|Active | 64|spring-osgi-io (1.2.0)
31|Active | 63|Spring AOP (2.5.6)
32|Resolved | 62|SLF4J Jakarta Commons Logging Binding (1.5.10)
33|Active | 61|SLF4J API (1.5.10)
34|Active | 60|AOP Alliance API (1.0.0)
35|Active | 59|Spring Context (2.5.6)
36|Active | 58|Spring Beans (2.5.6)
37|Active | 57|Spring Core (2.5.6)
38|Active | 56|JDOM DOM Processor (1.0.0)
39|Active | 55|Apache Commons Logging (1.1.1)
40|Active | 54|geronimo-ws-metadata_2.0_spec (1.1.2)

It's a step in the right direction, now I can start to play around.


--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5077327.html
Sent from the cxf-user mailing list archive at Nabble.com.
Sergey Beryozkin
2011-12-15 12:52:44 UTC
Permalink
Try building the trunk please, I did few minor changes - I've no idea
why 1.2 distributions do not work with Felix 4.0.1;

Cheers, Sergey
Post by Peter Nerg
Downloaded the latest Felix 4.0.2 and installed no other bundles than the
ones in the base installation.
org.osgi.framework.system.packages.extra=org.w3c.dom.traversal
+ I added all the bundles and configuration according to the documentation
NOW it works...*hmmm*.
Either it requires Felix 4.0.2 or something clashes with some other bundle I
have installed.
org.apache.felix.configadmin-1.0.10.jar
org.apache.felix.fileinstall-1.0.0.jar
org.apache.felix.webconsole-3.1.8.jar
But it still fails.
Seems a bit rigid to require a specific version down to the build version.
A bit harsh to require such detailed version, and the error it threw out was
not very helpful
START LEVEL 85
ID|State |Level|Name
0|Active | 0|System Bundle (4.0.2)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
5|Active | 85|CXF dOSGi Topology Manager (1.2.0)
6|Active | 53|geronimo-javamail_1.4_spec (1.2.0)
7|Active | 84|CXF dOSGi Remote Service Admin Implementation
(1.2.0)
8|Active | 52|geronimo-activation_1.1_spec (1.0.2)
9|Active | 83|CXF Local Discovery Service Bundle (1.2.0)
10|Active | 51|geronimo-annotation_1.0_spec (1.1.1)
11|Active | 82|Apache CXF Minimal Bundle Jar (2.2.9)
12|Active | 81|Apache ServiceMix Specs :: JSR311 API 1.0 (1.3.0)
13|Active | 80|Apache ServiceMix Specs :: JAXWS API 2.1 (1.3.0)
14|Active | 79|Apache ServiceMix Specs :: JAXB API 2.1 (1.3.0)
15|Active | 78|Apache ServiceMix Specs :: STAX API 1.0 (1.3.0)
16|Active | 77|Apache ServiceMix Specs :: SAAJ API 1.3 (1.3.0)
17|Active | 76|Apache ServiceMix Bundles: commons-pool-1.5.4
(1.5.4.1)
18|Active | 75|Apache ServiceMix Bundles: woodstox-3.2.7 (3.2.7.1)
19|Active | 74|Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1)
20|Active | 73|Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1)
21|Active | 72|Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)
22|Active | 71|Apache ServiceMix Bundles: xmlschema-1.4.3 (1.4.3.1)
23|Active | 70|Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1)
24|Resolved | 50|osgi.compendium (4.1.0.build-200702212030)
25|Active | 69|Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1)
26|Active | 68|Apache ServiceMix Bundles: jaxb-impl-2.1.6 (2.1.6.1)
27|Active | 67|OPS4J Pax Web - Service (0.5.1)
28|Active | 66|spring-osgi-extender (1.2.0)
29|Active | 65|spring-osgi-core (1.2.0)
30|Active | 64|spring-osgi-io (1.2.0)
31|Active | 63|Spring AOP (2.5.6)
32|Resolved | 62|SLF4J Jakarta Commons Logging Binding (1.5.10)
33|Active | 61|SLF4J API (1.5.10)
34|Active | 60|AOP Alliance API (1.0.0)
35|Active | 59|Spring Context (2.5.6)
36|Active | 58|Spring Beans (2.5.6)
37|Active | 57|Spring Core (2.5.6)
38|Active | 56|JDOM DOM Processor (1.0.0)
39|Active | 55|Apache Commons Logging (1.1.1)
40|Active | 54|geronimo-ws-metadata_2.0_spec (1.1.2)
It's a step in the right direction, now I can start to play around.
--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5077327.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com
Peter Nerg
2011-12-15 15:03:33 UTC
Permalink
Tried to build the source code but it fails.
I haven't analyzed it any further. Either there's a fault in the xsd file or
it's due to that I'm stuck on Windows and it affects the build.

.....
[INFO] Building Apache CXF Runtime SOAP Binding
[INFO] task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Starting audit...
Audit done.

[INFO] Preparing pmd:check
[INFO] [pmd:pmd {execution: pmd}]
[INFO] [pmd:check {execution: validate}]
[INFO]
[INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
[INFO] [remote-resources:process {execution: default}]
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 8 resources
[INFO] skip non existing resourceDirectory
C:\temp\svn\cxf\rt\bindings\soap\src\main\resources-filtered
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cxf-xjc:xsdtojava-tests {execution: generate-sources}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not map
C:\temp\svn\cxf\rt\bindings\soap/src/test/resources/wsdl_soap/rpc_lit.xsd

Embedded error: Illegal character in opaque part at index 2:
C:\temp\svn\cxf\rt\bindings\soap/src/test/resources/wsdl_soap/rpc_lit.xsd

--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5077728.html
Sent from the cxf-user mailing list archive at Nabble.com.
Sergey Beryozkin
2011-12-15 15:06:38 UTC
Permalink
Sorry, I meant the DOSGi RI source:

http://svn.apache.org/repos/asf/cxf/dosgi/trunk/

and then deploy it to Felix or Equinox

Cheers, Sergey
Post by Peter Nerg
Tried to build the source code but it fails.
I haven't analyzed it any further. Either there's a fault in the xsd file or
it's due to that I'm stuck on Windows and it affects the build.
.....
[INFO] Building Apache CXF Runtime SOAP Binding
[INFO] task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Starting audit...
Audit done.
[INFO] Preparing pmd:check
[INFO] [pmd:pmd {execution: pmd}]
[INFO] [pmd:check {execution: validate}]
[INFO]
[INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
[INFO] [remote-resources:process {execution: default}]
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 8 resources
[INFO] skip non existing resourceDirectory
C:\temp\svn\cxf\rt\bindings\soap\src\main\resources-filtered
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cxf-xjc:xsdtojava-tests {execution: generate-sources}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not map
C:\temp\svn\cxf\rt\bindings\soap/src/test/resources/wsdl_soap/rpc_lit.xsd
C:\temp\svn\cxf\rt\bindings\soap/src/test/resources/wsdl_soap/rpc_lit.xsd
--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5077728.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com
Peter Nerg
2011-12-16 07:01:13 UTC
Permalink
Sorry no luck, it fails on finding a dependency.
Is there a public maven repo I can map to get the snapshot versions?

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve dependencies for one or more projects in the
reactor. Reason: Missing:
----------
1)
org.apache.cxf.dosgi:cxf-dosgi-remote-service-admin-interfaces:jar:1.3-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.cxf.dosgi
-DartifactId=cxf-dosgi-remote-service-admin-interfaces
-Dversion=1.3-SNAPSHOT -Dpackagin
g=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.cxf.dosgi
-DartifactId=cxf-dosgi-remote-service-admin-interfaces
-Dversion=1.3-SNAPSHOT -Dpackaging=
jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.apache.cxf.dosgi:cxf-dosgi-ri-dsw-cxf:bundle:1.3-SNAPSHOT
2)
org.apache.cxf.dosgi:cxf-dosgi-remote-service-admin-interfaces:jar:1.3-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
org.apache.cxf.dosgi:cxf-dosgi-ri-dsw-cxf:bundle:1.3-SNAPSHOT

--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5079510.html
Sent from the cxf-user mailing list archive at Nabble.com.
Peter Nerg
2011-12-16 08:23:46 UTC
Permalink
Just realized that perhaps /mvn package/ is not sufficient as the
dependencies within the sub-modules may not be resolved so I tried /mvn
install/ and it worked...until I got an OutOfMemory...my poor laptop is
struggling...

I'll get back as soon as I've managed to build the source and
deploy/configure the binaries.


--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5079640.html
Sent from the cxf-user mailing list archive at Nabble.com.
Peter Nerg
2011-12-16 08:55:04 UTC
Permalink
Finally got it to build but it fails on a junit test case.
Tried a few times in case it would be an intermittent error, but no if fails
always.
Not sure what file it tries to access but it fails to find it anyways.

Results :

Tests in error:
testDiscoveryRoundtrip
[felix](org.apache.cxf.dosgi.systests2.single.TestDiscoveryRountrip): URL
[mvn:org.apache.felix/org.apache.felix.main/3.0.6]
could not be resolved.
testAccessEndpoint
[felix](org.apache.cxf.dosgi.systests2.single.TestExportService): URL
[mvn:org.apache.felix/org.apache.felix.main/3.0.6] could no
t be resolved.
testClientConsumer
[equinox](org.apache.cxf.dosgi.systests2.single.TestImportService): URL
[mvn:org.sonatype.tycho/org.eclipse.osgi/3.6.1.R36x_v2010
0806] could not be resolved.

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0


--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5079700.html
Sent from the cxf-user mailing list archive at Nabble.com.
Sergey Beryozkin
2011-12-16 09:47:43 UTC
Permalink
The last DOSGIi build passed in Jenkins, you may get the multibundle
distro from here:

https://builds.apache.org/job/CXF-DOSGi/194/org.apache.cxf.dosgi$cxf-dosgi-ri-multibundle-distribution/

Cheers, Sergey
Post by Peter Nerg
Finally got it to build but it fails on a junit test case.
Tried a few times in case it would be an intermittent error, but no if fails
always.
Not sure what file it tries to access but it fails to find it anyways.
testDiscoveryRoundtrip
[felix](org.apache.cxf.dosgi.systests2.single.TestDiscoveryRountrip): URL
[mvn:org.apache.felix/org.apache.felix.main/3.0.6]
could not be resolved.
testAccessEndpoint
[felix](org.apache.cxf.dosgi.systests2.single.TestExportService): URL
[mvn:org.apache.felix/org.apache.felix.main/3.0.6] could no
t be resolved.
testClientConsumer
[equinox](org.apache.cxf.dosgi.systests2.single.TestImportService): URL
[mvn:org.sonatype.tycho/org.eclipse.osgi/3.6.1.R36x_v2010
0806] could not be resolved.
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0
--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5079700.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com
Peter Nerg
2011-12-18 07:06:27 UTC
Permalink
I downloaded the multibundle built Dec 16, 2011 9:31:35 AM.
Modified the config-properties according to the example in the downloaded
bundle and cleared any bundle cache.
However it fails to start on both Felix 4.0.1 and 4.0.2, though I get
different errors:

*Felix 4.0.1:*
g! 2011-dec-18 07:58:07
org.springframework.osgi.extender.internal.support.ExtenderConfiguration
<init>
INFO: No custom extender configuration detected; using defaults...
2011-dec-18 07:58:07 org.springframework.scheduling.timer.TimerTaskExecutor
afterPropertiesSet
INFO: Initializing Timer
ERROR: Bundle org.eclipse.jetty.aggregate.jetty-all-server [23] Error
starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/jetty-all-se
rver-7.4.2.v20110526.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: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)
2011-dec-18 07:58:07 org.ops4j.pax.web.service.internal.Activator start
INFO: Pax Web started
ERROR: Bundle org.ops4j.pax.web.pax-web-jetty [20] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/pax-web-jetty-1.0.3.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: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)
ERROR: Bundle org.apache.cxf.bundle-minimal [39] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/cxf-bundle-minimal-2.5.0.ja
r (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: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)
2011-dec-18 07:58:08 org.apache.cxf.dosgi.discovery.local.internal.Activator
start
INFO: Local D-OSGi service discovery started
ERROR: Bundle cxf-dosgi-ri-dsw-cxf [33] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.3-SNAPSHOT.ja
r (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: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.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)

*Felix 4.0.2:*
ERROR: Bundle cxf-dosgi-ri-dsw-cxf [33] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.3-SNAPSHOT.ja
r (org.osgi.framework.BundleException: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [33]: Unable to resolve 33.0: missing requirement
[33.0] o
sgi.wiring.package;
(&(osgi.wiring.package=org.osgi.service.cm)(version>=1.3.0)(!(version>=2.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [33]: Unable to resolve 33.0: missing requirement
[33.0] osgi
.wiring.package;
(&(osgi.wiring.package=org.osgi.service.cm)(version>=1.3.0)(!(version>=2.0.0)))
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
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)


--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5083485.html
Sent from the cxf-user mailing list archive at Nabble.com.
Sergey Beryozkin
2011-12-19 11:44:56 UTC
Permalink
Sorry, not sure how I can help; I'm consistently seeing it working in
Felix 4.0.2, I saw the error you are seeing with 4.0.2, it gone for me
after I fixed the osgi compendium version to 4.2.0

Cheers, Sergey
Post by Peter Nerg
I downloaded the multibundle built Dec 16, 2011 9:31:35 AM.
Modified the config-properties according to the example in the downloaded
bundle and cleared any bundle cache.
However it fails to start on both Felix 4.0.1 and 4.0.2, though I get
*Felix 4.0.1:*
g! 2011-dec-18 07:58:07
org.springframework.osgi.extender.internal.support.ExtenderConfiguration
<init>
INFO: No custom extender configuration detected; using defaults...
2011-dec-18 07:58:07 org.springframework.scheduling.timer.TimerTaskExecutor
afterPropertiesSet
INFO: Initializing Timer
ERROR: Bundle org.eclipse.jetty.aggregate.jetty-all-server [23] Error
starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/jetty-all-se
rver-7.4.2.v20110526.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: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)
2011-dec-18 07:58:07 org.ops4j.pax.web.service.internal.Activator start
INFO: Pax Web started
ERROR: Bundle org.ops4j.pax.web.pax-web-jetty [20] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/pax-web-jetty-1.0.3.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: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)
ERROR: Bundle org.apache.cxf.bundle-minimal [39] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/cxf-bundle-minimal-2.5.0.ja
r (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: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)
2011-dec-18 07:58:08 org.apache.cxf.dosgi.discovery.local.internal.Activator
start
INFO: Local D-OSGi service discovery started
ERROR: Bundle cxf-dosgi-ri-dsw-cxf [33] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.3-SNAPSHOT.ja
r (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: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.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)
*Felix 4.0.2:*
ERROR: Bundle cxf-dosgi-ri-dsw-cxf [33] Error starting
file:addons/apache-cxf-dosgi-ri-1.3-SNAPSHOT/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.3-SNAPSHOT.ja
r (org.osgi.framework.BundleException: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [33]: Unable to resolve 33.0: missing requirement
[33.0] o
sgi.wiring.package;
(&(osgi.wiring.package=org.osgi.service.cm)(version>=1.3.0)(!(version>=2.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle
cxf-dosgi-ri-dsw-cxf [33]: Unable to resolve 33.0: missing requirement
[33.0] osgi
.wiring.package;
(&(osgi.wiring.package=org.osgi.service.cm)(version>=1.3.0)(!(version>=2.0.0)))
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
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)
--
View this message in context: http://cxf.547215.n5.nabble.com/Unresolved-constraint-in-bundle-when-starting-DOSGi-on-Felix-4-0-1-tp5076919p5083485.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com
Continue reading on narkive:
Loading...