Re: No Authentication Dialog appears for Tomcat Manager
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 Mark Riggins wrote: Unfortunately, I'm not sure, and I don't know how to recreate the problem. Sorry. Mark David Smith-2 wrote: 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 Mark Riggins wrote: 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 wlievens wrote: Mark Riggins wrote: 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
Thanks! Mark David Simmons wrote: 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 Mark Riggins wrote: Unfortunately, I'm not sure, and I don't know how to recreate the problem. Sorry. Mark David Smith-2 wrote: 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 Mark Riggins wrote: 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 wlievens wrote: Mark Riggins wrote: 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
Mark Riggins wrote: 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No Authentication Dialog appears for Tomcat Manager
From: wlievens [mailto:[EMAIL PROTECTED] Subject: Re: No Authentication Dialog appears for Tomcat Manager Mark Riggins wrote: 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
Unfortunately, I'm not sure, and I don't know how to recreate the problem. Sorry. Mark David Smith-2 wrote: 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 Mark Riggins wrote: 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 wlievens wrote: Mark Riggins wrote: 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
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 Mark Riggins wrote: 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 wlievens wrote: Mark Riggins wrote: 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
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 wlievens wrote: Mark Riggins wrote: 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
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 termes: 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
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 David Delbecq-2 wrote: 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 termes: 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
Mark Riggins wrote: 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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
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... Mark Riggins a écrit : 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 From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat 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-namemanager/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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
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: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]