Free access to the Tomcat management screen

Asked

Viewed 800 times

0

I have installed Netbeans 8.1 in this installation, I took advantage of installing Tomcat 8.0.27. However I am not able to access the management screen, because it asks the password.
I tried several user settings, password and roles but without success, tried with usuario: tomcat and password : tomcat and will not.

<tomcat-users>

<user password="admin" roles="manager-script,admin" username="admin"/>
<user username="ide" password="IHyVhSsB" roles="manager-script,admin"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="admin,admin-gui,manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager"/>
</tomcat-users>
  • See the update I made in the reply.

1 answer

1

I suggest you try to reinstall your Tomcat or delete all entries you have added, as there are many changes to your file tomcat-users.xml unnecessarily. Then, with the file with the default settings, add only the lines below:

  <role rolename="manager-gui"/>    
  <role rolename="admin-gui"/>
  <role roleusername="manager-script"/>
  <user username="admin" password="admin" roles="admin-gui,manager-gui,manager-script"/>

More information can be found on documentation of the Tōcat itself.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.