OpenFire Development (iii) custom servlet unreachable issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.