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

christofhed3545

11-12-2017

Hello

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:

<dependency>
  <groupId>com.adobe.aemfd</groupId>
  <artifactId>aemfd-client-sdk</artifactId>
  <version>6.3.0</version>
  <scope>provided</scope>
</dependency>

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

Kind regards

Christofhe De Bock

Accepted Solutions (1)

Accepted Solutions (1)

Mayank_Gandhi

Employee

14-06-2018

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.

Thanks,

Mayank

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

1818981_pastedImage_0.png