You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jakub Gawlik (Jira)" <ji...@apache.org> on 2025/09/24 09:03:00 UTC

[jira] [Commented] (TIKA-4392) Incorrect "org.apache.xerces.util"-entry in Manifest file

    [ https://issues.apache.org/jira/browse/TIKA-4392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022371#comment-18022371 ] 

Jakub Gawlik commented on TIKA-4392:
------------------------------------

I have been hit by the same problem when trying to upgrade from 2.9.x, where xerces is marked as optional in OSGI headers. It was made optional in 2.x propably in this ticket: TIKA-3231.

This is a better solution than proposed "{{{}!org.apache.xerces.util{}}}".

 

 

> Incorrect "org.apache.xerces.util"-entry in Manifest file
> ---------------------------------------------------------
>
>                 Key: TIKA-4392
>                 URL: https://issues.apache.org/jira/browse/TIKA-4392
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Steven Huypens
>            Priority: Major
>
>  
> *Issue:* The {{tika-core}} Manifest file has an {{Import-Package}} entry for {{{}org.apache.xerces.util{}}}, which necessitates provisioning a Xerces library with our OSGi application (which I'd prefer to avoid).
> *Details:* Since TIKA-4135, Tika only uses the Xerces package {{org.apache.xerces.util}} in one place. As this usage is via reflection and the {{ClassNotFoundException}} is caught, the Xerces dependency is not strictly necessary, so the {{Import-Package}} should not be generated.
> *Solution:* Add {{!org.apache.xerces.util}} to the {{Import-Packages}} entry in the {{tika-core}} {{{}pom.xml{}}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)