Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set the correct username and password with the "manager-script" role in the Tomcat

I know this has been asked many before. But I have already placed my user to role "manager-script".

I keep getting this when trying to deploy:

Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager. See the server log for details.

enter image description here

My D:\DEV\apache-tomcat-7.0.47\conf\tomcat-users.xml:

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
    <role rolename="manager-script"/>
    <user username="user" password="user" roles="manager-script"/>
</tomcat-users>

The server starts just fine without errors from netbeans but when I go to deploy, it keep asking me for the credentials that has "manager-script".

enter image description here

What I have tried:

  1. Removing all other Apache installs/directories.
  2. Rebooting.
  3. Double, triple and quadruple checking the username and password (user@user).

What am I doing wrong?

like image 664
capdragon Avatar asked Dec 16 '13 22:12

capdragon


People also ask

What is the username and password for 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.

What are the roles for users in Tomcat?

The available roles are: manager-gui — Access to the HTML interface. manager-status — Access to the "Server Status" page only. manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page.

Where are the passwords in Tomcat?

These credentials are stored as plain text in the tomcat-users. xml file located in Tomcat's conf folder as seen below. To enhance the security of Tomcat, the passwords stored in the tomcat-users. xml file can be encrypted.


1 Answers

same problem.. fixéd it by adding:

<tomcat-users> <role rolename="manager-script"/> <user username="user" password="user" roles="manager-script"/> </tomcat-users>

to C:\Program files\apache-tomcat-7.0.47\conf\tomcat-users.xml

and remember to run netbeans as administrator.

like image 152
martinweberhansen Avatar answered Sep 22 '22 09:09

martinweberhansen