I have two AEM instances, one local, and one on our dev machine, that have the same code, setup, etc..
URL's are correctly resolving as custom servlets that are defined by the path. However, on another machine that sits on the client's environment, the URLs resolve to the DefaultSlingServlet. I've tried to find out what the differences could be between that environment and the others, but I haven't come up with any ideas since they have the same version of AEM 5.6.1, running the same JDK, using the same exact installation bundle.
URL endpoint is resolving to our custom servlets on most AEM instances, but to the default servlet on a machine that is housed elsewhere.
We've tried setting up the servlet to resolve by path, and also by resourceType, and with both approaches they work fine on the first set of machines and balk on the other. So it is not the way path vs. resourceType in servlet definition.
Has anyone hit this quirky behavior? I imagine that it must be related to settings on the different environments but so far no luck in finding differences.
Thanks for any ideas!
(btw, when I post to the custom servlet on the bad machine, it reports a PersistencException (when defined by path), or a ConstraintViolationException (when defined by resourceType). But that is to be expected since it is the default servlet trying to do something to the node that it is not allowed to do)