Open caiopavanelli opened 5 years ago
I have the same issue on JAXB 2.2 API jar. do you have the fix for this?
C:\Program Files\Tableau\REST API\java>ant -version Apache Ant(TM) version 1.10.7 compiled on September 1 2019
See my ant run output below. C:\Program Files\Tableau\REST API\java>ant run Buildfile: C:\Program Files\Tableau\REST API\java\build.xml
compile: [javac] C:\Program Files\Tableau\REST API\java\build.xml:32: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
jar:
run:
[java] Exception in thread "main" java.lang.LinkageError: JAXB 2.1 API jar is being loaded (from jar:file:/C:/Program%20Files/Tableau/REST%20API/java/lib/default/javaee-api.jar!/javax/xml/bind/annotation/XmlSchema.class), but this RI (from jar:file:/C:/Program%20Files/Tableau/REST%20API/java/lib/default/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) requires JAXB 2.2 API jar.
[java] at com.sun.xml.bind.v2.model.impl.ModelBuilder.
BUILD SUCCESSFUL Total time: 1 second
For this [java] Exception in thread "main" java.lang.LinkageError: JAXB 2.1 API jar is being loaded (from jar:file:/C:/Program%20Files/Tableau/REST%20API/java/lib/default/javaee-api.jar!/javax/xml/bind/annotation/XmlSchema.class), but this RI (from jar:file:/C:/Program%20Files/Tableau/REST%20API/java/lib/default/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) requires JAXB 2.2 API jar issue, I fix it by a. download javaee-api-8.0.jar from https://jar-download.com/artifacts/javax/javaee-api/8.0/source-code b. Copy javaee-api-8.0.jar into C:\Program Files\Tableau\REST API\java\lib\default\javaee-api.jar
Regards, Jin-Chong
Hi,
When running the Java sample 'ant run', it throws an exception telling it is loading JAXB 2.1, but requires JAXB 2.2.