ExperienceFragmentsService is not working | Community
Skip to main content
Dinu_Arya
Level 6
July 22, 2021
Solved

ExperienceFragmentsService is not working

  • July 22, 2021
  • 1 reply
  • 1305 views

Hi Team,

 

I'm using ExperienceFragmentsService in servlet but while calling the servlet, I'm getting 404 resource not found. Whenever I remove/comment the below declaration then the servlet is working fine. I'm using AEM6.5 version.
@3214626
ExperienceFragmentsService experienceFragmentsService ;

Is there any other way to get this service to use it? Kindly help.

Best Regards,

AryA

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dipti_Chauhan

Hi @dinu_arya 

 Can you try creating instance using ExperienceFragmentsServiceFactory

Sharing sample code:

@Reference ExperienceFragmentsServiceFactory experienceFragmentsServiceFactory; ExperienceFragmentsService service=experienceFragmentsServiceFactory.getExperienceFragmentsService(resourceResolver);

 

Thanks

Dipti

1 reply

Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 22, 2021

Hi @dinu_arya 

 Can you try creating instance using ExperienceFragmentsServiceFactory

Sharing sample code:

@Reference ExperienceFragmentsServiceFactory experienceFragmentsServiceFactory; ExperienceFragmentsService service=experienceFragmentsServiceFactory.getExperienceFragmentsService(resourceResolver);

 

Thanks

Dipti

Dinu_Arya
Dinu_AryaAuthor
Level 6
July 22, 2021
Hi Dipti,