Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat 7 Manager can't login

Trying to log in but can't. My tomcat-users.xml, modified as I saw it here.

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

Any suggestions?

like image 565
Sergey Scopin Avatar asked Sep 11 '13 16:09

Sergey Scopin


People also ask

How do I log into 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. manager-gui : Access to the Manager interface through the browser. You must assign this role to enable access to the web interface.

What is the default password for Tomcat Manager?

The Windows installer for Apache Tomcat defaults to a blank password for the administrative user. If this is not changed during the install process, then by default a user is created with the name admin, roles admin and manager and a blank password.

How do I change my Tomcat 7 username and password?

In the Services window, right-click the Ixiasoft Tomcat CCMS entry. Click Start. Edit the [CCMS Web Path]/apache-tomcat-[version]/webapps/oxygen-webapp/WEB-INF/license. properties file and update the new password.

Why is my Tomcat not working?

Most common issue with Tomcat note starting is that Java is not configured properly, user trying to start Tomcat does not have permissions to do so, or another program is using port 8080 on that server.


1 Answers

Remove the spaces between the roles for admin/admin. The list should just be comma separated as so:

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <role rolename="admin-gui"/>
  <role rolename="admin-script"/>
  <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/>
</tomcat-users>
like image 52
jlinxwiler Avatar answered Nov 13 '22 05:11

jlinxwiler