tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Anderl <tand...@cs.washington.edu>
Subject Re: Accessing Manager app through URLConnection
Date Sat, 26 Jan 2002 20:20:33 GMT
Are you giving it a command?  e.g.

http://your.server/manager/list

From the log, it looks like you're not including the command ("list" in 
this case) So the manager sees an empty command string and doesn't 
recognize what it's supposed to do with it.

Catch you later,

Tom

On Sat, 26 Jan 2002, Donald Lee wrote:

> I setup mine and it authenticates then gives me,
> 
> "FAIL - Unknown command "
> 
> I don't even know where to begin troubleshooting because I don't know what I 
> am supposed to be looking for.
> Localhost_log file has the following,
> 
> 2002-01-26 15:13:35 StandardWrapper[/manager:Manager]: Loading container 
> servlet Manager
> 2002-01-26 15:13:35 Manager: init
> 2002-01-26 15:13:35 Manager: init: Associated with Deployer 'localhost'
> 
> localhost_access_log has
> 192.168.0.1 - - [26/Jan/2002:15:13:33 -0500] "GET /manager HTTP/1.1" 401 618
> 192.168.0.1 - dwlee1 [26/Jan/2002:15:13:35 -0500] "GET /manager HTTP/1.1" 
> 200 40
> 
> 
> 
> ----Original Message Follows----
> From: "Craig R. McClanahan" <craigmcc@apache.org>
> Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Re: Accessing Manager app through URLConnection
> Date: Sat, 26 Jan 2002 08:46:45 -0800 (PST)
> 
> 
> 
> On Fri, 25 Jan 2002, Christian Cryder wrote:
> 
>  > Date: Fri, 25 Jan 2002 23:31:28 -0700
>  > From: Christian Cryder <christianc@granitepeaks.com>
>  > Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
>  > To: Tomcat-User <tomcat-user@jakarta.apache.org>
>  > Subject: Accessing Manager app through URLConnection
>  >
>  > Ok, how can I go about accessing the Manager app through a URL 
> connection?
>  > Its currently generating a 401 error code, and I know the reason is 
> because
>  > of the role stuff...how can I programatically assign a role? Or is there 
> a
>  > way I can pass the user/pwd info along with the url poarameters somehow? 
> I'd
>  > greatly appreciate some ideas on this...
>  >
> 
> Hi Christian,
> 
> You are indeed getting a 401 error because the manager webapp is protected
> by a security constraint using BASIC authentication.  If you run it from a
> browser, you get the usual pop-up dialog.
> 
> To use automated connections, your client code is going to have to create
> an "Authorization" header that encodes the username and password, in the
> format required by RFC 2617, and include it with the request to bypass the
> 401 dialog.  One source of code you could use to figure out what's
> necessary is in the HEAD branch of the Tomcat 4 repository -- in class
> org.apache.catalina.ant.AbstractCatalinaTask.  (As the name implies, this
> is the base class for a set of custom Ant tasks that interact with the
> Manager webpp, documented on the "manager-howto.html" page in the nightly
> builds of Tomcat 4.
> 
>  > THanks,
>  > Christian
>  >
> 
> Craig McClanahan
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 
> 
> 
> --
> I am Microsoft of Borg. You will be assimilated.
> Resistance is futi . . .
> 
> GENERAL PROTECTION FAULT IN MSBORG32.DLL
> --
> Donald Lee (dlee20@hotmail.com)
> Associate Enterprise Engineer
> MCSE, Compaq ASE, ACT, A+, TCT, HP
> 
> _________________________________________________________________
> Join the worldÂ’s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message