2013-07-10 33 views
0

當我嘗試運行jdk 1.5 minor版本14的ant腳本時出現此錯誤。我確實擁有了螞蟻腳本中的所有庫 - 但仍然出現此錯誤。有什麼想法嗎。任何指針都會有很大的幫助。這是我加入XmlSeeAlso在java 1.5環境下將apache cxf部署到weblogic服務器

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 

回答

1

根據XmlSeeAlso Javadoc依賴庫的

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 

List中的註釋,因爲JAXB 2.1 - 你正在使用JABX 2.0.1,升級到2.1或更高,它應該工作。

+0

感謝 - 即使在添加JAXB 2.1後,我得到這個錯誤 – challenge

+0

剛纔注意到,項目構建xml已經具有jaxb-api-2.0.jar和jaxb-api.jar作爲一些代碼的依賴關係。這些jaxb-api.jar,jaxb-api-2.1.jar,jaxb-api-2.0.jar可以共存嗎?項目由多方更新,所以面臨一個大問題。 – challenge

+0

我試圖從構建編譯庫中刪除jaxb-api 2.0,並且現在出現此錯誤 - [javac]編譯器(1.5.0_14)發生異常。請在Java Developer Connection(http://java.sun.com/webapps/bugreport)af 上檢查 錯誤,然後檢查Bug Parade是否有重複項。在您的報告中包含您的程序和診斷信息。謝謝。 [javac] com.sun.tools.javac.code.Symbol $ CompletionFailure:file javax \ xml \ bi nd \ annotation \ XmlRootElement.class not found – challenge

相關問題