cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject Re: Re: D-OSGi question
Date Mon, 16 Feb 2009 12:42:44 GMT
Hi Thomas,

I think this may be a bundle ordering issue. I have seen exceptions
like this before when a spring file was being parsed while the actual
bundle that contains the schema was not yet installed. I'm not sure
whether there is a clean, order-independent way of solving this with
Spring-DM yet.

The multi-bundle distribution (
http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/dosgi/cxf-dosgi-ri-multibundle-distribution/1.0-SNAPSHOT/cxf-dosgi-ri-multibundle-distribution-1.0-SNAPSHOT.zip
) contains two files in the conf subdirectory that you can use with
Felix or Equinox to load all the bundles in the correct order. I've
attached the one I just used for Eclipse FYI.

I just tried it out again, and my list of bundles is as follows, which
works fine for me :)
0       ACTIVE      org.eclipse.osgi_3.5.0.v20081201-1815
1       ACTIVE      org.eclipse.osgi.services_3.2.0.v20081205-1800
2       ACTIVE      org.apache.geronimo.specs.geronimo-annotation_1.0_spec_1.1.1
3       ACTIVE      org.apache.geronimo.specs.geronimo-activation_1.1_spec_1.0.2
4       ACTIVE      org.apache.geronimo.specs.geronimo-javamail_1.4_spec_1.2.0
5       ACTIVE
org.apache.geronimo.specs.geronimo-ws-metadata_2.0_spec_1.1.2
6       ACTIVE      com.springsource.org.apache.commons.logging_1.1.1
7       ACTIVE      com.springsource.org.jdom_1.0.0
8       ACTIVE      org.springframework.bundle.spring.core_2.5.5
9       ACTIVE      org.springframework.bundle.spring.beans_2.5.5
10      ACTIVE      org.springframework.bundle.spring.context_2.5.5
11      ACTIVE      com.springsource.org.aopalliance_1.0.0
12      ACTIVE      org.springframework.bundle.spring.aop_2.5.5
13      ACTIVE      org.springframework.bundle.osgi.io_1.1.2
14      ACTIVE      org.springframework.bundle.osgi.core_1.1.2
15      ACTIVE      org.springframework.bundle.osgi.extender_1.1.2
16      ACTIVE      org.ops4j.pax.web.service_0.5.1
17      ACTIVE      unknown_0.0.0 [17]
18      ACTIVE      org.apache.servicemix.bundles.jaxb-impl_2.1.6.1
19      ACTIVE      org.apache.servicemix.bundles.wsdl4j_1.6.1.1
20      ACTIVE      org.apache.servicemix.bundles.xmlsec_1.3.0.1
21      ACTIVE      org.apache.servicemix.bundles.wss4j_1.5.4.1
22      ACTIVE      org.apache.servicemix.bundles.xmlschema_1.4.2.1
23      ACTIVE      org.apache.servicemix.bundles.asm_2.2.3.1
24      ACTIVE      org.apache.servicemix.bundles.xmlresolver_1.2.0.1
25      ACTIVE      org.apache.servicemix.bundles.neethi_2.0.4.1
26      ACTIVE      org.apache.servicemix.bundles.woodstox_3.2.7.1
27      ACTIVE      org.apache.cxf.cxf-bundle-minimal_2.2.0.SNAPSHOT
28      ACTIVE      org.apache.servicemix.specs.saaj-api-1.3_1.1.1
29      ACTIVE      org.apache.servicemix.specs.stax-api-1.0_1.1.1
30      ACTIVE      org.apache.servicemix.specs.jaxb-api-2.1_1.1.1
31      ACTIVE      org.apache.servicemix.specs.jaxws-api-2.1_1.1.1
32      ACTIVE      cxf-dosgi-ri-discovery-local_1.0.0.SNAPSHOT
33      ACTIVE      cxf-dosgi-ri-dsw-cxf_1.0.0.SNAPSHOT
34      ACTIVE      cxf-dosgi-ri-samples-greeter-interface_1.0.0.SNAPSHOT
35      ACTIVE      cxf-dosgi-ri-samples-greeter-impl_1.0.0.SNAPSHOT

Hope this helps,

David

2009/2/16  <Thomas.2.Merk@continental-corporation.com>:
>
> Hi David
>
> Thank you for the fast response. Below is the console output :
>
>
> osgi> 16.02.2009 11:15:51
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@111b910:
> display name [OsgiBundleXmlApplicationContext(bundle=cxf-dosgi-ri-dsw-cxf,
> config=classpath:/OSGI-INF/cxf/intents/intent-map.xml)]; startup date [Mon
> Feb 16 11:15:51 CET 2009]; root of context hierarchy
> 16.02.2009 11:15:51
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from OSGi
> resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml|bnd.id=4|bnd.sym=cxf-dosgi-ri-dsw-cxf]
> 16.02.2009 11:16:13 org.springframework.util.xml.SimpleSaxErrorHandler
> warning
> WARNUNG: Ignored XML validation warning
> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
> document 'http://www.springframework.org/schema/beans/spring-beans.xsd',
> because 1) could not find the document; 2) the document could not be read;
> 3) the root element of the document is not <xsd:schema>.
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
>         at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>         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.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:166)
>         at
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:132)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>         at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:148)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:73)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
>         at
> org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:405)
>         at
> org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:380)
>         at
> org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:92)
>         at
> org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:83)
>         at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:66)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:804)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779)
>         at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:362)
>         at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1084)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:550)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:219)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:329)
> 16.02.2009 11:16:13
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext
> normalRefresh
> SCHWERWIEGEND: Refresh error
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 33 in XML document from OSGi
> resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml|bnd.id=4|bnd.sym=cxf-dosgi-ri-dsw-cxf]
> is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1:
> Cannot find the declaration of element 'beans'.
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>         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.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:166)
>         at
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:132)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>         at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:148)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:73)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
>         at
> org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:405)
>         at
> org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:380)
>         at
> org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:92)
>         at
> org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:83)
>         at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:66)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:804)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779)
>         at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:362)
>         at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1084)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:550)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:219)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:329)
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the
> declaration of element 'beans'.
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
>         at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>         ... 31 more
> 16.02.2009 11:16:13 org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
> WARNUNG: Intent map load failed:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 33 in XML document from OSGi
> resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml|bnd.id=4|bnd.sym=cxf-dosgi-ri-dsw-cxf]
> is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1:
> Cannot find the declaration of element 'beans'.
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>         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.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:166)
>         at
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:132)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>         at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:148)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:73)
>         at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
>         at
> org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:405)
>         at
> org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:380)
>         at
> org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:92)
>         at
> org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:83)
>         at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:66)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:804)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779)
>         at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:362)
>         at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1084)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:550)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:219)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:329)
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the
> declaration of element 'beans'.
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
>         at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>         ... 31 more
> 16.02.2009 11:16:13 org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
> INFO: Injected intents: {}
> ss
>
> Framework is launched.
>
> id        State       Bundle
> 0        ACTIVE      org.eclipse.osgi_3.5.0.v20081201-1815
> 1        ACTIVE
>  org.apache.geronimo.specs.geronimo-activation_1.1_spec_1.0.2
> 2        ACTIVE      tm_dosgi_sample_interface_1.0.0
> 3        ACTIVE      org.apache.servicemix.bundles.xmlschema_1.4.2.1
> 4        ACTIVE      cxf-dosgi-ri-dsw-cxf_1.0.0.SNAPSHOT
> 5        ACTIVE      org.springframework.bundle.spring.core_2.5.5
> 6        ACTIVE
>  org.apache.geronimo.specs.geronimo-annotation_1.0_spec_1.1.1
> 7        ACTIVE      com.springsource.org.jdom_1.0.0
> 8        ACTIVE      org.apache.servicemix.specs.saaj-api-1.3_1.1.1
> 9        ACTIVE      org.apache.cxf.cxf-bundle-minimal_2.2.0.SNAPSHOT
> 10        ACTIVE      org.apache.servicemix.specs.jaxb-api-2.1_1.1.1
> 11        ACTIVE      org.springframework.bundle.spring.context_2.5.5
> 12        ACTIVE      org.apache.servicemix.bundles.xmlsec_1.3.0.1
> 13        ACTIVE      org.apache.servicemix.specs.stax-api-1.0_1.1.1
> 14        ACTIVE      org.springframework.bundle.spring.aop_2.5.5
> 15        ACTIVE      org.springframework.bundle.osgi.core_1.1.2
> 16        ACTIVE      javax.servlet_2.5.0.v200806031605
> 17        ACTIVE      org.apache.servicemix.specs.jaxws-api-2.1_1.1.1
> 20        ACTIVE      org.objectweb.asm_3.1.0.v200803061910
> 21        ACTIVE      org.eclipse.osgi.services_3.2.0.v20081205-1800
> 22        ACTIVE      org.springframework.bundle.osgi.io_1.1.2
> 23        ACTIVE      org.apache.servicemix.bundles.neethi_2.0.4.1
> 24        ACTIVE      org.apache.commons.logging_1.0.4.v20080605-1930
> 25        ACTIVE      org.apache.servicemix.bundles.wsdl4j_1.6.1.1
> 26        ACTIVE      org.apache.servicemix.bundles.xmlresolver_1.2.0.1
> 29        ACTIVE
>  org.apache.geronimo.specs.geronimo-ws-metadata_2.0_spec_1.1.2
> 31        ACTIVE      com.springsource.org.aopalliance_1.0.0
> 32        ACTIVE      org.apache.servicemix.bundles.wss4j_1.5.4.1
> 33        ACTIVE      org.apache.servicemix.bundles.jaxb-impl_2.1.6.1
> 34        ACTIVE      tm_dosgi_sample_service_1.0.0
> 35        ACTIVE      org.springframework.bundle.spring.beans_2.5.5
> 36        ACTIVE
>  org.apache.geronimo.specs.geronimo-javamail_1.4_spec_1.2.0
>
> osgi>
>
>
> Best regards
> Thomas
>
>
>
> davidb@apache.org
> Gesendet von: david.bosschaert@gmail.com
>
> 16.02.2009 11:55
>
> Bitte antworten an
> davidb@apache.org
> An
> Thomas.2.Merk@continental-corporation.com, users@cxf.apache.org
> Kopie
> Thema
> Re: D-OSGi question
>
>
>
>
> Hi Thomas,
>
> <copied users@cxf.apache.org>
>
> What are the actual bundles you have deployed. Could you do an 'ss' in
> the equinox console and put the result in a mail?
>
> Thanks,
>
> David
>
> 2009/2/16  <Thomas.2.Merk@continental-corporation.com>:
>>
>> Hi
>>
>> I try to write my own small D-OSGi sample application. I followed the
>> instructions of your "Developing a Distributed OSGi Application in
>> Eclipse"
>> page .
>> I use Eclipse 3.5M4 and the multi bundle CXF-DOSGi distribution.
>>
>> When I run my service bundle I get the the following error :
>>
>> INFO: Loading XML bean definitions from OSGi
>>
>> resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml|bnd.id=4|bnd.sym=cxf-dosgi-ri-dsw-cxf]
>> 16.02.2009 11:16:13 org.springframework.util.xml.SimpleSaxErrorHandler
>> warning
>> WARNUNG: Ignored XML validation warning
>> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
>> document 'http://www.springframework.org/schema/beans/spring-beans.xsd',
>> because 1) could not find the document; 2) the document could not be read;
>> 3) the root element of the document is not <xsd:schema>.
>>         at
>>
>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>> Source)
>>
>>
>> The bundle org.springframework.bundle.spring.beans is loaded by my run
>> configuration - I guess the schema document should be found there...
>> What do I wrong ?
>>
>> Best regards
>>
>> Thomas Merk
>> Software Architect
>> Public Transport Solutions
>>
>> Continental Automotive Switzerland AG
>> Industrieplatz 3
>> CH 8212 Neuhausen
>> Phone +41 (0) 58 911 11 25
>> Fax +41 (0) 58 911 11 12
>> mailto:thomas.2.merk@continental-corporation.com
>> www.public-transit-solutions.com
>
>

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message