On Fri, Jun 29, 2012 at 11:17 AM, kl2eativ <kl2ea...@gmail.com> wrote:

> Hello. I am having problems trying to authenticate my tomcat 7 manager
> app. I
> keep getting a 401 Unauthorized page. My config is as follows:
> tomcat-users.xml (Located in /etc/tomcat5)
> [code]
>   <?xml version='1.0' encoding='utf-8'?>
>  <tomcat-users>
>  <role rolename="manager-gui"/>
>  <user username="manager" password="tomcat" roles="manager-gui" />
>  </tomcat-users>
> [/code]
>
> server.xml (Located in /etc/tomcat5)
> [code]
>
>              <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="etc/tomcat5/tomcat-users.xml" />
> [/code]
>
> I restart the tomcat service ( #service tomcat restart ) , but still cannot
> authenticate. Your help would be greatly
> appreciated.
>
> --
> View this message in context:
> http://tomcat.10.n6.nabble.com/Tomcat-7-Manager-App-Authentication-failure-tp4983418.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

First check the security-constraint in the manager app and make sure that
the manager-gui role  is allowed access.

Second, are you trying to access from localhost or remote host?

Igor

Reply via email to