Solved! Go to Solution.
This example AEM app consists of 2 parts:
1 client java app built with IntilliJ IDE
2 A custom sling servlet that uses AssetManager API.
You are missing required libs in the client
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.1-beta1</version>
</dependency>
. That is why you are getting the exception.
Sometimes Eclipse is not as stable as IntilliJ IDE with Maven. You can try using the free 30 day trial of IntilliJ.
Now for the Sling servlet, follow the instructions in the document. Use the same Maven commands. Then, you can build and deploy the bundle via the felix console.
Views
Replies
Total Likes
I recreated project on IntelliJ, works fine.
Thanks Scott!
Both the client app and the example sling servlet can be downloaded from the article. Read the readme for the client app. Deploy the servlet as shown in the article. Make sure to configure the XML file as well. This community code has been tested on 5.5 and 5.6 as discussed in the article.
Views
Replies
Total Likes
When working with Maven and Java, IntilliJ IDE is far superior.
Views
Replies
Total Likes
If you have additional issues, email me at scottm@adobe.com. I will setup a connect session to get you up and running.
Views
Replies
Total Likes
I added the jar files manually and still getting this error. All dependencies were added as well. This programing is running and compiling on eclipse but when executing the jar file it gives the mentioned exception.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies