Hello, 
i'm just starting to evaluate D-OSGI and i just run into something that i
dont understand.

I've created a Service with Declarative Service that is registered within
Zookeeper. Everything is ok when i start the bundle within Equinox and using
the embedded Jetty Server.

But, when i try to run the same Bundle within Tomcat wrapping the OSGI
platform with the ServletBridge, the new node is not registered within
ZooKeeper althought the bundle has created a connection on Zookeeper.

Here are the related logs if somebody has an idea : 

INFO: Setting the server's publish address to be /
31 mars 2011 19:46:29
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore exportService
INFO: created server for interface
xsc.ilium.core.entities.services.IStoreService
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: *** Filter: (service.id=51)
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl
added
INFO: ListenerHookImpl: skipping import request for excluded classs [null]
31 mars 2011 19:46:29
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminListenerImpl
remoteAdminEvent
INFO: Unhandled event type received: 2
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager$2
run
INFO: TopologyManager: export sucessful Endpoints:[Endpoint Desctiption for
ServiceReference
{xsc.ilium.core.entities.services.IStoreService}={ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.osgi.service.http.port=8998, component.name=xsc.ilium.core.components,
org.apache.cxf.ws.httpservice.context=/ilium, component.id=0,
service.exported.configs=org.apache.cxf.ws, service.exported.interfaces=*,
service.id=51}
*** EndpointDescription: **** 
component.id  => 0
component.name  => xsc.ilium.core.components
endpoint.framework.uuid  => f717d1a9-e2c0-48e2-836a-ad161d3f371a
endpoint.id  => http://192.168.1.65:8080/ilium
endpoint.package.version.xsc.ilium.core.entities.services  => 0.0.0
endpoint.service.id  => 51
ManagedService.target  =>
(service.pid=org.apache.cxf.dosgi.discovery.zookeeper)
objectClass  => [Ljava.lang.String;@1f31ad9
org.apache.cxf.ws.address  => http://192.168.1.65:8080/ilium
org.apache.cxf.ws.httpservice.context  => /ilium
org.osgi.service.http.port  => 8998
service.imported  => true
service.imported.configs  => [Ljava.lang.String;@167acf2
service.intents  => [Ljava.lang.String;@18b4ccb

*** Exception: null **** 
*** isClosed : false ****

]
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: TopologyManager: notifyListenerOfAddingIfAppropriate() 
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.core.runtime.IExtensionRegistry)(!(endpoint.framework.uuid=82189505-86db-44f6-98cc-471c9d88a5fe)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.service.debug.DebugOptions)(!(endpoint.framework.uuid=9bfaa416-a9d5-499b-aa74-a82a62efb74a)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(&(objectClass=org.eclipse.osgi.service.datalocation.Location)(type=osgi.configuration.area))(!(endpoint.framework.uuid=0a97a080-7c22-41d7-9795-17663429a0eb)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=javax.xml.parsers.SAXParserFactory)(!(endpoint.framework.uuid=7b23c8c0-bd0f-482b-8256-2f92e570593a)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=adf57a2d-b835-41d5-bde0-0d34cfede878)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=aeafd54c-829a-4e37-b25e-9d3683db287e)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=23fd103a-05f6-4f56-b866-677292f7e3e6)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=66e538c1-a7e7-4b3a-a60d-1968688e3280)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(&(objectClass=org.eclipse.osgi.service.datalocation.Location)(type=osgi.configuration.area))(!(endpoint.framework.uuid=0d398c73-797c-4c7a-8351-da8098f66746)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(&(objectClass=org.eclipse.osgi.service.datalocation.Location)(type=osgi.install.area))(!(endpoint.framework.uuid=38fb6804-aff9-4e1f-8cbc-789dc60bb477)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.service.debug.DebugOptions)(!(endpoint.framework.uuid=4f84dc8d-808f-4dd8-9d86-4b3bee92bd2a)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(&(objectClass=org.eclipse.osgi.service.datalocation.Location)(type=osgi.install.area))(!(endpoint.framework.uuid=a8251998-897e-48ad-be81-a90674f31c56)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(&(objectClass=org.eclipse.osgi.service.urlconversion.URLConverter)(protocol=platform))(!(endpoint.framework.uuid=edd690cc-c810-4909-ab45-9f10641e436c)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.service.localization.BundleLocalization)(!(endpoint.framework.uuid=82c5f692-34d0-4f03-a0aa-c6769b037ea3)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.osgi.service.debug.DebugOptions)(!(endpoint.framework.uuid=bd4973cb-7268-41ec-853e-9e45b405a7ab)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=org.eclipse.equinox.internal.util.threadpool.ThreadPoolManager)(!(endpoint.framework.uuid=569ea67c-c0ce-44f3-9e9b-e4ab8bc40327)))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: TopologyManager: notifyListenerOfAddingIfAppropriate() 
31 mars 2011 19:46:29 org.apache.cxf.dosgi.topologymanager.TopologyManager
notifyListenerOfAddingIfAppropriate
INFO: Matching:
(&(objectClass=*)(endpoint.framework.uuid=e0740e0b-d92f-4ec5-a021-d5536222b7bf))
 
against {service.imported.configs=[Ljava.lang.String;@167acf2,
org.apache.cxf.ws.httpservice.context=/ilium,
objectClass=[Ljava.lang.String;@1f31ad9, endpoint.service.id=51,
component.id=0, service.intents=[Ljava.lang.String;@18b4ccb,
service.imported=true,
ManagedService.target=(service.pid=org.apache.cxf.dosgi.discovery.zookeeper),
org.apache.cxf.ws.address=http://192.168.1.65:8080/ilium,
endpoint.id=http://192.168.1.65:8080/ilium,
endpoint.package.version.xsc.ilium.core.entities.services=0.0.0,
component.name=xsc.ilium.core.components, org.osgi.service.http.port=8998,
endpoint.framework.uuid=f717d1a9-e2c0-48e2-836a-ad161d3f371a}


--
View this message in context: 
http://cxf.547215.n5.nabble.com/D-OSGI-within-tomcat-issues-with-Zookeeper-tp4273827p4273827.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to