[
https://issues.apache.org/jira/browse/PHOENIX-6903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17699877#comment-17699877
]
David Phillips commented on PHOENIX-6903:
-----------------------------------------
Related, the client JAR also contains a JAXB service file that points to a
shaded implementation:
{code:java}
$ META-INF/services/javax.xml.bind.JAXBContext
org.apache.phoenix.shaded.com.sun.xml.bind.v2.ContextFactory {code}
This causes conflicts with applications that use a different version of JAXB.
We ran into this problem when trying to use the client JAR with Jersey 2.39.
> Shade or exclude javax.xml.bind:jaxb-api from the embedded client
> -----------------------------------------------------------------
>
> Key: PHOENIX-6903
> URL: https://issues.apache.org/jira/browse/PHOENIX-6903
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 5.1.2, 5.1.3
> Reporter: David Phillips
> Priority: Major
>
> We should shade or (preferably excude if possible) *javax.xml.bind:jaxb-api*
> from the embedded client. These classes cause conflicts and problems when
> used with other code that import the JAXB dependency.
> {code:java}
> jar tf
> .m2/repository/org/apache/phoenix/phoenix-client-embedded-hbase-2.2/5.1.2/phoenix-client-embedded-hbase-2.2-5.1.2.jar
> | grep javax/xml/bind | sort | head -n10
> javax/xml/bind/
> javax/xml/bind/Binder.class
> javax/xml/bind/ContextFinder$1.class
> javax/xml/bind/ContextFinder$2.class
> javax/xml/bind/ContextFinder$3.class
> javax/xml/bind/ContextFinder.class
> javax/xml/bind/DataBindingException.class
> javax/xml/bind/DatatypeConverter.class
> javax/xml/bind/DatatypeConverterImpl$CalendarFormatter.class
> javax/xml/bind/DatatypeConverterImpl.class {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)