Hi Aravinth,

  Can we get rid of xml-apis and have Tika work on Java 8-14 successfully?
What version of Java are you using?  I ran into some surprises over on [0]
with needing xml-apis for Java 8 but _not_ for Java > 8.

  Y, we bundled xerces2 because of:
https://issues.apache.org/jira/browse/TIKA-2802.

     Cheers,

            Tim

[0]
https://issues.apache.org/jira/browse/SOLR-14054?focusedCommentId=16999265&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16999265

On Wed, Apr 1, 2020 at 6:08 AM aravinth thangasami <
[email protected]> wrote:

> Dear friends,
>
> In the tika-app-1.24 jar, We are bundled with xerces jars and from
> xml-apis.jar the javax.xml.parsers.* classes are included in the classpath.
> We are using a child first classloader to avoid some jar conflicts with
> other jars. So Tika jars will be loaded first.
>
> On moving to tika-app-1.24, We faced issues while creating the objects for
> DocumentBuilder, As the child first classloader creates the objects for
> javax.xml.parsers.DocumentBuilder class present in the tika-app-1.24 jar by
> service loader. But the classes are compared with the
> javax.xml.parsers.DocumentBuilder from the rt.jar and it fails.
>
> On overcoming this, we tried to exclude the javax/* package from the
> tika-app-1.24 jar and the code works without error.
>
> I understand the use of xerces2 jars, but why did we need to bundle
> javax/* package inside the tika-app-1.24 jars, which will be coming with
> JDK by default
>
> Is there any specific reason for this?. please help me with understanding
> it.
>
>
>
> Thanks
> Aravinth.
>
>
>

Reply via email to