403 Access denied to the specified URL in Tomcat 7.0.52

I recently migrated a tomcat server from 7.0.49to 7.0.52. In tomcat it contains 2 web applications that worked previously, after switching to this version, I came across 403 Access denied the specified URL .

In this case, when we first check it in the browser or tab associated with error 403, but when we refresh the page, it is redirected to the login page.

Another thing that I would like to add here is only one application as a result of this error 403. Therefore, I tried to compare with the Tomcat configuration files on both versions and make sure that there are no changes in the version for changes.

Adding additional debugging points on this problem in web.xml , the role is defined there, so I tried to comment on it. it is redirected to the login page.

Can anyone share ideas on these issues.

+4
source share
3 answers

Try to clear your browser cache before the first request. Perhaps the application that gives 403 uses some cookie authoriztion (e.g. sso cookie or possible jlyessionid). This cookie can be significant. If so, then after clearing the cookies you should go directly to the login page.

This explains why one application works and another does not (some state in the client’s browser can be saved)

+4
source

, 7.0.49 7.0.52.

.

+2

I encountered similar problems in the past when I started using the same version of Tomcat.

If I remember correctly, there was some confusion between the Tomcat and Servlet specifications, leading to some servlets starting twice. You can read a little here .

In any case, always working element for me metadata-complete="true"in web-appto web.xml. It is a pity, in my opinion, since I use only the Java configuration, and I have to save this file just for that.

0
source

All Articles