Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat Manager Authentication repeated popup while running a Java web project

I get a repeatedly popup to login to Tomcat Manager Application whenever I try running a Java web Project.

Putting in the username/password according to server properties (Manager-script) role doesn't work, the retarded server keeps popping up again with authentication required.

The server is Tomcat 8.0.27 with Netbeans 8.1 Suggestions anyone?

like image 204
Sumit Dhiman Avatar asked Feb 02 '16 11:02

Sumit Dhiman


People also ask

What is the default password of Tomcat Manager?

After restarting Tomcat, you should be able to access the Manager app (http://localhost:8080/manager/html) using username = admin and password = admin.

How do I change my Tomcat Manager username and password?

To change the Apache Tomcat Administration Console password, perform the following: Edit the [CCMS Web Path]/apache-tomcat-[version]/conf/tomcat-users. xml file and update the password. Click Start > Administrative Tools > Services.


1 Answers

You should create manager-gui role and grant it to the user in tomcat-users.xml.

<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
-->

By default Tomcat installs two applications manager and host-manager. These applications are in the webapps and they are using basic authentication mechanism to access their pages. Predefined roles above give access to these administrative apps. More about Manager apps you can find in the docs.

like image 175
Roman C Avatar answered Sep 22 '22 09:09

Roman C