Your example inspired me to create a role named "admin" and add that role to the username "campee". I can login just fine now. The documentation makes no mention of needing to add an admin role and associating a user with it. It just mentions the manager role:
To enable access to the Manager web application, you must either create a new username/password combination and associate the role name *manager* with it, or add the *manager* role to some existing username/password combination. :( On Sun, Sep 13, 2009 at 8:36 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Eric [mailto:cam...@gmail.com] > > Subject: Re: help with tomcat manager > > > > I tried changing it to the following and restarting > > Tomcat but I got the same result: > > > > <tomcat-users> > > <role rolename="tomcat"/> > > <role rolename="role1"/> > > <role rolename="manager"/> > > <user username="tomcat" password="tomcat" roles="tomcat"/> > > <user username="both" password="tomcat" roles="tomcat,role1"/> > > <user username="role1" password="tomcat" roles="role1"/> > > <user username="campee" password="password" roles="manager"/> > > </tomcat-users> > > That should suffice. > > Are you sure you're running Tomcat from the place you edited? > > Here's my files (comments removed for readability): > > <tomcat-users> > <role rolename="manager"/> > <role rolename="admin"/> > <user username="admin" password="******" roles="admin,manager"/> > </tomcat-users> > > <Server port="8005" shutdown="SHUTDOWN"> > <Listener className="org.apache.catalina.core.AprLifecycleListener" > SSLEngine="on" /> > <Listener className="org.apache.catalina.core.JasperListener" /> > <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" > /> > <Listener > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> > <GlobalNamingResources> > <Resource name="UserDatabase" auth="Container" > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > </GlobalNamingResources> > <Service name="Catalina"> > <Connector port="8080" > protocol="org.apache.coyote.http11.Http11Protocol" > connectionTimeout="20000" > redirectPort="8443" /> > <Connector port="8081" > protocol="org.apache.coyote.http11.Http11NioProtocol" > connectionTimeout="20000" > redirectPort="8443" /> > <Engine name="Catalina" defaultHost="localhost"> > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > resourceName="UserDatabase"/> > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="logs" > prefix="localhost_access." suffix=".log" pattern="common" > resolveHosts="false"/> > </Host> > </Engine> > </Service> > </Server> > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >