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" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat-User <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- I am Microsoft of Borg. You will be assimilated. Resistance is futi . . . GENERAL PROTECTION FAULT IN MSBORG32.DLL -- Donald Lee ([EMAIL PROTECTED]) 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:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>