Uploaded image for project: 'CXF Distributed OSGi (Retired)'
  1. CXF Distributed OSGi (Retired)
  2. DOSGI-10

Spring schema handling (intents) doesn't work properly for the single-bundle case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • Product
    • None

    Description

      It prints out exceptions, like these ones:

      org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 41 i
      n XML document from OSGi resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml

      bnd.id=10 bnd.sym=cxf-dosgi-ri-samples-greeter-impl] is invalid; nested excepti
      on is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'id' is n
      ot allowed to appear in element 'p:policies'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
      eanDefinitions(XmlBeanDefinitionReader.java:404)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:342)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:310)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
      ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:166)
      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
      ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:132)
      at org.springframework.context.support.AbstractRefreshableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
      at org.springframework.context.support.AbstractApplicationContext.obtain
      FreshBeanFactory(AbstractApplicationContext.java:423)
      at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:353)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java
      :148)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExec
      utionApplicationContext.java:73)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
      at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:402)
      at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:377)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.getInt
      entMap(PojoConfigurationTypeHandler.java:182)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.applyI
      ntents(PojoConfigurationTypeHandler.java:150)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.create
      Server(PojoConfigurationTypeHandler.java:122)
      at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceH
      ookUtils.java:80)
      at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPubl
      ishHook.java:74)
      at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:129)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'id'
      is not allowed to appear in element 'p:policies'.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
      ParseException(ErrorHandlerWrapper.java:236)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
      orHandlerWrapper.java:172)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:382)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:316)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro
      rReporter.reportError(XMLSchemaValidator.java:429)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS
      chemaError(XMLSchemaValidator.java:3185)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.process
      Attributes(XMLSchemaValidator.java:2680)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
      tartElement(XMLSchemaValidator.java:2094)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
      ement(XMLSchemaValidator.java:705)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
      StartElement(XMLNSDocumentScannerImpl.java:330)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
      ML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
      ML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
      java:148)
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
      java:250)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
      umentBuilderImpl.java:292)
      at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocum
      ent(DefaultDocumentLoader.java:75)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
      eanDefinitions(XmlBeanDefinitionReader.java:396)
      ... 24 more
      14-Oct-2008 16:35:26 org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
      WARNING: Intent map load failed:
      org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 41 i
      n XML document from OSGi resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml
      bnd.id=10 bnd.sym=cxf-dosgi-ri-samples-greeter-impl] is invalid; nested excepti
      on is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'id' is n
      ot allowed to appear in element 'p:policies'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
      eanDefinitions(XmlBeanDefinitionReader.java:404)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:342)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:310)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
      ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:166)
      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
      ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:132)
      at org.springframework.context.support.AbstractRefreshableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
      at org.springframework.context.support.AbstractApplicationContext.obtain
      FreshBeanFactory(AbstractApplicationContext.java:423)
      at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:353)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java
      :148)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExec
      utionApplicationContext.java:73)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
      at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:402)
      at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:377)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.getInt
      entMap(PojoConfigurationTypeHandler.java:182)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.applyI
      ntents(PojoConfigurationTypeHandler.java:150)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.create
      Server(PojoConfigurationTypeHandler.java:122)
      at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceH
      ookUtils.java:80)
      at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPubl
      ishHook.java:74)
      at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:129)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'id'
      is not allowed to appear in element 'p:policies'.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
      ParseException(ErrorHandlerWrapper.java:236)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
      orHandlerWrapper.java:172)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:382)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:316)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro
      rReporter.reportError(XMLSchemaValidator.java:429)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS
      chemaError(XMLSchemaValidator.java:3185)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.process
      Attributes(XMLSchemaValidator.java:2680)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
      tartElement(XMLSchemaValidator.java:2094)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
      ement(XMLSchemaValidator.java:705)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
      StartElement(XMLNSDocumentScannerImpl.java:330)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
      ML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
      ML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
      java:148)
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
      java:250)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
      umentBuilderImpl.java:292)
      at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocum
      ent(DefaultDocumentLoader.java:75)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
      eanDefinitions(XmlBeanDefinitionReader.java:396)
      ... 24 more
      [pool-1-thread-3] WARN org.apache.cxf.dosgi.dsw.OsgiUtils - Intent map load fail
      ed:
      org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 41 i
      n XML document from OSGi resource[classpath:/OSGI-INF/cxf/intents/intent-map.xml
      bnd.id=10 bnd.sym=cxf-dosgi-ri-samples-greeter-impl] is invalid; nested excepti
      on is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'id' is n
      ot allowed to appear in element 'p:policies'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
      eanDefinitions(XmlBeanDefinitionReader.java:404)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:342)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:310)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
      ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:166)
      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
      ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:132)
      at org.springframework.context.support.AbstractRefreshableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
      at org.springframework.context.support.AbstractApplicationContext.obtain
      FreshBeanFactory(AbstractApplicationContext.java:423)
      at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:353)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java
      :148)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExec
      utionApplicationContext.java:73)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
      plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:136)
      at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:402)
      at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:377)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.getInt
      entMap(PojoConfigurationTypeHandler.java:182)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.applyI
      ntents(PojoConfigurationTypeHandler.java:150)
      at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.create
      Server(PojoConfigurationTypeHandler.java:122)
      at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceH
      ookUtils.java:80)
      at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPubl
      ishHook.java:74)
      at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:129)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'id'
      is not allowed to appear in element 'p:policies'.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
      ParseException(ErrorHandlerWrapper.java:236)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
      orHandlerWrapper.java:172)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:382)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:316)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro
      rReporter.reportError(XMLSchemaValidator.java:429)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS
      chemaError(XMLSchemaValidator.java:3185)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.process
      Attributes(XMLSchemaValidator.java:2680)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
      tartElement(XMLSchemaValidator.java:2094)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
      ement(XMLSchemaValidator.java:705)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
      StartElement(XMLNSDocumentScannerImpl.java:330)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
      ML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
      ML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
      java:148)
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
      java:250)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
      umentBuilderImpl.java:292)
      at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocum
      ent(DefaultDocumentLoader.java:75)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
      eanDefinitions(XmlBeanDefinitionReader.java:396)
      ... 24 more
      14-Oct-2008 16:35:26 org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
      INFO: Injected intents: {}

      Attachments

        Activity

          People

            cschneider Christian Schneider
            bosschaert David Bosschaert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: