Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-684

Hello World sample is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • Build system
    • None
    • Windows XP

    Description

      Revision 539008

      Performing an 'ant build' on the hello_world sample results in this exception:

      Buildfile: build.xml

      maybe.generate.code:

      generate.code:
      [echo] Generating code using wsdl2java...
      [java] Loading FrontEnd jaxws ...
      [java] Loading DataBinding jaxb ...
      [java] wsdl2java -verbose -d C:\dev\cxf-2.0-incubator-SNAPSHOT\samples\hello_world\build\src C:\dev\cxf-2.0-incubator-SNAPSHOT\samples\hello_world/wsdl/hello_world.wsdl
      [java] wsdl2java - 2.0-incubator-SNAPSHOT

      [java] May 24, 2007 11:28:41 AM org.apache.cxf.bus.spring.SpringBusFactory createBus
      [java] WARNING: Failed to create application context.
      [java] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.
      [java] Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.
      [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
      [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2799)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2735)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      [java] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
      [java] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
      [java] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
      [java] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
      [java] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
      [java] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
      [java] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
      [java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
      [java] at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:69)
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:81)
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:66)
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
      [java] at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:68)
      [java] at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:57)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.getBus(WSDLToJavaContainer.java:93)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:131)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:213)
      [java] at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)

      [java] WSDLToJava Error : java.lang.RuntimeException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.

      [java] org.apache.cxf.tools.common.ToolException: java.lang.RuntimeException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:221)
      [java] at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
      [java] Caused by: java.lang.RuntimeException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:84)
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:66)
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
      [java] at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:68)
      [java] at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:57)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.getBus(WSDLToJavaContainer.java:93)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:131)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:213)
      [java] ... 3 more
      [java] Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:359)
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
      [java] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
      [java] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
      [java] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
      [java] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
      [java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
      [java] at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:69)
      [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:81)
      [java] ... 10 more
      [java] Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '

      {http://apache.org/hello_world_soap_http}

      SOAPService' is not a valid value for 'NCName'.
      [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
      [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2799)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2735)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      [java] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
      [java] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
      [java] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
      [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
      [java] ... 19 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            dpicco Dion Picco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: