Sekhar
Sekhar

Reputation: 1011

XmlSeeAlso issue deployment of apache cxf to weblogic server in java 1.5 environment

I am getting this error when i try to run an ant script with jdk 1.5 minor version 14 . I do have all the libraries in the ant script - but still i am getting this error. Any thoughts. Any pointers will be of great help.

    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 of dependent libraries which i added

   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

Upvotes: 0

Views: 848

Answers (1)

Rafael Oltra
Rafael Oltra

Reputation: 1239

According to XmlSeeAlso Javadoc the annotation exists since JAXB 2.1 - you're using JABX 2.0.1, upgrade to 2.1 or higher and it should work.

Upvotes: 1

Related Questions