Highlighted

why I see three service ID for one service I created

Avatar

Avatar

BigT168

Avatar

BigT168

BigT168

19-04-2018

In AEM 6.3 SP1, I create a service

@SlingServlet(paths={"/service/prodService"},

                         extensions = { "json" },

                         methods = "GET",

                         metatype=false)

public class ProdService extends org.apache.sling.api.servlets.SlingAllMethodsServlet

After build/deploy, I check the bundle, it creates three service ID, two of them are exactly same.

Service ID 6623 Types: javax.servlet.Servlet

                                       Component Name: com.service.ProdService

                                       Component ID: 3090

Service ID 6624 Types: org.apache.sling.spi.resource.provider.ResourceProvider

                                        Description: ServletResourceProvider for Servlets at [/service/prodService, /service/prodService.servlet]

Service ID 6625 Types: org.apache.sling.spi.resource.provider.ResourceProvider

                                        Description: ServletResourceProvider for Servlets at [/service/prodService, /service/prodService.servlet]

Does any one know why I am getting three of them.

In AEM 6.3 SP1, I see only one

Service ID 7209 Types: javax.servlet.Servlet

                                       Service PID: com.service.ProdService

                                       Component Name: com.service.ProdService

                                       Component ID: 3601

Thanks.

Replies

Highlighted

Avatar

Avatar

brackenk1997

Avatar

brackenk1997

brackenk1997

10-08-2018

Did you ever figure this out?  Just upgraded an instance to 6.3 today and I am experiencing the same thing.  Thanks in advance!