Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B81ED95D1 for ; Tue, 24 Jan 2012 11:23:05 +0000 (UTC) Received: (qmail 77682 invoked by uid 500); 24 Jan 2012 11:23:05 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 77527 invoked by uid 500); 24 Jan 2012 11:23:03 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 77519 invoked by uid 99); 24 Jan 2012 11:23:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 11:23:03 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 11:22:55 +0000 Received: by wicr5 with SMTP id r5so3751043wic.0 for ; Tue, 24 Jan 2012 03:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bDf1QFXqB+ePnFItqNzw/NiASZLZ4tiHYcRXz66T4rU=; b=bbti84K3UCLxx1sePM7V4syTefyQIFraVeVHht8sPwqBe7sOnRZHK8i2AHfQjboCgh 8M0pXuYfsTtg17hde9rZb0RykGe5BlXF3PlUwiZp5brazp0IXcShstxVNAGwy9zM45ga UB3+Rg5DJfzuld1ZPWtaXUxwt5f3xk5j8OsBA= Received: by 10.180.94.97 with SMTP id db1mr19940682wib.16.1327404155467; Tue, 24 Jan 2012 03:22:35 -0800 (PST) Received: from [10.36.226.4] ([217.173.99.61]) by mx.google.com with ESMTPS id n5sm32460922wiw.7.2012.01.24.03.22.32 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 03:22:33 -0800 (PST) Message-ID: <4F1E9478.9060404@gmail.com> Date: Tue, 24 Jan 2012 11:22:32 +0000 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Re: Problem with export a service with D-OSGi References: <1327063929132-5160304.post@n5.nabble.com> <4F1D553B.6010807@gmail.com> <4F1D601C.6010108@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Please follow this documentation: http://cxf.apache.org/dosgi-multi-bundle-setup.html I have not seen such issues with DOSGI 1.3-SNAPSHOT Sergey On 23/01/12 17:30, Jesus wrote: > Hi Sergey, > > I read the thread that you recommended to me and now my application lunch > the next exception: > > Do you have any idea about this? > > Thanks in advance, Jesus > > g! 23-ene-2012 18:23:36 > org.apache.cxf.dosgi.topologymanager.TopologyManager$2 run > INFO: TopologyManager: exporting service ... > 23-ene-2012 18:23:36 org.apache.cxf.dosgi.topologymanager.TopologyManager$2 > run > INFO: TopologyManager: handling remoteServiceAdmin > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance@600ee8 > 23-ene-2012 18:23:36 org.apache.cxf.dosgi.topologymanager.TopologyManager$2 > run > INFO: TopologyManager: exporting ... > 23-ene-2012 18:23:36 org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap > ADVERTENCIA: Intent map load failed: > org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected > exception parsing XML document from OSGi > resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml|bnd.id=131|bnd.sym=cxf-dosgi-ri-singlebundle-distribution]; > nested exception is javax.xml.parsers.FactoryConfigurationError: Provider > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) > at > org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) > at > org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) > at > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) > at > org.springframework.context.support.AbstractApplicationContext.obtain > FreshBeanFactory(AbstractApplicationContext.java:467) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69 > ) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186) > at > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java > :182) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExec > utionApplicationContext.java:89) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) > at > org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:406) > at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:376) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:137) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66) > at java.security.AccessController.doPrivileged(Native Method) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38) > at > org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267) > 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: javax.xml.parsers.FactoryConfigurationError: Provider > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found > at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown > Source) > at > org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:89) > at > org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) > ... 28 more > > > On Mon, Jan 23, 2012 at 2:28 PM, elMateo wrote: > >> Thanks a lot!! >> >> I'm going to do this. >> >> >> On Mon, Jan 23, 2012 at 2:27 PM, Sergey Beryozkin-5 [via CXF]< >> ml-node+s547215n5166077h24@n5.nabble.com> wrote: >> >>> Have a look at this thread which may be of help: >>> >>> http://cxf.547215.n5.nabble.com/WSDL-configuration-driven-from-WSDL-with-Apache-CXF-Distributed-OSGi-td5125029.html >>> >>> Consider debugging the source code if it does not work, it appears >>> though that the wsdl location is not set correctly. >>> >>> Sergey >>> >>> On 23/01/12 13:01, Jesus wrote: >>> >>>> I'm testing now with that version, but I haven't very clear what >>>> information I have to write for develop a service with a wsdl file. >>>> My code is this, and I don't access to the wsdl file: >>>> Dictionary props = new Hashtable(); >>>> props.put("osgi.remote.interfaces", "*"); >>>> props.put("osgi.remote.configuration.type", "wsdl"); >>>> props.put("service.exported.configs", "wsdl"); >>>> props.put("osgi.remote.configuration.wsdl.location", >>>> "wsdl/myservice.wsdl"); >>>> registration = bc.registerService(MyInterface.class.getName(), >>>> new MyImplentation(), props); >>>> >>>> I'm crazy with this :( >>>> >>>> >>>> On Mon, Jan 23, 2012 at 1:41 PM, Sergey Beryozkin-5 [via CXF]< >>>> [hidden email]> >>> wrote: >>>> >>>>> Does it work with 1.3-SNAPSHOT ? >>>>> >>>>> Cheers, Sergey >>>>> >>>>> On 20/01/12 12:52, Jesus wrote: >>>>> >>>>>> (Sorry for duplicate this message, but I don't know if this is the >>>>> correct >>>>>> forum) >>>>>> Hello, >>>>>> >>>>>> I'm develop a bundle to export a service, and I'm using DOSGi >>>>> (multi-bundle >>>>>> distribution) and Apache-Felix. >>>>>> >>>>>> I install my bundle and, when DOSGi detects, ApacheFelix throws these >>>>>> exceptions: >>>>>> >>>>>> g! ERROR: Bundle cxf-dosgi-ri-discovery-local [46] EventDispatcher: >>>>> Error >>>>>> during >>>>>> dispatch. (java.lang.IncompatibleClassChangeError: Class >>>>>> org.jdom.input.SAXHand >>>>>> ler does not implement the requested interface >>>>> org.xml.sax.ContentHandler) >>>>>> java.lang.IncompatibleClassChangeError: Class >>> org.jdom.input.SAXHandler >>>>> does >>>>>> not >>>>>> implement the requested interface org.xml.sax.ContentHandler >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startDoc >>>>>> ument(Unknown Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startDocu >>>>>> ment(Unknown Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.startE >>>>>> ntity(Unknown Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.startDocum >>>>>> entParsing(Unknown Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U >>>>>> nknown Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U >>>>>> nknown Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So >>>>>> urce) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un >>>>>> known Source) >>>>>> at >>>>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p >>>>>> arse(Unknown Source) >>>>>> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453) >>>>>> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770) >>>>>> at >>>>>> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryUtils.getElements( >>>>>> LocalDiscoveryUtils.java:567) >>>>>> at >>>>>> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryUtils.getAllDescri >>>>>> ptionElements(LocalDiscoveryUtils.java:376) >>>>>> at >>>>>> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryUtils.getAllEndpoi >>>>>> ntDescriptions(LocalDiscoveryUtils.java:86) >>>>>> at >>>>>> org.apache.cxf.dosgi.discovery.local.internal.LocalDiscovery.findDecl >>>>>> aredRemoteServices(LocalDiscovery.java:181) >>>>>> at >>>>>> org.apache.cxf.dosgi.discovery.local.internal.LocalDiscovery.bundleCh >>>>>> anged(LocalDiscovery.java:172) >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerC >>>>>> allback(EventDispatcher.java:868) >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately( >>>>>> EventDispatcher.java:789) >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.j >>>>>> ava:1088) >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispa >>>>>> tcher.java:54) >>>>>> at >>>>>> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher >>>>>> .java:101) >>>>>> at java.lang.Thread.run(Unknown Source) >>>>>> >>>>>> Can anybody help me? >>>>>> >>>>>> Thanks in advance >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>> >>> http://cxf.547215.n5.nabble.com/Problem-with-export-a-service-with-D-OSGi-tp5160304p5160304.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 >>>>> >>>>> >>>>> ------------------------------ >>>>> If you reply to this email, your message will be added to the >>> discussion >>>>> below: >>>>> >>>>> >>> >>>>> . >>>>> NAML< >>> http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>> >>>>> >>>> >>>> >>>> -- >>>> View this message in context: >>> http://cxf.547215.n5.nabble.com/Problem-with-export-a-service-with-D-OSGi-tp5160304p5166007.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 >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the >>> discussion below: >>> >>> http://cxf.547215.n5.nabble.com/Problem-with-export-a-service-with-D-OSGi-tp5160304p5166077.html >>> To unsubscribe from Problem with export a service with D-OSGi, click >>> here >>> . >>> NAML >>> >> >> > > > -- > View this message in context: http://cxf.547215.n5.nabble.com/Problem-with-export-a-service-with-D-OSGi-tp5160304p5166801.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