Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7176148

jaxb for jigsaw: xjc tool in jigsaw does not support for http://www.w3.org/2001/XMLSchema language

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 9-repo-jigsaw
    • core-libs

      The error info looks as below:
      =================
      gtee@rdesktop: ~/ws $ /java/sqe/comp/jsn/users/amylu/jigsaw/solaris-amd64/bin/xjc -d build -p features ~/xml_jigsaw/src/JAXB/jaxb-sqe/docs/features.xsd
      parsing a schema...
      Exception in thread "main" java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded
              at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:204)
              at com.sun.tools.internal.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:68)
              at com.sun.tools.internal.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:346)
              at com.sun.tools.internal.xjc.ModelLoader.load(ModelLoader.java:160)
              at com.sun.tools.internal.xjc.ModelLoader.load(ModelLoader.java:105)
              at com.sun.tools.internal.xjc.Driver.run(Driver.java:311)
              at com.sun.tools.internal.xjc.Driver.run(Driver.java:184)
              at com.sun.tools.internal.xjc.Driver._main(Driver.java:107)
              at com.sun.tools.internal.xjc.Driver.access$000(Driver.java:64)
              at com.sun.tools.internal.xjc.Driver$1.run(Driver.java:87)
      =================

      The .xsd language defination is simple:
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

            Unassigned Unassigned
            pzhang Patrick Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: