custom-metadata-extrators-context.xml java class not found error

cancel
Showing results for 
Search instead for 
Did you mean: 
dsc1086
Active Member II

custom-metadata-extrators-context.xml java class not found error

Hello,

We have installed Alfresco Content Services 7.0.1 from the .zip-file and have started deploying our extensions from version 5.2.1 to our new installation. We are facing problems with the extension "custom-metadata-extrators-context.xml". To analyze our problem we have switched to the custom-metadata-extrators-context.xml.sample file provided with the installer and deployed this file. Nevertheless we get still numerous class not found exceptions. The exact error message is:

nested exception is java.lang.ClassNotFoundException: org.alfresco.repo.content.metadata.OpenDocumentMetadataExtracter

Does anyone have an idea?

4 Replies
abhinavmishra14
Advanced

Re: custom-metadata-extrators-context.xml java class not found error

With latest version ways to override/extend the metadata extrator has changed.

Read more on this here: https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/metadata-extractors/#ootbe... 

The class you are looking for is no longer available with repository app and moved to transformation service app, see above doc link. So typically you don't need to configure anything with spring context file except for xml metadata extractor. What you see in distribution zip may be not removed and it should be removed to avoid any confusion and also the name of class is wrong in the sample pertaining to acs7.

https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transform-tika/alfresco-tra...

Check the full doc here: https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/metadata-extractors/

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
dsc1086
Active Member II

Re: custom-metadata-extrators-context.xml java class not found error

Hello. 
Thank you very much. I'll examine if this will solve my problem.
But to that relation then I have another question.

I installed the t-engine according to these installation instructions :  https://docs.alfresco.com/transform-service/latest/install/#install-with-zip

I am able to launch all 3 jar files without errors on startup, but alfresco only starts up when running the aio-script without the 2 others.

Is this the correct way to go as this is an all-in-one scripts or do I also need the two other scripts running for alfresco to work correctly?

abhinavmishra14
Advanced
dsc1086
Active Member II

Re: custom-metadata-extrators-context.xml java class not found error

Great Documentation. Thank you very much.