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

Avatar

Avatar

christofhed3545

Avatar

christofhed3545

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)

Avatar

Avatar

Mayank_Gandhi

Avatar

Mayank_Gandhi

Mayank_Gandhi

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)

Avatar

Avatar

abhinash007

Avatar

abhinash007

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

Avatar

Avatar

abhinashs680544

Avatar

abhinashs680544

abhinashs680544

06-08-2019

Hi Chris,

  We are facing same issue. Have you found the solution? If Yes, please share

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

14-06-2018

How are you setting  up the Unit tests? Are you using the OOTB Unit Tests that are part of the Maven Archetype project?

Avatar

Avatar

puneet_soni

Avatar

puneet_soni

puneet_soni

04-06-2018

Any update on this question.