Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Facing issue in consuming restful webservices

Avatar

Level 4

Hi,

I have been trying to consume the Restful webservices in AEM. I have followed the article https://helpx.adobe.com/experience-manager/using/restful-services.html

In eclipse , Build Success coming.

But when I tried to install the jar in AEM ,bundle activation was unsuccessful.

It's giving errors like

org.apache.http.client --> cannot be resolved
org.apache.http.conn --> cannot be resolved
 

Please help me in resolving this issue

 

Thank You.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Administrator

Hi Vijaya Immadisetty

Please make sure that you are doing as mentioned below :-

1. Both jar should be used: - " httpclient-4.0.jar (or an older version) and httpcore-4.3.2.jar ".

Its working for me.

I hope this will solve your problem.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten

Avatar

Level 9

Hi Vijaya,

Follow below to find out the root cause:

  1. Make sure your bundle is active.
  2. Is your component & servlet active in Apache Felix console?.
  3. Just make sure, required dependencies are available.
In general, if you use a third party HTTP client API which is OSGI bundle/not bundle has to be deployed in felix container.. You can keep it under /apps/install folder also.
For more help, provide logs etc.
----
Jitendra

Avatar

Level 10

Hi Vijaya,

That should work fine, if you include both the jars i.e., httpclient-4.0.jar (or an older version) and httpcore-4.3.2.jar into CQ bundle fragment.

Kindly check once again, whether the bundle in active state, It worked for me in one go!!

Thanks,
Ratna Kumar.

Avatar

Korrekte Antwort von
Administrator

Hi Vijaya Immadisetty

Please make sure that you are doing as mentioned below :-

1. Both jar should be used: - " httpclient-4.0.jar (or an older version) and httpcore-4.3.2.jar ".

Its working for me.

I hope this will solve your problem.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni