Unable to access servlet

aradhyakasat

10-08-2020

So I have a aem project that I'm trying to run on a different machine. I just zipped my repository, unzipped it on the destination machine and did a maven build and deploy. I can see all my pages come up along with my components However I faced an issue. One of my custom components uses a servlet for populating a configuration dialog dropdown. It is linked with the cq:dialog using sling.servlet.resourceTypes. But the component is unable to populate the dropdown, probably because it is unable to access the servlet. Note, this works perfectly on the original machine. Just wanted to understand what possible gaps could there be?

Accepted Solutions (1)

Accepted Solutions (1)

BrianKasingli

MVP

10-08-2020

@aradhyakasat,

There are numerous scenarios as to why your servlet is not running as expected, Can you please share your stack trace, error.log? 

Answers (1)

Answers (1)

SundeepKatepally

10-08-2020

Firstly is it author or publish ?

 

is servlet path getting resolved ?

 

or is it getting resolved and throwing an error while executing ?

 

are your getting 4XX or 5XX error ?

 

is the servet using any system user which you dont have ?

 

are there 2 servlet in instance which has the same path. ?

 

If possible any stack trace if its 5XX issue