LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2010, 09:30 PM   #1
Srikanth VM
LQ Newbie
 
Registered: Sep 2009
Distribution: Cent OS
Posts: 25

Rep: Reputation: 15
Question 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"/>
<user username="tomcat" password="s3cret" roles="manager"/>
This had to be added to tomcat-users.xml in conf DIR in Tomcat

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
 
Old 03-01-2010, 12:49 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 03-01-2010, 06:32 AM   #3
kantu
Member
 
Registered: Sep 2008
Posts: 77

Rep: Reputation: 16
Hmm according to this thread many users fail to notice Commented lines
have you removed it ???
http://ubuntuforums.org/showthread.php?t=972911

Last edited by kantu; 03-01-2010 at 06:33 AM.
 
Old 03-01-2010, 06:35 AM   #4
Srikanth VM
LQ Newbie
 
Registered: Sep 2009
Distribution: Cent OS
Posts: 25

Original Poster
Rep: Reputation: 15
Lol silly me , i feel like such a nOOb
Yes that s what the problem was
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 6.0 on Linux, after modifying tomcat-users.xml still cannot login. cuian01 Linux - Newbie 1 01-28-2010 03:45 AM
fresh tomcat 5.5 install not showing tomcat homepage laggerific Linux - Software 0 10-26-2007 03:28 PM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 10:36 PM
How to make Tomcat 4.0.1 and Tomcat 5.0.28 coexist in one server? g18397 Linux - Software 0 05-16-2006 03:16 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration