Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

DefaultHttpClient code note working.

Avatar

Level 1

Hi,

I trying to call a restfull webservice from my osgi bundle using http://helpx.adobe.com/experience-manager/using/restful-services.html

But my bundle is not starting up after succesfully deployed to felix console. 

I am working on AEM6.

 

Regards,

Anurag

1 Accepted Solution

Avatar

Correct answer by
Level 10

According to this, you have some missing packages(marked in red), you will have to add the dependency and embedd the jars along with your bundle

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

According to this, you have some missing packages(marked in red), you will have to add the dependency and embedd the jars along with your bundle

Avatar

Level 1

Hi Bsloki,

I have added all the maven dependency in the pom but still its not working.

 whenever i add below dependency, its start showing error in felix console and my bundle remains in Installed mode.

        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.1.1</version>
        </dependency>

 

I have also create a new project using cqblueprint(cqblueprints.com/setup/maven.html) but the same issue came once i add the above dependency.

 

Anurag