Of course I copied the wrong one...

<tomcat-users xmlns="http://tomcat.apache.org/xml";
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
              xsi:schemaLocation="http://tomcat.apache.org/xml
tomcat-users.xsd"
              version="1.0">
  <role rolename="manager-gui" />
  <role rolename="manager-script" />
  <role rolename="admin-gui" />
  <role rolename="admin-script" />
  <user username="charnasol" password="charnasol" roles="manager-gui" />
  <user username="tomcat1" password="tomcat1" roles="manager-script" />
  <user username="tomcat" password="tomcat" roles="admin-script,admin-gui"
/>
</tomcat-users>

On Wed Feb 18 2015 at 12:48:32 PM John D. Ament <johndam...@apache.org>
wrote:

> Thanks for providing!
>
> The attribute name on the user is "roles" not "role"
>
>   <user username="tomcat1" password="tomcat1" roles="manager-script" />
>
>   <user username="tomcat" password="tomcat" roles="manager-gui" />
>
>
> You should only define a user once and give them multiple roles.  Your
> file should then look like this:
>
> <tomcat-users xmlns="http://tomcat.apache.org/xml";
>
>               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
>               xsi:schemaLocation="http://tomcat.apache.org/xml
> tomcat-users.xsd"
>
>               version="1.0">
>
>   <role rolename="manager-gui" />
>
>   <role rolename="manager-script" />
>
>   <role rolename="admin-gui" />
>
>   <role rolename="admin-script" />
>
>   <user username="charnasol" password="charnasol" role="manager-gui" />
>
>   <user username="tomcat1" password="tomcat1" role="manager-script" />
>
>   <user username="tomcat" password="tomcat" role="admin-script,admin-gui"
> />
>
> </tomcat-users>
>
>
> John
>
>
>
> On Wed Feb 18 2015 at 12:36:49 PM James McEvoy <tradingllc2...@gmail.com>
> wrote:
>
>> l 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="manager-gui" />
>>   <role rolename="manager-script" />
>>   <role rolename="admin-gui" />
>>   <role rolename="admin-script" />
>>   <user username="charnasol" password="charnasol" role="manager-gui" />
>>   <user username="tomcat1" password="tomcat1" role="manager-script" />
>>   <user username="tomcat" password="tomcat" role="admin-gui" />
>>   <user username="tomcat" password="tomcat" role="admin-script" />
>> </tomcat-users>
>>
>>
>> On Wed, Feb 18, 2015 at 7:17 AM, James McEvoy <tradingllc2...@gmail.com>
>> wrote:
>>
>> > Will do.
>> >
>> >
>> > On Wednesday, February 18, 2015, Terence M. Bandoian <tere...@tmbsw.com
>> >
>> > wrote:
>> >
>> >> On 2/17/2015 9:51 AM, James McEvoy wrote:
>> >>
>> >>> Checked logs, added admin and manager to all needed files and added
>> url
>> >>> so
>> >>> it's ok for tomcat to use and still rejected when Logging in.
>> >>> Stumped. I started and stopped it etc.
>> >>>
>> >>
>> >>
>> >> Hi, James-
>> >>
>> >> You might try posting the new contents of tomcat-users.xml (with
>> >> passwords obfuscated).
>> >>
>> >> -Terence Bandoian
>> >>
>> >>
>> >>
>> >>> On Tuesday, February 17, 2015, James McEvoy <tradingllc2...@gmail.com
>> >
>> >>> wrote:
>> >>>
>> >>>  Ok if will check all
>> >>>>
>> >>>> On Tuesday, February 17, 2015, John D. Ament <johndam...@apache.org
>> >>>> <javascript:_e(%7B%7D,'cvml','johndam...@apache.org');>> wrote:
>> >>>>
>> >>>>  Check your logs for why.  Don't forget to include the manager-gui
>> role
>> >>>>> in
>> >>>>> the list of roles.
>> >>>>>
>> >>>>> John
>> >>>>>
>> >>>>> On Tue Feb 17 2015 at 8:15:45 AM James McEvoy <
>> >>>>> tradingllc2...@gmail.com>
>> >>>>> wrote:
>> >>>>>
>> >>>>>  ok it wont take the shutdown command.
>> >>>>>>
>> >>>>>> On Tue, Feb 17, 2015 at 6:59 AM, James McEvoy <
>> >>>>>> tradingllc2...@gmail.com
>> >>>>>>
>> >>>>>> wrote:
>> >>>>>>
>> >>>>>>  couldnt screenshot so i just copied and pasted.
>> >>>>>>>
>> >>>>>>> <?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
>> >> For additional commands, e-mail: users-h...@tomcat.apache.org
>> >>
>> >>
>>
>

Reply via email to