Hi Tim, > > What version of Java are you using? > We are using Java 1.8.0_242.
I ran into some surprises over on [0] with needing xml-apis for Java 8 but > _not_ for Java > 8. > Can we get rid of xml-apis and have Tika work on Java 8-14 successfully? We faced one issue while migrating the new version, I debugged that issue, I tried to remove javax.* package from the tika-app.jar, the issue solved for me. I don't have knowledge on what are the other cases involved in the process :( On Wed, Apr 1, 2020 at 5:38 PM Maxim Solodovnik <[email protected]> wrote: > You are right, > > forgot about it one more time > have to resolve "jakarta" conflicts > > On Wed, 1 Apr 2020 at 18:37, Konstantin Gribov <[email protected]> wrote: > >> JRE 11 doesn't even have JAXB APIs even in module unlike JRE 9-10 [1]. We >> can try to add required by default javax.* libraries using multi-release >> jar but it will require some rework of Maven configuration. >> >> [1]: >> https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j >> >> -- >> Best regards, >> Konstantin Gribov. >> >> >> On Wed, Apr 1, 2020 at 2:04 PM Maxim Solodovnik <[email protected]> >> wrote: >> >>> Maybe it worth to create special java11+ version? >>> >>> On Wed, Apr 1, 2020, 17:53 Tim Allison <[email protected]> wrote: >>> >>>> 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. >>>>> >>>>> >>>>> > > -- > WBR > Maxim aka solomax >
