cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-668) hello world demo doesn't work
Date Tue, 22 May 2007 03:57:16 GMT

    [ https://issues.apache.org/jira/browse/CXF-668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497692
] 

Freeman Fang commented on CXF-668:
----------------------------------

the error is caused by we open spring validation by default recently.
I will add a way to let demo specify spring validation mode to get it around

> hello world demo doesn't work
> -----------------------------
>
>                 Key: CXF-668
>                 URL: https://issues.apache.org/jira/browse/CXF-668
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Freeman Fang
>         Assigned To: Freeman Fang
>
> when I try to start hello_world demo server, I get exception when createbus
>      [java] May 22, 2007 10:47:13 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message