This is the trace when I launch Apache Felix with Drools bundles dependencies, my Drools application bundle and DOSGi bundles:

org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler@103c29b
26-ene-2012 18:48:52 org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler createServer
INFO: Creating a org.apache.cxf.dosgi.samples.greeter.GreeterService endpoint from CXF PublishHook, address is http://localhost:9090/greeter
26-ene-2012 18:48:52 org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
INFO: Could not find intent map file /OSGI-INF/cxf/intents/intent-map.xml
26-ene-2012 18:48:52 org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
INFO: Injected intents: {}
Loading Intent map from [classpath:/OSGI-INF/cxf/intents/intent-map.xml]
26-ene-2012 18:48:53 org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
INFO: Injected intents: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature@6ef
7ba, logging=org.apache.cxf.feature.LoggingFeature@149f041, SOAP=org.apache.cxf.
binding.soap.SoapBindingConfiguration@13c53a8, SOAP.1_1=org.apache.cxf.binding.soap.SoapBindingConfiguration@13c53a8, SOAP.1_2=org.apache.cxf.binding.soap.SoapB
indingConfiguration@1984a9d, HTTP=PROVIDED}
application context: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@29d294: display name [OsgiBundleXmlApplicationContext(bundle=cxf-dosgi-ri-singlebundle-distribution, config=classpath:/OSGI-INF/cxf/intents/intent-map.xml)]; startup date [Thu Jan 26 18:48:52 CET 2012]; root of context hierarchy
retrieved intent map: IntentMap: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature@6ef7ba, logging=org.apache.cxf.feature.LoggingFeature@149f041, SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@13c53a8, SOAP.1_1=org.apache.cxf.
binding.soap.SoapBindingConfiguration@13c53a8, SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@1984a9d, HTTP=PROVIDED}
26-ene-2012 18:48:53 org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfiguration
TypeHandler processIntent
INFO: Applying intent: SOAP via binding config: org.apache.cxf.binding.soap.Soap
BindingConfiguration@13c53a8
26-ene-2012 18:48:53 org.apache.cxf.bus.spring.SpringBusFactory createApplicationContext
ADVERTENCIA: Initial attempt to create application context was unsuccessful.org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.Ws
txSAXParser does not implement the requested interface org.xml.sax.Attributes
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
        at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:109)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
        at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:262)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
        at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
        at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
        at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
        at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
        at org.apache.cxf.endpoint.AbstractEndpointFactory.getBus(AbstractEndpointFactory.java:82)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:227)
        at org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory(ServerFactoryBean.java:145)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:98)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
        at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:125)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:244)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:78)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:71)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:40)
        at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:254)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.WstxSAXParser does not implement the requested interface org.xml.sax.Attributes
        at org.apache.cxf.staxutils.StreamWriterContentHandler.startElement(StreamWriterContentHandler.java:210)
        at com.ctc.wstx.sr.BasicStreamReader.fireSaxStartElement(BasicStreamReader.java:1636)
        at com.ctc.wstx.sax.WstxSAXParser.fireStartTag(WstxSAXParser.java:620)
        at com.ctc.wstx.sax.WstxSAXParser.fireEvents(WstxSAXParser.java:513)
        at com.ctc.wstx.sax.WstxSAXParser.parse(WstxSAXParser.java:445)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:379)
        at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:113)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
        ... 35 more
26-ene-2012 18:48:53 org.apache.cxf.bus.spring.SpringBusFactory createBus
ADVERTENCIA: Failed to create application context.
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.xml]; neste
d exception is java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.WstxSAXParser does not implement the requested interface org.xml.sax.Attributes
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
        at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:109)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
        at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:262)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
        at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
        at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
        at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
        at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
        at org.apache.cxf.endpoint.AbstractEndpointFactory.getBus(AbstractEndpointFactory.java:82)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:227)
        at org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory(ServerFactoryBean.java:145)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:98)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
        at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:125)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:244)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:78)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:71)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:40)
        at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:254)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.WstxSA
XParser does not implement the requested interface org.xml.sax.Attributes
        at org.apache.cxf.staxutils.StreamWriterContentHandler.startElement(StreamWriterContentHandler.java:210)
        at com.ctc.wstx.sr.BasicStreamReader.fireSaxStartElement(BasicStreamReader.java:1636)
        at com.ctc.wstx.sax.WstxSAXParser.fireStartTag(WstxSAXParser.java:620)
        at com.ctc.wstx.sax.WstxSAXParser.fireEvents(WstxSAXParser.java:513)
        at com.ctc.wstx.sax.WstxSAXParser.parse(WstxSAXParser.java:445)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:379)
        at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:113)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
        ... 35 more
Exception in thread "pool-1-thread-1" java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.xml]; 
nested exception is java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.WstxSAXParser does not implement the requested interface org.xml.sax.Attributes
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:96)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
        at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
        at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
        at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
        at org.apache.cxf.endpoint.AbstractEndpointFactory.getBus(AbstractEndpointFactory.java:82)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:227)
        at org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory(ServerFactoryBean.java:145)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:98)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
        at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:125)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:244)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:78)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:71)
        at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:40)
        at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:254)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.
xml]; nested exception is java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.WstxSAXParser does not implement the requested interface org.xml.sax.Attributes
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
        at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:109)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
        at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:262)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
        at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
        ... 22 more
Caused by: java.lang.IncompatibleClassChangeError: Class com.ctc.wstx.sax.WstxSAXParser does not implement the requested interface org.xml.sax.Attributes
        at org.apache.cxf.staxutils.StreamWriterContentHandler.startElement(StreamWriterContentHandler.java:210)
        at com.ctc.wstx.sr.BasicStreamReader.fireSaxStartElement(BasicStreamReader.java:1636)
        at com.ctc.wstx.sax.WstxSAXParser.fireStartTag(WstxSAXParser.java:620)
        at com.ctc.wstx.sax.WstxSAXParser.fireEvents(WstxSAXParser.java:513)
        at com.ctc.wstx.sax.WstxSAXParser.parse(WstxSAXParser.java:445)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:379)
        at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:113)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
        ... 35 more

On Thu, Jan 26, 2012 at 6:23 PM, salaboy [via Drools] <[hidden email]> wrote:
I'm not seeing any error there.. so you must find in your container
what the error is..
Look at the Apache Felix container to see what is failing.
Cheers

On Thu, Jan 26, 2012 at 2:19 PM, jjmartinez <[hidden email]> wrote:

> When I test a bundle with a service in Apache Felix and try to export this
> service with DOSGi, all run ok and I can get the wsdl file from a navigator.
> But when I start my Drools Bundle with a simple service, DOSGi show some
> errors (refers to XML) and I don't achieve the wsdl file.
>
> The traces emitted when my bundle starts are these:
>
> /g! start 739
> Start bundle!!

> Export Service from Activator Class
> Run OK!
> 25-ene-2012 14:41:26
> org.apache.cxf.dosgi.topologymanager.ServiceListenerImpl serviceChanged
> INFO: calling TopologyManager -> registered service
> 25-ene-2012 14:41:26 org.apache.cxf.dosgi.topologymanager.TopologyManager
> export Service
> INFO: TopologyManager: adding service to exportedServices list to export it
> --- from bundle:  MyServiceImpl
> 25-ene-2012 14:41:26 org.apache.cxf.dosgi.topologymanager.TopologyManager$2
> run
> INFO: TopologyManager: exporting  serice ...
> 25-ene-2012 14:41:26
> org.apache.cxf.dosgi.topologymanager.ServiceListenerImpl serviceChanged
> INFO: calling TopologyManager -> registered service
> 25-ene-2012 14:41:26 org.apache.cxf.dosgi.topologymanager.TopologyManager
> export Service
> INFO: TopologyManager: adding service to exportedServices list to export it
> --- from bundle:  MyServiceImpl
> 25-ene-2012 14:41:26 org.apache.cxf.dosgi.topologymanager.TopologyManager$2
> run
> INFO: TopologyManager: exporting  serice ...
> g!/
>
> And DOSGi not publish my service :(
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-and-DOSGi-tp3690930p3691030.html

> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users



--
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org

 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users



If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/Drools-and-DOSGi-tp3690930p3691045.html
To unsubscribe from Drools and DOSGi, click here.
NAML



View this message in context: Re: [rules-users] Drools and DOSGi
Sent from the Drools: User forum mailing list archive at Nabble.com.