Add new role to Tomcat
I installed Tomcat6.0.24 on my system(from their site not from repos) and i needed to add a manaager account ,
Code:
<role rolename="manager"/> I Edited the file tomcat-users.xml and though a new role exists i cannot access manager page , it still says 401 unauthorized and points me to the above code saying that a new role has to be added , itried restarting the server several times also . Should i add user in any other file ? or what other modifications should be done ? I use Ubuntu 9.10 |
Hi -
You need to make sure you have a Tomcat "realm" is configured as a "UserDatabaseRealm": http://tomcat.apache.org/tomcat-6.0-...s%20a%20Realm? I'm not sure "rolename="manager"' is correct. I'd suggest adding another line in your tomcat-users.xml, with 'user="manager"'. Look here for more info: http://tomcat.apache.org/tomcat-6.0-...rDatabaseRealm Yes, you must recycle Tomcat for any changes to take effect. 'Hope that helps .. PSM |
Hmm according to this thread many users fail to notice Commented lines :p
have you removed it ??? http://ubuntuforums.org/showthread.php?t=972911 |
Lol silly me , i feel like such a nOOb
Yes that s what the problem was |
All times are GMT -5. The time now is 01:12 PM. |