0

当我尝试使用 jdk 1.5 次要版本 14 运行 ant 脚本时出现此错误。我确实在 ant 脚本中有所有库 - 但我仍然收到此错误。有什么想法吗。任何指针都会有很大帮助。

    ClientConfiguration.java:123: cannot access javax.xml.bind.annotation.XmlSeeAlso
    [javac] file javax\xml\bind\annotation\XmlSeeAlso.class not found
    [javac]             config.getHttpConduit().getClient().setConnectionTimeout(timeOut);
    [javac]                                      ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

      BUILD FAILED

我添加的依赖库列表

   06/06/2013  10:58            62,983 activation-1.1.jar
   08/07/2013  17:09         1,015,426 cxf-api-2.6.8.jar
   08/07/2013  17:09            38,114 cxf-rt-bindings-xml-2.6.8.jar
   08/07/2013  17:09           371,239 cxf-rt-core-2.6.8.jar
   08/07/2013  18:32           115,654 cxf-rt-databinding-jaxb-2.6.8.jar
   08/07/2013  20:03            33,325 cxf-rt-features-clustering-2.6.8.jar
   08/07/2013  17:09           513,121 cxf-rt-frontend-jaxrs-2.6.8.jar
   08/07/2013  17:09            71,201 cxf-rt-rs-extension-providers-2.6.8.jar
   08/07/2013  17:09            87,096 cxf-rt-rs-extension-search-2.6.8.jar
   08/07/2013  17:09           223,028 cxf-rt-transports-http-2.6.8.jar

   08/07/2013  17:47            47,465 geronimo-activation_1.1_spec-1.1.jar
   08/07/2013  17:47            12,452 geronimo-annotation_1.0_spec-1.1.1.jar
   08/07/2013  16:22           223,298 geronimo-javamail_1.4_spec-1.7.1.jar
   08/07/2013  17:47            28,804 geronimo-stax-api_1.0_spec-1.0.1.jar
   08/07/2013  17:53            33,525 jackson-annotations-2.0.2.jar
   08/07/2013  17:53           193,693 jackson-core-2.0.2.jar
   08/07/2013  17:53           847,121 jackson-databind-2.0.2.jar
   08/07/2013  17:53            26,098 jackson-jaxrs-json-provider-2.0.2.jar
   08/07/2013  17:53            31,123 jackson-module-jaxb-annotations-2.0.2.jar
   26/06/2013  18:27            73,081 jaxb-api-2.0.jar
   08/07/2013  18:23           786,408 jaxb-impl-2.0.1.jar
   08/07/2013  18:32         3,476,096 jaxb-xjc-2.2.5.1.jar
   26/06/2013  18:27            49,672 jsr173_api-1.0.jar
   08/07/2013  17:09            46,367 jsr311-api-1.1.1.jar
   06/06/2013  11:31            23,346 stax-api-1.0-2.jar
   08/07/2013  16:22           182,112 stax2-api-3.1.1.jar
   08/07/2013  16:22           482,245 woodstox-core-asl-4.2.0.jar
   08/07/2013  16:22           186,758 wsdl4j-1.6.3.jar
   08/07/2013  16:22           162,818 xmlschema-core-2.0.3.jar
4

1 回答 1

1

根据XmlSeeAlso Javadoc,注释自 JAXB 2.1以来就存在- 您正在使用 JABX 2.0.1,升级到 2.1 或更高版本,它应该可以工作。

于 2013-07-10T18:34:49.860 回答