java.lang.NoClassDefFoundError: com/adobe/aemfd/docmanager/source/DocumentSourceHandler

christofhed3545 11-12-2017


For PDF generating we are using com.adobe.aemfd.docmanager.Document, which works fine.

But using this in unit tests we receive this error:

java.lang.NoClassDefFoundError: com/adobe/aemfd/docmanager/source/DocumentSourceHandler

We are using this dependency:


How can we solve this error so we can run our tests?

Kind regards

Christofhe De Bock

Accepted Solutions (1)

Accepted Solutions (1)


Hi Puneet and Christofhe,

As smacdonald2008 mentioned please give details on how the Unit tests were set up and also please share the client sdk version being used at your end. It would have version something like 4.1.xx if you are using AEM Forms 6.3.



Answers (4)

Answers (4)

abhinash007 22-08-2019

Hi Everyone,

     You need to add Adobe AEMDS Core Document Manager Support (adobe-aemds-core-docmanager) bundle in classpath or you can add it dependency. This bundle is present in AEM. It will resolve DocumentSourceHandler class