I am getting the below severe message while the tomcat 8 comes up with liferay.
SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/bg/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/sv/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/zh/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
This does not have any impact on server start up but not sure what is causing this? Any help would really appreciated.
It means that in
web.xml
someone has specified a security constraint just for methods POST and GET on pattern/bg/c/portal/protected
, possibly in a similar way to this:You should either remove
http-method
brackets so it will match all methods for thisurl-pattern
or create second one if you would like to set different security constraints on it without anyhttp-method
brackets.For instance if you would like to secure with SSL
/bg/c/portal/protected
endpoint for thePOST
andGET
methods, but for others you do not need that then you should create a config like this:As you see now all methods for this pattern are covered, hence no error will be thrown.