Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Creating Adobe Experience Manager bundles that invoke third party Restful web services

Avatar

Level 4

Hi,

I want to consume the restful web service from AEM as a POC. 

Below is the URL i am refering for the Restful service 

https://helpx.adobe.com/experience-manager/using/restful-services.html

When i run my build in Mavan it is successful and i am seeing the restfulservice-bundle-1.0-SNAPSHOT.jar.being deployed.

when i go to the felix console i am getting the error attached screen shot for your reference

In my error log file i am getting the following error

14.12.2015 14:26:59.015 *ERROR* [qtp1194019397-215] org.apache.felix.http.jetty %services.pluginTitle: Unable to access service reference list. (org.osgi.framework.InvalidSyntaxException: Missing opening parenthesis: DistanceImpl)
org.osgi.framework.InvalidSyntaxException: Missing opening parenthesis: DistanceImpl

 

can someone help me to resolve this issue?

Appreciate you help.

 

Regards

Pr@veen

1 Accepted Solution

Avatar

Correct answer by
Level 10

I have successfully got this working with AEM 6.1. I will update the article to include an AEM 6.1 package and make a few updates in the article. Here is the sample running in 6.1.

https://helpx.adobe.com/experience-manager/using/restful-services.html

View solution in original post

7 Replies

Avatar

Level 4

btw, i am using AEM6.1 while the exercise is meant for 5.5&5.6

Thanks 

Pr@veen

Avatar

Level 8

Can you post your code for DistanceImpl?

Avatar

Level 10

Our AEM community articles always state which AEM versions that the article code was tested on. This one was used on 5.5 and 5.6. One issue i see in 6.1 (according to the attachment) is your junit libs are wrong version. I will look at this and getting it running on AEM 6.1. 

Avatar

Level 4

Hi Smac,

Than you for your response

Need your help as i am doing a POC please provide me the steps once you deploy in AEM6.1

Regards

Pr@veen

Avatar

Level 10

I will look into this on Tues (still mon night here). 

Avatar

Correct answer by
Level 10

I have successfully got this working with AEM 6.1. I will update the article to include an AEM 6.1 package and make a few updates in the article. Here is the sample running in 6.1.

https://helpx.adobe.com/experience-manager/using/restful-services.html

Avatar

Level 4

Hi Smacdonald,

Than you for all the valuable support you provided for me.It would be great if you can help us in providing the steps which you have implemented as i see the documentation provide in the URL hold good for only 5.5 & 5.6.

I have downloaded the restful service code from Adobe site and imported the code in eclipse luna using archetype10 with all the necessary changes and when i did the build  using the mavan latest binaries are not being deployed in AEM to see my changes.

 

Regards

Pr@veen