Running:
Windows Server 2008 R2 Standard
Tomcat 6.0.33
Sun JDK 1.6.0_26

I installed Tomcat using the windows installer and created an admin user & 
password.
Then I modified the server.xml and removed the localhost information and 
inserted my own host config as:
      <Host name="myhost.mydomain.com" appBase="webapps"
       unpackWARs="true" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">
      </Host>
The Manager directory is currently the only thing in the webapps directory. I 
have a context.xml pointing to my actual app in another location.
When I try to access http://myhost.mydomain.com/manager/html, I get prompted 
for the login info, 3 times, and then get this nice graphical 401 error page 
explaining that the tomcat-users.xml file may need to be modified.  I checked 
and it seems to be missing the <role rolename="manager-gui"/> entry (hard to 
tell, no hard returns).
I added the line, and even converted the file to DOS formatting, but still no, 
luck.
I also noticed that the <user> entry just had "name=" and not "username=" as 
the doc said, but that didn't help either.
Here is the file with the names changed to protect the innocent:

<?xml version='1.0' encoding='cp1252'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<tomcat-users>
<user username="admin" password="pword" roles="manager-gui" />
<!--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  <!.. ..> that surrounds them.
-->

<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>

Anybody got a clue?
Jeff
__________________________________________________________________________

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.

Reply via email to