org.apache.tika.metadata.filter package missing from uberjar | Community
Skip to main content
pablom63973339
Level 2
April 16, 2024
Solved

org.apache.tika.metadata.filter package missing from uberjar

  • April 16, 2024
  • 1 reply
  • 879 views

Hi,

 

We have a project working with Uberjar 13 and we want to go to 20. What is holding us back is that on every newer uberjars up to 20 I get an Error when trying to instantiate Tika. Create a unit test and just put this in it 

 

Tika tika = new Tika(); // throws java.lang.NoClassDefFoundError: org/apache/tika/metadata/filter/MetadataFilter

 

Looking at javadocs and the decompiled class there should be this package https://javadoc.io/doc/org.apache.tika/tika-core/latest/org/apache/tika/metadata/filter/package-summary.html 

This screenshot shows it is missing from the uberjar itself

 

Adding tika as a test dependency solves the problem 

<dependency> <groupId>org.apache.tika</groupId> <artifactId>tika-core</artifactId> <version>1.26</version> <scope>test</scope> </dependency>

 

We would prefer not having to do that as it becomes a manual maintenance step as new uberjars come out. Is it possible for Adobe team to amend the uberjar by any chance ?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

@pablom63973339 as it is more like a product service pack issue, have you tried opening a support ticket? Any response they provided??.. I too agree with you until we see a reason why adobe Uber jar not backward compatible.

 

Are you in on prem? AMS?

1 reply

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
April 16, 2024

@pablom63973339 as it is more like a product service pack issue, have you tried opening a support ticket? Any response they provided??.. I too agree with you until we see a reason why adobe Uber jar not backward compatible.

 

Are you in on prem? AMS?

pablom63973339
Level 2
April 16, 2024

Haven't opened a ticket yet, we are on AMS.

 

We experienced a similar issue years ago and we got told to post here first. I can open a support ticket to help

Shashi_Mulugu
Community Advisor
Community Advisor
April 16, 2024

@pablom63973339 thanks for keeping trust on the community forums, I would recommended to open a support ticket in this case.