Solved

Tomcat 7 Login

Posted on 2011-02-25
5
1,705 Views
Last Modified: 2012-05-11
This is my tomcat-users.xml file:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<
  <role rolename="tomcat"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="zozimos" password="orion" roles="manager-gui"/>
  <user username="tomcat" password="tomcat" roles="manager-script"/>
 >
</tomcat-users>

Using tomcat 7 when i enter http://localhost:8080 i get the '...successfully installed Tomcat...' and on the right side there are three buttons   (server status)  (manager app) (host manager)

When I click any of them I get the login/password prompt.  No combination of tomcat or zozimos allows me to log in.  What else do I need to do?
0
Comment
Question by:xoxomos
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:FastSi
ID: 34983690
Looking at some example confs and they dont contain the extra < and > above and below the users.
0
 
LVL 4

Expert Comment

by:FastSi
ID: 34983713
Also a restart of tomcat will be required after any changes to this file.
0
 

Author Comment

by:xoxomos
ID: 34984438
I tried making that change:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="admin-gui"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-status"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="tomcat" password="tomcat" roles="manager-gui"/>
  <user username="bobcat" password="bobcat" roles="admin-gui"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="zozimos" password="orion" roles="manager-gui"/>
  <user username="zozimos" password="orion" roles="manager-status"/>
</tomcat-users>

Now when clicking the buttons, i don't get a login/password prompt.  The server status immediately goes to that page, on the other two, i get a 401 UNAUTHORIZED or a 403 ACCESS DENIED?
0
 

Accepted Solution

by:
xoxomos earned 0 total points
ID: 35048141
Problem solved with reinstall.
0
 

Author Closing Comment

by:xoxomos
ID: 35106992
Problem solved with reinstall.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question