Discussion:
No Authentication Dialog appears for Tomcat Manager
Mark Riggins
2008-01-13 00:26:11 UTC
Permalink
Instead of a basic-authentication dialog box, I get the following error
message instead.

HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication ().
Apache Tomcat/6.0.13

My tomcat-users.xml file looks like this:
<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

<role rolename="tomcat"/>

<role rolename="manager"/>

<role rolename="admin"/>

<user username="tomcat" password="tomcat" roles="tomcat"/>

<user username="manager" password="manager" roles="manager"/>

<user username="admin" password="admin" roles="admin"/>

</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>

<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>

But the dialog NEVER APPEARS.

Any help would be greatly appreciated. I can't get ANT to work without
this.
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14780731.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
david delbecq
2008-01-13 20:51:02 UTC
Permalink
Are you using a browser to access that url? 'cause you mention ANT, but
ant is not a browser and will surely not show a dialog when accessing
the manager...
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Riggins
2008-01-14 02:09:51 UTC
Permalink
I'm trying to access http://localhost/manager/html, which I believe is an
HTML interface into the Tomcat Manager.

Maybe it would be easier to edit build.xml and replace the "deploy" with a
simple copy. I can't get the Manager working.

<!-- Copy Build into Tomcat/webapps -->
<mkdir dir="${catalina.home}/webapps/SE"/>
<copy todir="${catalina.home}/webapps/SE">
<fileset dir="${build.home}"/>
</copy>

<!-- MDR use copy instead of Tomcat Manager App
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file://${build.home}"/>
-->


Are you using a browser to access that url? 'cause you mention ANT, but
ant is not a browser and will surely not show a dialog when accessing
the manager...
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14794133.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
David Delbecq
2008-01-14 08:18:59 UTC
Permalink
The message you see in browser, namely "HTTP Status 401 -...." appear
probably because your browser for an unknown reason does not support
basic authentification or has it disabled (securities in browser that
prevent basic auth outside of ssl?). The text you see is normaly sent by
tomcat along with http 401 code + basic auth headers. In my browser it
appear only if i click "cancel" in my authentification popup. Could you
sniff your connection to ensure the basic auth headers are correctly
sent to browser by tomcat? And indeed, manager/html is the html
interface to tomcat manager.


En l'instant précis du 14/01/08 03:09, Mark Riggins s'exprimait en ces
Post by Mark Riggins
I'm trying to access http://localhost/manager/html, which I believe is an
HTML interface into the Tomcat Manager.
Maybe it would be easier to edit build.xml and replace the "deploy" with a
simple copy. I can't get the Manager working.
<!-- Copy Build into Tomcat/webapps -->
<mkdir dir="${catalina.home}/webapps/SE"/>
<copy todir="${catalina.home}/webapps/SE">
<fileset dir="${build.home}"/>
</copy>
<!-- MDR use copy instead of Tomcat Manager App
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file://${build.home}"/>
-->
Are you using a browser to access that url? 'cause you mention ANT, but
ant is not a browser and will surely not show a dialog when accessing
the manager...
--
http://www.devlog.be (a belgian developer's logs)



---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Riggins
2008-01-14 15:21:08 UTC
Permalink
That's not it. I tried this site http://gemal.dk/browserspy/password.html
which has a basic authentication test built into it. It displayed and
worked properly in my browser. I am not using SSL. I don't have a
sniffer installed on XP [I'm more experienced with unix]

I don't want to put any move effort into it. I'll just avoid the Manager
instead if its that hard to set up.

Mark
Post by David Delbecq
The message you see in browser, namely "HTTP Status 401 -...." appear
probably because your browser for an unknown reason does not support
basic authentification or has it disabled (securities in browser that
prevent basic auth outside of ssl?). The text you see is normaly sent by
tomcat along with http 401 code + basic auth headers. In my browser it
appear only if i click "cancel" in my authentification popup. Could you
sniff your connection to ensure the basic auth headers are correctly
sent to browser by tomcat? And indeed, manager/html is the html
interface to tomcat manager.
En l'instant précis du 14/01/08 03:09, Mark Riggins s'exprimait en ces
Post by Mark Riggins
I'm trying to access http://localhost/manager/html, which I believe is an
HTML interface into the Tomcat Manager.
Maybe it would be easier to edit build.xml and replace the "deploy" with a
simple copy. I can't get the Manager working.
<!-- Copy Build into Tomcat/webapps -->
<mkdir dir="${catalina.home}/webapps/SE"/>
<copy todir="${catalina.home}/webapps/SE">
<fileset dir="${build.home}"/>
</copy>
<!-- MDR use copy instead of Tomcat Manager App
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file://${build.home}"/>
-->
Are you using a browser to access that url? 'cause you mention ANT, but
ant is not a browser and will surely not show a dialog when accessing
the manager...
--
http://www.devlog.be (a belgian developer's logs)
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14803675.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Thomas
2008-01-14 20:17:43 UTC
Permalink
Post by Mark Riggins
I don't want to put any move effort into it. I'll just avoid the Manager
instead if its that hard to set up.
The Manager works out of the box on a clean install. If it doesn't work for
you then something else is messed up in your configuration which is
probably going to bite you later. I would fix it now rather than when
someone is breathing down you next because some important system isn't running.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
wlievens
2008-01-18 11:30:37 UTC
Permalink
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my configuration
was adding a user. I never get the dialog prompt.

I'd really like a solution for this problem.
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14948099.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Caldarale, Charles R
2008-01-18 14:14:08 UTC
Permalink
Subject: Re: No Authentication Dialog appears for Tomcat Manager
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the
following error message instead.
HTTP Status 401 -
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
As explained before in this thread, this is not a Tomcat problem.
Displaying any form of dialog box is the responsibility of the client
(usually a browser), not the server. The 401 response Tomcat is
returning is exactly what it's supposed to do when an unauthenticated
request for a protected resource arrives. Fix your client.

- 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 start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Riggins
2008-01-18 19:48:11 UTC
Permalink
It turns out that Netbeans likes to use the Tomcat Manager, so I had to get
this working. Since others claimed that it worked "out of the box" I just
uninstalled everything [losing quite a bit of customization] and
did a clean vanilla install.

Now it works, but I have no idea what caused the problem. This is NOT A
BROWSER PROBLEM -- I tried two different browsers before, firefox and IE,
neither worked before, and both work now. I too had added
another user, so perhaps it has something to do with that.

At this point, I'm just glad its working. Fortunately, at this point, I'm
just dorking around, refreshing my tech skills, which have gotten a little
dusty, so I can easily chuck the whole install and start fresh.

Mark
Post by wlievens
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
I'd really like a solution for this problem.
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14957770.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
David Smith
2008-01-18 19:55:49 UTC
Permalink
I'm just wondering if you got a 401 page, but a 200 status or something
like that. Maybe one of your customizations did some filtering and/or
proxying and changed the response code. Seems like the most reasonable
cause of your problem.

--David
Post by Mark Riggins
It turns out that Netbeans likes to use the Tomcat Manager, so I had to get
this working. Since others claimed that it worked "out of the box" I just
uninstalled everything [losing quite a bit of customization] and
did a clean vanilla install.
Now it works, but I have no idea what caused the problem. This is NOT A
BROWSER PROBLEM -- I tried two different browsers before, firefox and IE,
neither worked before, and both work now. I too had added
another user, so perhaps it has something to do with that.
At this point, I'm just glad its working. Fortunately, at this point, I'm
just dorking around, refreshing my tech skills, which have gotten a little
dusty, so I can easily chuck the whole install and start fresh.
Mark
Post by wlievens
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
I'd really like a solution for this problem.
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
RJ
2008-01-18 20:45:53 UTC
Permalink
I had this problem happen when I added custom error-page definitions in
the overall web.xml for the installation -- the error pages worked fine for my own
applications, but the fact that they were defined seemed to cause a problem for the
manager.

Soon as I commented-out all of them except the 404 and 500 pages, things
were fine again. Not sure which one caused the problem, but it
definitely didn't seem like a client-browser issue.

rj
Post by David Smith
I'm just wondering if you got a 401 page, but a 200 status or
something like that. Maybe one of your customizations did some
filtering and/or proxying and changed the response code. Seems like
the most reasonable cause of your problem.
--David
Post by Mark Riggins
It turns out that Netbeans likes to use the Tomcat Manager, so I had to get
this working. Since others claimed that it worked "out of the box" I just
uninstalled everything [losing quite a bit of customization] and did
a clean vanilla install.
Now it works, but I have no idea what caused the problem. This is NOT A
BROWSER PROBLEM -- I tried two different browsers before, firefox and IE,
neither worked before, and both work now. I too had added
another user, so perhaps it has something to do with that.
At this point, I'm just glad its working. Fortunately, at this point, I'm
just dorking around, refreshing my tech skills, which have gotten a little
dusty, so I can easily chuck the whole install and start fresh.
Mark
Post by wlievens
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
I'd really like a solution for this problem.
---------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Riggins
2008-01-18 23:20:17 UTC
Permalink
Unfortunately, I'm not sure, and I don't know how to recreate the problem.

Sorry.

Mark
Post by David Smith
I'm just wondering if you got a 401 page, but a 200 status or something
like that. Maybe one of your customizations did some filtering and/or
proxying and changed the response code. Seems like the most reasonable
cause of your problem.
--David
Post by Mark Riggins
It turns out that Netbeans likes to use the Tomcat Manager, so I had to get
this working. Since others claimed that it worked "out of the box" I just
uninstalled everything [losing quite a bit of customization] and
did a clean vanilla install.
Now it works, but I have no idea what caused the problem. This is NOT A
BROWSER PROBLEM -- I tried two different browsers before, firefox and IE,
neither worked before, and both work now. I too had added
another user, so perhaps it has something to do with that.
At this point, I'm just glad its working. Fortunately, at this point, I'm
just dorking around, refreshing my tech skills, which have gotten a little
dusty, so I can easily chuck the whole install and start fresh.
Mark
Post by wlievens
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
I'd really like a solution for this problem.
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14962122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
David Simmons
2008-01-27 03:30:15 UTC
Permalink
Hi,

I just experienced the same problem, found this thread via Google, and
figured I'd post my experience and solution.

Just like Mark's experience, I installed Tomcat and could not use the
manager app because the browser never presented me a dialog box for the
username and password. Sure enough, an analysis of the HTTP response
headers reveals no "WWW-Authenticate" header, so the browser is not at
fault:

HTTP/1.1 401
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 954
Date: Sun, 27 Jan 2008 02:56:12 GMT

("Apache Tomcat/6.0.14 - Error report" body here...)

However, I noticed in my catalina.out numerous exceptions where Tomcat
was getting "permission denied" while attempting to write to files.
Sure enough, when I corrected the permissions so that the tomcat user
had write permissions to all relevant directories and files, everything
started working normally.

I can see how the strange behavior of the manager app could be really
frustrating and not very helpful, but it turned out to be a pretty
mundane problem.

David
Post by Mark Riggins
Unfortunately, I'm not sure, and I don't know how to recreate the problem.
Sorry.
Mark
Post by David Smith
I'm just wondering if you got a 401 page, but a 200 status or something
like that. Maybe one of your customizations did some filtering and/or
proxying and changed the response code. Seems like the most reasonable
cause of your problem.
--David
Post by Mark Riggins
It turns out that Netbeans likes to use the Tomcat Manager, so I had to
get
Post by David Smith
Post by Mark Riggins
this working. Since others claimed that it worked "out of the box" I just
uninstalled everything [losing quite a bit of customization] and
did a clean vanilla install.
Now it works, but I have no idea what caused the problem. This is NOT A
BROWSER PROBLEM -- I tried two different browsers before, firefox and IE,
neither worked before, and both work now. I too had added
another user, so perhaps it has something to do with that.
At this point, I'm just glad its working. Fortunately, at this point,
I'm
Post by David Smith
Post by Mark Riggins
just dorking around, refreshing my tech skills, which have gotten a little
dusty, so I can easily chuck the whole install and start fresh.
Mark
Post by wlievens
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
I'd really like a solution for this problem.
---------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Riggins
2008-01-27 04:36:23 UTC
Permalink
Thanks!

Mark
Post by David Simmons
Hi,
I just experienced the same problem, found this thread via Google, and
figured I'd post my experience and solution.
Just like Mark's experience, I installed Tomcat and could not use the
manager app because the browser never presented me a dialog box for the
username and password. Sure enough, an analysis of the HTTP response
headers reveals no "WWW-Authenticate" header, so the browser is not at
HTTP/1.1 401
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 954
Date: Sun, 27 Jan 2008 02:56:12 GMT
("Apache Tomcat/6.0.14 - Error report" body here...)
However, I noticed in my catalina.out numerous exceptions where Tomcat
was getting "permission denied" while attempting to write to files.
Sure enough, when I corrected the permissions so that the tomcat user
had write permissions to all relevant directories and files, everything
started working normally.
I can see how the strange behavior of the manager app could be really
frustrating and not very helpful, but it turned out to be a pretty
mundane problem.
David
Post by Mark Riggins
Unfortunately, I'm not sure, and I don't know how to recreate the problem.
Sorry.
Mark
Post by David Smith
I'm just wondering if you got a 401 page, but a 200 status or something
like that. Maybe one of your customizations did some filtering and/or
proxying and changed the response code. Seems like the most reasonable
cause of your problem.
--David
Post by Mark Riggins
It turns out that Netbeans likes to use the Tomcat Manager, so I had to
get
Post by David Smith
Post by Mark Riggins
this working. Since others claimed that it worked "out of the box" I just
uninstalled everything [losing quite a bit of customization] and
did a clean vanilla install.
Now it works, but I have no idea what caused the problem. This is NOT A
BROWSER PROBLEM -- I tried two different browsers before, firefox and IE,
neither worked before, and both work now. I too had added
another user, so perhaps it has something to do with that.
At this point, I'm just glad its working. Fortunately, at this point,
I'm
Post by David Smith
Post by Mark Riggins
just dorking around, refreshing my tech skills, which have gotten a little
dusty, so I can easily chuck the whole install and start fresh.
Mark
Post by wlievens
Post by Mark Riggins
Instead of a basic-authentication dialog box, I get the following error
message instead.
HTTP Status 401 -
type Status report
message
description This request requires HTTP authentication ().
Apache Tomcat/6.0.13
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
</tomcat-users>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
But the dialog NEVER APPEARS.
Any help would be greatly appreciated. I can't get ANT to work without
this.
I have the exact same problem. The only thing I changed in my
configuration was adding a user. I never get the dialog prompt.
I'd really like a solution for this problem.
---------------------------------------------------------------------
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p15115906.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Loading...