ExperienceFragmentsService is not working

Avatar

Avatar
Contributor 2
Level 4
Dinu_Arya
Level 4

Likes

38 likes

Total Posts

184 posts

Correct reply

16 solutions
Top badges earned
Contributor 2
Applaud 25
Validate 50
Validate 25
Validate 10
View profile

Avatar
Contributor 2
Level 4
Dinu_Arya
Level 4

Likes

38 likes

Total Posts

184 posts

Correct reply

16 solutions
Top badges earned
Contributor 2
Applaud 25
Validate 50
Validate 25
Validate 10
View profile
Dinu_Arya
Level 4

22-07-2021

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.
@reference
ExperienceFragmentsService experienceFragmentsService ;

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

Best Regards,

AryA

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

111 likes

Total Posts

133 posts

Correct reply

39 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

111 likes

Total Posts

133 posts

Correct reply

39 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

22-07-2021

Hi @Dinu_Arya 

 Can you try creating instance using ExperienceFragmentsServiceFactory

Sharing sample code:

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

 

Thanks

Dipti

Answers (0)