xjc onbekende locatie - xsds naar java-fout met JAXB XJC

Ik ben in proces om meerdere xsds naar Java te converteren met JAXB, ik gebruik Jdeveloper versie 10.1.3.4 als mijn IDE. JAXB 1.0-versie, Xerces-J 2.6.2

Hieronder volgt de volgorde van de builddoelen en hun uitvoer van de onderstaande. Ik heb ook geprobeerd om de schakelaar -nv te gebruiken   Zelfs het bovenstaande werkte niet. Ik ben nieuw voor JAXB.

Hieronder vindt u het mierlogboek:

[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)

Help alstublieft:

2
JAXB 1.0 is vrij oud, kun je in plaats daarvan JAXB 2 gebruiken? Het vereist ten minste Java SE 5. Een implementatie is inbegrepen bij Java SE 6 en 7 (andere zoals EclipseLink MOXy en Apache JaxMe zijn ook beschikbaar).
toegevoegd de auteur Blaise Doughan, de bron
Blaise is hier de hertog van understatement. Om eerlijk te zijn, zou je een pistool tegen je hoofd moeten hebben om JAXB 1.0 te gebruiken in 2011. JRE 6 wordt geleverd met JAXB 2.1 ingebouwd, JRE 7 wordt geleverd met JAXB 2.2. De hulpprogramma's zijn veel beter (bijvoorbeeld maven plug-ins) dan met JAXB 1.0, de gegenereerde code veel duidelijker, en lib-afhankelijkheden sterk verminderd, en je kunt het online vinden.
toegevoegd de auteur Patrice M., de bron
Bedankt Blaise voor je snelle antwoord. Eigenlijk zal de upgrade na verloop van tijd plaatsvinden. Helaas moest ik werken aan kleine wijzigingen met de bestaande infrastructuur.
toegevoegd de auteur Raj, de bron

Geen antwoorden

0