ExperienceFragmentsService is not working | Community
Skip to main content
Dinu_Arya
Level 6
Jul 22, 2021 7:50 AM UTC
Solved

ExperienceFragmentsService is not working

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.
Dipti_Chauhan
Dipti_ChauhanAccepted solution
New Participant
Jul 22, 2021 8:10 AM UTC

Hi @dinu_arya 

 Can you try creating instance using ExperienceFragmentsServiceFactory

Sharing sample code:

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

 

Thanks

Dipti

3 replies

Dipti_Chauhan
Dipti_ChauhanAccepted solution
New Participant
Jul 22, 2021 8:10 AM UTC

Hi @dinu_arya 

 Can you try creating instance using ExperienceFragmentsServiceFactory

Sharing sample code:

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

 

Thanks

Dipti

Translate
Dinu_Arya
Dinu_AryaAuthor
Level 6
Jul 22, 2021 10:03 AM UTC
Hi Dipti,
Translate