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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Any update on this question.
Views
Replies
Total Likes
How are you setting up the Unit tests? Are you using the OOTB Unit Tests that are part of the Maven Archetype project?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>4.1.50</version>
</dependency>
I am using above dependency, Still facing same problem when convert base 64 doc to com.adobe.aemfd.docmanager.Document
Here my Code:
Document document = new Document(java.util.Base64.getDecoder().decode(baseDoc));
Views
Replies
Total Likes
Hi Chris,
We are facing same issue. Have you found the solution? If Yes, please share
Views
Replies
Total Likes
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
<dependency>
<groupId>adobe-aemds-core-docmanager</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>4.1.50</version>
</dependency>
I am using above dependency, but still facing same issue
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies