You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Garey Mills <gm...@library.berkeley.edu> on 2006/06/23 22:52:15 UTC
Has the manager interface changed from 5.5.9 to 5.5.17?
Hi -
I was using Java something like this:
=================================================================
URL tomcatURL = new
URL("http://<server>:<port>/manager/stop?path=/<servlet path" ;);
URLConnection cnxn = tomcatURL.openConnection();
cnxn.setRequestProperty("User-Agent", "My Job");
String input = "<user>:<password>";
input = new String(Base64.encode(input.getBytes()));
cnxn.setRequestProperty("Authorization", "Basic " + input);
cnxn.connect();
BufferedReader br = new BufferedReader(new
InputStreamReader(cnxn.getInputStream()));
String what = null;
while((what = br.readLine()) != null) { log(what); }
br.close();
=================================================================
It worked in Tomcat.5.5.9. We moved everything to 5.5.17,
including tomcat-user definitions, and now I get the IO Exception
"connection refused".
Anyone know what might be going on?
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org