Hi,
We have registered a servlet in AEMaaCS with path "/bin/cookieservlet". The servlet needs to be triggered when clickin on a button and redirect to different page. The functionality is working fine in author environment. But in publish environment we are getting Resource not found error for the /bin/cookieservlet path.
Not able to access system/console either from author or publish.
Can someone help me on this ?
Thanks in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @SushmaNa,
Couple of checkpoints for this -
1. Check whether the dispatcher is able to filter and allow request forward to publish
# /005 { /type "allow" /url "/bin/*" } # allow bin path access
Also try to bind your servlet to resource type and not path if possible.
You can refer to the below URL for other ideas -
Hope this helps!
Is it the publisher or dispatcher ? I think it might be blocked on dispatcher level. Something like
/0121 { /type "allow" /url "/bin/cookieservlet"}
For accessing OSGI on cloud, you need access to developer console. Ask your system admin for that.
Hi @h_kataria
Can a developer access OSGI on cloud higher environment , will they give access
Thanks, Renju
Hi @h_kataria
Thanks for the reply!
Dispatcher is yet to be setup in our project. Can this issue be resolve after we set up the dispatcher ?
Yes, this can be done once the dispatcher has been setup properly but please make sure that issue is related to dispatcher only.
On AEMaaCS your publish also goes through a default dispatcher config (default.farm or publish.farm) generally found under conf.dispatcher.d/available_farms directory. You can simply add a filter rule there (similar to one I mentioned above) to allow your servlet to make sure that this issue is related to dispatcher config only.
Hope this helps.
Hi @SushmaNa,
Couple of checkpoints for this -
1. Check whether the dispatcher is able to filter and allow request forward to publish
# /005 { /type "allow" /url "/bin/*" } # allow bin path access
Also try to bind your servlet to resource type and not path if possible.
You can refer to the below URL for other ideas -
Hope this helps!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies