org.apache.cxf.tools.common.ToolException: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component.

Kuali JIRA | Sedhu Veeraraghavan | 4 years ago
  1. 0

    I am trying to generate webservice client for CourseService.wsdl using Eclipse, Apache CXF 2.7.0 and tomcat server 7.0. I am getting the following exception. WSDLToJava Error: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. Complete stack Loading FrontEnd jaxws ... Loading DataBinding jaxb ... wsdl2java -client -d C:\java\training\CourseLoaderPoc\.cxftmp/src -classdir C:\java\training\CourseLoaderPoc\build\classes -p http://cxf.apache.org/bindings/xformat=org.apache.cxf.bindings.xformat -p http://www.w3.org/2001/XMLSchema=org.w3.2001.xmlschema -p http://schemas.xmlsoap.org/wsdl/soap/=org.xmlsoap.schemas.wsdl.soap -p http://schemas.xmlsoap.org/wsdl/=org.xmlsoap.schemas.wsdl -p http://student.kuali.org/wsdl/course=org.kuali.student.wsdl.course -impl -validate -exsh false -dns true -dex true -wsdlLocation http://localhost:8081/ks-embedded-dev/services/CourseService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 http://localhost:8081/ks-embedded-dev/services/CourseService?wsdl wsdl2java - Apache CXF 2.7.0 WSDLToJava Error: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. org.apache.cxf.tools.common.ToolException: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.validateSchema(JAXBDataBinding.java:914) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addSchemas(JAXBDataBinding.java:655) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:392) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:603) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:248) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184) Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2528) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1396) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:369) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseLocal(XSDElementTraverser.java:179) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseLocalElements(XSDHandler.java:2049) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:582) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:519) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:485) at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:211) at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.validateSchema(JAXBDataBinding.java:909) ... 10 more

    Kuali JIRA | 4 years ago | Sedhu Veeraraghavan
    org.apache.cxf.tools.common.ToolException: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component.
  2. 0

    I am trying to generate webservice client for CourseService.wsdl using Eclipse, Apache CXF 2.7.0 and tomcat server 7.0. I am getting the following exception. WSDLToJava Error: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. Complete stack Loading FrontEnd jaxws ... Loading DataBinding jaxb ... wsdl2java -client -d C:\java\training\CourseLoaderPoc\.cxftmp/src -classdir C:\java\training\CourseLoaderPoc\build\classes -p http://cxf.apache.org/bindings/xformat=org.apache.cxf.bindings.xformat -p http://www.w3.org/2001/XMLSchema=org.w3.2001.xmlschema -p http://schemas.xmlsoap.org/wsdl/soap/=org.xmlsoap.schemas.wsdl.soap -p http://schemas.xmlsoap.org/wsdl/=org.xmlsoap.schemas.wsdl -p http://student.kuali.org/wsdl/course=org.kuali.student.wsdl.course -impl -validate -exsh false -dns true -dex true -wsdlLocation http://localhost:8081/ks-embedded-dev/services/CourseService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 http://localhost:8081/ks-embedded-dev/services/CourseService?wsdl wsdl2java - Apache CXF 2.7.0 WSDLToJava Error: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. org.apache.cxf.tools.common.ToolException: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.validateSchema(JAXBDataBinding.java:914) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addSchemas(JAXBDataBinding.java:655) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:392) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:603) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:248) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184) Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2528) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1396) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:369) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseLocal(XSDElementTraverser.java:179) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseLocalElements(XSDHandler.java:2049) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:582) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:519) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:485) at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:211) at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.validateSchema(JAXBDataBinding.java:909) ... 10 more

    Kuali JIRA | 4 years ago | Sedhu Veeraraghavan
    org.apache.cxf.tools.common.ToolException: Schema Error : src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component.
  3. 0

    weblogic config xml validation

    objectmix.com | 1 year ago
    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema do= cument 'http://www.bea.com/ns/weblogic/910/domain.xsd', because 1) could no= t 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.createSAXPar= seException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknow= n Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unk= nown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unk= nown Source) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportS= chemaError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSche= ma(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSc= hema(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(Un= known Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(U= nknown Source) at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.= newSchema(Unknown Source)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ethan's Tech Blog | Scala, XML, and XSD Validation

    ethanjoachimeldridge.info | 6 months ago
    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', 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>.
  6. 0

    Schema compile bug in JDK 1.6 ?

    Oracle Community | 10 years ago | 843834
    org.xml.sax.SAXParseException: s4s-elt-schema-ns: The namespace of element 'xs:schema' must be from the schema namespace, 'http://www.w3.org/ 2001/XMLSchema'.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      src-resolve: Cannot resolve the name 'ns1:versionDisplayInfo' to a(n) 'type definition' component.

      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException()
    2. Java RT
      SchemaFactory.newSchema
      1. com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
      2. com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
      3. com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
      4. com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
      5. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541)
      6. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2528)
      7. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1396)
      8. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:369)
      9. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseLocal(XSDElementTraverser.java:179)
      10. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseLocalElements(XSDHandler.java:2049)
      11. com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:582)
      12. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)
      13. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:519)
      14. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:485)
      15. com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:211)
      16. javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
      16 frames
    3. Apache CXF Command Line Tools WSDLTo JAXB Databinding
      JAXBDataBinding.initialize
      1. org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.validateSchema(JAXBDataBinding.java:909)
      2. org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addSchemas(JAXBDataBinding.java:655)
      3. org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:392)
      3 frames
    4. Apache CXF Command Line Tools WSDLTo Core
      WSDLToJavaContainer.execute
      1. org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:603)
      2. org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:248)
      3. org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142)
      4. org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300)
      4 frames
    5. Apache CXF Command Line Tools Common
      ToolRunner.runTool
      1. org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
      1 frame
    6. Apache CXF Command Line Tools WSDLTo Core
      WSDLToJava.main
      1. org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
      2. org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
      3. org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
      3 frames