I installed Netbeans and tryed to access the server\'s manager using: (id/pass)manager/manager, admin/admin, system/password... None of them worked.
In Tomcat 7, under TOMCAT_HOME/conf/tomcat_users.xml
, see the <user />
tag to see password.
Example:
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
Only this helped me:
To use the web administration gui you have to add the gui role :
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<user username="name" password="pwd" roles="admin,admin-gui,manager,manager-gui"/>
Platform NetBeans 7.3, Apache Tomcat 7.0.34 re: Tomcat Manager
I spent 3 days tracking this down because I thought I had a bad install.
On Windows and Linux, NetBeans uses a separate file location for CATALINA_BASE:
http://wiki.netbeans.org/FaqInstallationDefaultTomcatPassword
So you can modify the tomcat_user.xml under CATALINA_HOME: until your face turns blue, to no effect.
It appears that the IDE only requires, manager-script,admin roles under CATALINA_BASE:.
When I tried to add a user to the manager-gui role (to the correct tomcat_user.xml file), required for access to the Tomcat Manager, Tomcat stopped presenting the login dialog and went directly to the 401 access denied splash page.
It appears that the NetBeans package uses a locked-down version of TomCat.
I hope this saves everyone some time.
Go to "%TOMCAT_FOLDER%/conf/tomcat-users.xml" and configure the following :
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager-gui,manager-script"/>
</tomcat-users>
Hence, the username is "admin" and password is "admin"
Check the file in <TOMCAT_HOME>/conf
named tomcat-users.xml
.
If you don't find something there edit to look something like:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<user username="admin" password="password" roles="standard,manager,admin"/>
</tomcat-users>
If people still have problems after adding/modifying the tomcat-users.xml file and adding the relevant user/role for the version of Tomcat that they're using then please be sure that you've removed the comment tags that are surrounding this block. They will look like this in the XML file:
<!--
-->
They will be above and below the user/role section.