Tomcat 403 Access Denied Error On Redhat/CentOS

Tomcat 403 Access Denied, Sometimes. we want to access the Tomcat server over the network with Username and Password for doing some work via GUI. find process id tomcat using ps -ef | grep tomcat and kill tomcat service in Ubuntu using pkill -9 id tomcat. you can use tomcat service Linux to start the service, if tomcat not starting Linux, check the Catalina.out log for troubleshooting.

Check Out: How to Enable QR Code Generator On Microsoft Edge Browser

So it’s pretty simple you just have to define the username and password in tomcat-users.xml file on tomcat 9 server.

Tomcat 403 Access Denied Error On Redhat:

This issue will come when you will try to access the Manager GUI of tomcat 9 Server. This issue will occur when you will try to access with particular IP address like I’m doing in this post.

Check Out: Deploy war Application on Tomcat Server

I have already configured Username and Password for Web-based access Tomcat server check out here.

To resolve this issue on tomcat 9, you will have to make some changes to achieve this. 

Check Out: How To Change Tomcat Port Number

Go to the location mention below,


By Default Settings are here in this file,

tomcat service linux


we have to change it to comment the <value>

kill tomcat server in ubuntu

Now, shutdown and restart the server.

Check Out:  Tomcat 9 This file Is needed To Run This Program

Also, Kill the tomcat process by checking below command,

ps -ef | grep java
kill -9 pid

tomcat not starting linux

Now try to access Manager GUI on the browser, click on Manager App And Enter your username and password which is defined under tomcat-users.xml file.

Check Out:  Installation of APM Agent In Elasticsearch For Tomcat Server

kill tomcat server in ubuntu

Check Out: Find Stolen Device Location With Prey Tool In Ubuntu

Now Manager App is accessible,

YouTube link: Tomcat 403 Access Denied

That’s it. find process id tomcat kill tomcat server in ubuntu

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment