Hello everyone, I am LD, today is introduced: How to solve the openfire inside, custom servlet can not access the problem. The OpenFire version I'm using here is 3.9.3.
Since there is a authcheckfilter inside the OpenFire, this filter is used to prevent users from accessing the page without logging in. So our servlet is inaccessible without logging in to the OpenFire system, where we need to add our Sevlet access path to intercept exclusions using Authcheckfilter.addexclude. (Note: In Web-custom.xml, configuring the servlet access path can only be done in lowercase, which is a openfire bug, or it will still cause your servlet to be inaccessible)
When the previous step is complete, the access servlet will still explode null pointer errors. Here is because openfire on the page has a decoration, in the absence of login, decorate the page inside the code will be error, so also need in
Add your servlet address to the adornment exclusions in the Plugins\admin\webapp\web-inf\decorators.xml file.
This article is from the "studious, Good thinking" blog, please be sure to keep this source http://porterxie.blog.51cto.com/1787765/1632954
OpenFire Development (iii) custom servlet unreachable issues