Sorry. I'm using tomcat 6.0.26. I made sure my changes are not within comments. The full file is:
<?xml version='1.0' encoding='utf-8'?> <!-- 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> <!-- NOTE: By default, no user is included in the "manager" role required to operate the "/manager" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. --> <!-- 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"/> --> <role rolename="manager"/> <user username="user" password="pass" roles="manager"/> </tomcat-users> -----Original Message----- From: Mark Thomas [mailto:ma...@apache.org] Sent: Monday, November 15, 2010 9:55 AM To: Tomcat Users List Subject: Re: Configuring users On 15/11/2010 15:51, Noah, Craig [USA] wrote: > All, > > I'm trying to configure a user to use the manager web application. I have > read the comments in the tomcat-users.xml file on my server and added the > following two lines to the file: > > <role rolename="manager"/> > > <user username="user" password="pass" roles="manager"/> > > I have saved the file and restarted the server, but am still unable to get > to the manager web application. When I try to browse to the manager web > application at http://localhost:8084/manager/, I get a 404 report stating > the requested resource is not available. What am I missing? Telling us which Tomcat version and providing the complete contents of tomcat-users.xml would be a start. Without that, my best guess is you didn't spot the comment markers in the default file. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
smime.p7s
Description: S/MIME cryptographic signature