Tomcat 403 Access Denied Error On Redhat
Tomcat 403 Access Denied, Sometimes. we want to access 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.
So it’s pretty simple you just have to define the username and password in tomcat-users.xml file on tomcat 9 server.
This issue will come when you will try to access 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,
changed it to comment the <value>
Now shutdown and restart the server.
Also Kill the tomcat process by checking below command,
ps -ef | grep java
kill -9 pid
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.
Now Manager App is accessible,
YouTube link: Tomcat 403 Access Denied
That’s it. find process id tomcat kill tomcat server in ubuntu