7 Replies Latest reply: Jun 23, 2011 9:14 AM by Freeman(Yue) Fang RSS

    Failed to read schema document for cxf-bc endpoint

    jeevan kumar Newbie

      Hi,

       

      I have a cxfbc provider endpoint that communicates with a webservice. The endpoint compiles successfully but while deploying, it is complaining about some schema.

       

      Samething happens for http:endpoint with 'http://servicemix.apache.org/http/1.0/servicemix-http.xsd'

       

      thanks in advance.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:osgi="http://www.springframework.org/schema/osgi"
          xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
          xmlns:ctx="http://www.springframework.org/schema/context"
          xmlns:camel="http://camel.apache.org/schema/osgi"
          xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
          xmlns:itsmpws="http://ITSMXML.com/"
          xmlns:sec="http://cxf.apache.org/configuration/security" 
          xmlns:http="http://cxf.apache.org/transports/http/configuration" 
          
          xsi:schemaLocation="
              http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
              http://camel.apache.org/schema/osgi http://camel.apache.org/schema/osgi/camel-osgi.xsd
              http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
              http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
              http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
              http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/schema/servicemix-cxf-bc-2009.01.xsd
              http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
              http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
          
          <import resource="classpath:META-INF/cxf/cxf.xml"></import>
          <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"></import>
          <import resource="classpath:META-INF/cxf/cxf-extension-http.xml"></import>
          
          <cxfbc:provider wsdl="classpath:wsdl/Service.wsdl"
              locationURI="https://xxxx.com"
              service="itsmpws:Service"
              endpoint="ServiceSoap"
              interfaceName="itsmpws:ServiceSoap"
              useJBIWrapper="false"
              useSOAPEnvelope = "true">
                      
              <cxfbc:providedBus> 
                  <ref bean="cxf"></ref> 
              </cxfbc:providedBus> 
                      
          </cxfbc:provider>
           
          <http:conduit ....>
           ................
          </http:conduit>
      
          <bean class="org.apache.servicemix.common.osgi.EndpointExporter"></bean>
          
      </beans>

       

      Exception :

       

      org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://servicemix.apache.org/schema/servicemix-cxf-bc-2009.01.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(ErrorHandlerWrapper.java:233)[:]
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:134)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:416)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2596)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2587)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1883)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:574)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:598)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2475)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1820)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
              at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
              at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
              at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:186)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[61:org.springframework.context:3.0.5.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[61:org.springframework.context:3.0.5.RELEASE]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[72:org.springframework.osgi.extender:1.2.0]
              at java.lang.Thread.run(Thread.java:619)[:1.6.0_17]
      09:07:20,052 | ERROR | Timer-2          | DelegatingTimerTask              | duling.timer.DelegatingTimerTask   73 | 61 - org.springframework.context - 3.0.5.RELEASE | Unexpected exception thrown from Runnable: org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable@12533e4
      java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
              at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)[61:org.springframework.context:3.0.5.RELEASE]
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)[61:org.springframework.context:3.0.5.RELEASE]
              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$3.run(ContextLoaderListener.java:807)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)[61:org.springframework.context:3.0.5.RELEASE]
              at java.util.TimerThread.mainLoop(Timer.java:512)[:1.6.0_17]
              at java.util.TimerThread.run(Timer.java:462)[:1.6.0_17]
      09:07:20,052 | ERROR | ExtenderThread-6 | ContextLoaderListener            | BundleApplicationContextListener   50 | 72 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=AccentureITSMPwsEndpoint, config=osgibundle:/META-INF/spring/*.xml))
      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:endpoints/endpoints.xml]
      Offending resource: URL [bundleentry://211.fwk15101782/META-INF/spring/xbean.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 47 in XML document from OSGi resource[classpath:endpoints/endpoints.xml|bnd.id=211|bnd.sym=AccentureITSMPwsEndpoint] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'cxfbc:provider'.
              at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:192)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[61:org.springframework.context:3.0.5.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[61:org.springframework.context:3.0.5.RELEASE]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[72:org.springframework.osgi.extender:1.2.0]
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[71:org.springframework.osgi.core:1.2.0]
              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[72:org.springframework.osgi.extender:1.2.0]
              at java.lang.Thread.run(Thread.java:619)[:1.6.0_17]
      Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 47 in XML document from OSGi resource[classpath:endpoints/endpoints.xml|bnd.id=211|bnd.sym=AccentureITSMPwsEndpoint] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'cxfbc:provider'.
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:186)[59:org.springframework.beans:3.0.5.RELEASE]
              ... 23 more
      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'cxfbc:provider'.
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)[:]
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:169)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:455)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3220)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1965)[:]
              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
              at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
              at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
              at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[59:org.springframework.beans:3.0.5.RELEASE]
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[59:org.springframework.beans:3.0.5.RELEASE]
              ... 28 more
      
      

       

        • 1. Re: Failed to read schema document for cxf-bc endpoint
          Freeman(Yue) Fang Master

          Hi,

           

          What's your FUSE ESB version?

          The error is caused by the JBI component version isn't 2009.01 used in that FUSE ESB.

           

          The easiest way is change

          http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/schema/servicemix-cxf-bc-2009.01.xsd

           

          to

          http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd

          this will match any JBI version and pick up the correct local xsd files we use spring.schemas to map.

           

          Freeman

          • 2. Re: Failed to read schema document for cxf-bc endpoint
            jeevan kumar Newbie

            Hi,

             

            I am using Fuse ESB version 4.3.1 (apache-servicemix-4.3.1-fuse-00-00).

             

            And i tried with the schema you provided, but the result is same.

            org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.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(ErrorHandlerWrapper.java:233)[:]
                    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:134)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:416)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2596)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2587)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1883)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:574)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:598)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2475)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1820)[:]
                    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
                    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
                    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
                    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
                    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
                    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
                    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
                    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[59:org.springframework.beans:3.0.5.RELEASE]
            

             

            Thanks,

            • 3. Re: Failed to read schema document for cxf-bc endpoint
              Freeman(Yue) Fang Master

              Hi,

               

              With apache-servicemix-4.3.1-fuse-00-00 the JBI component version is 2011.01.0-fuse-00-00.

               

              Anyway you shouldn't  encounter such problem if you already use

              http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd

              that's really weird,  as we always have local xsd in servicemix-cxf-bc.jar.

               

              I noticed that something wrong in endpoints/endpoints.xml, what's it?

              You should define the JBI endpoint in src/main/resources/META-INF/ folder.

               

              I guess something wrong in your package structure, you're using OSGi package, right?

              You may need take a look at cxf-wsdl-first-osgi-package example we shipped with kit to get some concrete idea.

               

              Freeman

              • 4. Re: Failed to read schema document for cxf-bc endpoint
                jeevan kumar Newbie

                Hi Freeman,

                 

                    I think there is nothing wrong with my package structure.I defined JBI endpoint in src\main\resources\endpoints\endpoints.xml and imported that in side src\main\resources\META-INF\spring\beans.xml.

                 

                    Moreover, I am getting this exception only when i install the endpoint for the firsttime. If i say osgi:update(though, the status is 'Failed') the endpoint is getting started and it's working.

                 

                Why there is no exception when i updated the endpoint?If it is ignoring the schema exception, why not in the first try?

                 

                Thanks,

                Jeevan

                • 5. Re: Failed to read schema document for cxf-bc endpoint
                  Freeman(Yue) Fang Master

                  Hi,

                   

                  How do you deploy your customer bundle? You start FUSE ESB and then deploy your customer bundle

                  OR

                  You put your customer bundle into deploy folder then start FUSE ESB?

                   

                  If you use the later way, it might be a race condition issue that your customer bundle started before servicemix-cxf-bc bundle started, so that the xsd isn't available yet.

                   

                  Anyway could you please append a testcase which I can build and deploy, that would be very helpful if I can reproduce this problem.

                   

                  Freeman

                  • 6. Re: Failed to read schema document for cxf-bc endpoint
                    jeevan kumar Newbie

                    Hi Freeman,

                     

                      I start Fuse ESB first and then I use features xml to deploy the bundle in to ESB.

                     

                    I forgot to add a point earlier.

                    I am not facing this exception in my local machine. This happens only on our unix server machine where we dont have open access to internet.Is this a problem?

                     

                    Generally,We use a different machine which has internet access to compile and build the jars. And then we deploy the bundles(using features.xml)  on another machine(No internet access) where FUSE ESB is running.

                     

                    If you still need a testcase, i can attach it for you.

                     

                    Thanks,

                    Jeevan

                    • 7. Re: Failed to read schema document for cxf-bc endpoint
                      Freeman(Yue) Fang Master

                      Hi,

                       

                      Internet connection should be the problem, likely try to download some thing but failed, however, the exception here you saw somehow not reflect the real artifact it try to download.

                       

                      Anyway, if you can attach a testcase, I'd like take a look when I get chance.

                       

                      Freeman