Odi You are right. Unfortunately the problem is still there and is somehow JDK dependent. These two tests pass when running on Sun JDK 1.4 but fail on Sun JDK 1.2.2 & Sun JDK 1.3.1 with the following exception (which led me to believe that the proxy was trying to listen on port 8080):
java.net.BindException: Cannot assign requested address: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.<init>(Socket.java:268) at java.net.Socket.<init>(Socket.java:95) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:105) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:682) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:298) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:172) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:468) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:355) at org.apache.commons.httpclient.TestProxy.testSimpleGet(TestProxy.java:107) Can it be that the proxy uses some 1.4 specific methods? Oleg -----Original Message----- From: Ortwin Glück [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 13:41 To: Commons HttpClient Project Subject: Re: DO NOT REPLY [Bug 24352] - NLTM Proxy and basic host authorization Kalnichevski, Oleg wrote: > Odi, > TestProxy#testSimpleGet and TestProxy#testAuthGet fail on me when Tomcat is running > locally and 'httpclient.test.localPort' system property is not set (which is quite > often the case with me). Can we pick just any other less common number per default? > 8088? 8880? > > Oleg Ah I guess there is a misunderstanding. The proxy test currently runs against the Webapp! Only the proxy is local but the final request goes to the webapp. Just make sure there is something on localhost:8080/. Maybe the Get should use a simple server as well instead of the webapp. Odi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]