xjc不明な場所 - JAXB XJCを使用しているxsdsからjavaエラー

私はJAXBを使用して複数のxsdsをjavaに変換する処理中ですが、Jdeveloperのバージョン10.1.3.4をIDEとして使用しています。 JAXB 1.0バージョン、Xerces-J 2.6.2

以下はビルドターゲットのシーケンスとその出力です。私はまた、-nvスイッチを使用しようとしました   上記のことさえ動作しませんでした。私はJAXBが初めてです。

以下のantログを見つけてください:

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

助けてください:

2
JAXB 1.0はかなり古いですが、代わりにJAXB 2を使用できますか?少なくともJava SE 5が必要です。実装はJava SE 6および7に含まれています(EclipseLink MOXyやApache JaxMeなども利用可能です)。
追加された 著者 Blaise Doughan,
Blaiseはここでは控えめな公爵です。 2011年にJAXB 1.0を使用するには、あなたの頭に銃を持っていなければなりません.JRE 6にはJAXB 2.1が組み込まれて出荷され、JRE 7にはJAXB 2.2が付属します。ユーティリティーは、JAXB 1.0よりもはるかに優れています(例えば、Mavenプラグイン)。生成されるコードははるかに明確になり、lib依存性は大幅に減少し、実際にオンラインで見つけることができます。
追加された 著者 Patrice M.,
ご返信ありがとうございました。実際にアップグレードはしばらくしてから行われます。残念ながら、私は既存のインフラストラクチャで軽微な変更に取り組まなければなりませんでした。
追加された 著者 Raj,

答えはありません

0