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.
