Solved

Tomcat 7 Login

Posted on 2011-02-25
5
1,707 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 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