xjc locație necunoscută - xsds la java eroare folosind JAXB XJC

Sunt în proces de a converti mai multe xsds în java folosind JAXB, eu folosesc Jdeveloper versiunea 10.1.3.4 ca IDE-ul meu. Versiunea JAXB 1.0, Xerces-J 2.6.2

Următorul este secvența țintelor de construire și a rezultatelor acestora din cele de mai jos. De asemenea, am încercat să folosesc comutatorul -nv   Chiar și cele de mai sus nu au funcționat. Sunt nou la JAXB.

Va rugam sa ne contactati:

[echo] Logging started build_2011-11-12.log
writelog:  duration 0 seconds

generation.jaxb.init:
    [mkdir] Created dir: C:\Users\XXXY\Projects\XXX\Interface\generated
generation.jaxb.init:  duration 0 seconds

generate.jaxb:
      [xjc] build id of XJC is 1.0.2-b15-fcs
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\create_ship_to.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\custom_ship.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\generic_notes.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\meter_log.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\part_need.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\part_usage.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\place.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\place_type.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\request.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\request_contact.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\request_event.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\request_product.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\request_text.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\ship_to.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\shipment.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\stock.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\time_zone_code.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_generic_notes.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_meterlog.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_part_need.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_part_usage.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_place.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_request.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_request_contact.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_request_event.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_request_product.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_request_text.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_ship_to.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\update_type.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\whos_place.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\wmetrix_install_info.xsd
      [xjc] Checking timestamp of C:\Users\XXXY\Projects\XXX\Interface\xsd\wmetrix_person.xsd
      [xjc] the last modified time of ths inputs is  1320964837275
      [xjc] the last modified time of the outputs is -9223372036854775808
      [xjc] Compiling file:/C:/Users/XXX/Projects/XXXY/Interface/xsd/create_ship_to.xsd and others
      [xjc] [INFO] Using Xerces from jar:file:/C:/Users/XXX/Installs/JDevStudio10.1.3.4/ant/lib/xercesImpl.jar!/org/apache/xerces/impl/Version.class
      [xjc] unknown location
      [xjc] 
generate.jaxb:  duration 0 seconds

BUILD FAILED

C:\Users\XXXY\Projects\XXX\Interface\build.xml:60: java.lang.NullPointerException
    at org.apache.tools.ant.Task.perform(Task.java:373)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
    at com.sun.xml.bind.unmarshaller.DOMScanner.buildNamespaceSupport(DOMScanner.java:121)
    at com.sun.xml.bind.unmarshaller.DOMScanner.parseWithContext(DOMScanner.java:91)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:57)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:65)
    at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:67)
    at com.sun.tools.xjc.GrammarLoader$XMLSchemaForestParser.parse(GrammarLoader.java:230)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:183)
    at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:162)
    at com.sun.tools.xjc.GrammarLoader.loadXMLSchema(GrammarLoader.java:381)
    at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:130)
    at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:79)
    at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:331)
    at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    ... 10 more
--- Nested Exception ---
java.lang.NullPointerException
    at com.sun.xml.bind.unmarshaller.DOMScanner.buildNamespaceSupport(DOMScanner.java:121)
    at com.sun.xml.bind.unmarshaller.DOMScanner.parseWithContext(DOMScanner.java:91)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:57)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:65)
    at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:67)
    at com.sun.tools.xjc.GrammarLoader$XMLSchemaForestParser.parse(GrammarLoader.java:230)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:183)
    at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:162)
    at com.sun.tools.xjc.GrammarLoader.loadXMLSchema(GrammarLoader.java:381)
    at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:130)
    at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:79)
    at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:331)
    at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Te rog ajuta-ma:

2
JAXB 1.0 este destul de vechi, sunteți în stare să utilizați JAXB 2 în schimb? Este necesar cel puțin Java SE 5. O implementare este inclusă în Java SE 6 și 7 (altele precum EclipseLink MOXy și Apache JaxMe sunt de asemenea disponibile).
adăugat autor Blaise Doughan, sursa
Blaise este ducele de subevaluare aici. Pentru a fi sincer, ar trebui să aveți un pistol la cap pentru a utiliza JAXB 1.0 în 2011. JRE 6 nave cu JAXB 2.1 construit, JRE 7 nave cu JAXB 2.2. Utilitățile sunt mult mai bune (de exemplu, pluginurile maven) decât cu JAXB 1.0, codul generat este mult mai clar, iar dependențele lib sunt reduse foarte mult și îl puteți găsi online.
adăugat autor Patrice M., sursa
Mulțumesc lui Blaise pentru răspunsul tău rapid. De fapt, actualizarea va avea loc după un timp. Din păcate, trebuia să lucrez la schimbări minore cu infrastructura existentă.
adăugat autor Raj, sursa