And also make sure you bounce tomcat after updating the tomcat-users.xml file. It is not read dynamically, it is read on start up.
John On Tue Feb 17 2015 at 7:23:34 AM Mark Thomas <ma...@apache.org> wrote: > On 17/02/2015 12:17, James McEvoy wrote: > > Mark > > I did that one before and it didn't work either. I even tried admin-gui > > The manager-gui role isn't in the file you quoted below. It should be. > Add it and then show us the new version of the file. > > Did you restart Tomcat after you edited tomcat-users.xml? > > If it still doesn't work, provide the full URL you are trying to access > and the full text of any response you receive. > > Mark > > > > > > > On Tuesday, February 17, 2015, Mark Thomas <ma...@apache.org> wrote: > > > >> On 17/02/2015 11:59, James McEvoy wrote: > >>> couldnt screenshot so i just copied and pasted. > >> > >> No user has the manager-gui role. > >> > >> Mark > >> > >> > >>> > >>> <?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> > >>> <role rolename="tomcat" /> > >>> <role rolename="role1" /> > >>> <user username="tomcat" password="tomcat" role="tomcat" /> > >>> <user username="both" password="tomcat" role="tomcat,role1" /> > >>> <user username="role1" password="tomcat" role="role1" /> > >>> </tomcat-users> > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > <javascript:;> > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> <javascript:;> > >> > >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >