Solved

Tomcat 7 Login

Posted on 2011-02-25
5
1,706 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Xampp Not Stopping 9 44
PHP Upload using Uploadify 4 126
ignore other .htaccess 2 79
Create link to folder for use with apache. 7 120
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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