You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Marton Elek (Jira)" <ji...@apache.org> on 2021/04/07 07:37:00 UTC
[jira] [Commented] (HDDS-5068) build errors due to missing
JAXB-runtime jar dependency for openjdk 11 se standalone
[ https://issues.apache.org/jira/browse/HDDS-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17316079#comment-17316079 ]
Marton Elek commented on HDDS-5068:
-----------------------------------
Thanks to post and analyze the issue [~NeilJoshi]. I am wondering how did we miss this problem. Since HDDS-4198 we do compilation with both java8 and java11 on CI to avoid some issues. I am wondering how did we miss this on CI side...
> build errors due to missing JAXB-runtime jar dependency for openjdk 11 se standalone
> ------------------------------------------------------------------------------------
>
> Key: HDDS-5068
> URL: https://issues.apache.org/jira/browse/HDDS-5068
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Neil Joshi
> Assignee: Neil Joshi
> Priority: Minor
>
> Build errors occur when compiling ozone with _jaxb-api_ dependency on *openjdk 11 SE* standalone environments. Problem observed with _openjdk 11.0.10 2021-01-19_
> _OpenJDK (build 11.0.10+9-Ubuntu-0ubuntu1.18.04)_.
>
> This error *is not* present compiling with Java 8. See _jaxb_ docs for maven compile : [https://javaee.github.io/jaxb-v2/doc/user-guide/ch03.html#deployment-maven-coordinates]. In summary,
> {code:java}
> If client application needs to include the runtime, e.g. running standalone on JavaSE jaxb-runtime should be also included. {code}
> From this, build files, pom.xml, that currently have the jaxb-api dependency can be changed to :
> {code:java}
> <!-- API -->
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>${jaxb.version}</version>
> </dependency>
> <!-- Runtime -->
> <dependency>
> <groupId>org.glassfish.jaxb</groupId>
> <artifactId>jaxb-runtime</artifactId>
> <version>${jaxb.version}</version>
> </dependency>
> {code}
>
> Updating affected pom.xml files with the additional jaxb-runtime dependency resolves observed compilation issues.
>
> Problem originally seen by me and [~jwminton] when building unit tests for hadoop-ozone/tools :
>
> {code:java}
> hadoop-ozone/tools$ mvn test
> [ERROR] testGenerateConfigurations(org.apache.hadoop.ozone.genconf.TestGenerateOzoneRequiredConfigurations) Time elapsed: 0.004 s <<< ERROR!
> picocli.CommandLine$ExecutionException:
> Error while calling command (org.apache.hadoop.ozone.genconf.GenerateOzoneRequiredConfigurations@5562c41e): javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
> - with linked exception:
> [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]
>
> {code}
>
> Present affected build files: _pom.xml (base dir_), _hadoop-ozone/datanode/pom.xml_, _hadoop-ozone/insight/pom.xml_, _hadoop-ozone/s3gateway/pom.xml, haddop-ozone/tools/pom.xml_
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org