Hi,

can somebody direct me where to look for problem?

NTLM Proxy is in question, DEBUG log follows:

2006-08-04 16:31:00.293 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Connection: Keep-Alive[\r][\n]"
2006-08-04 16:31:00.293 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Proxy-Connection: Keep-Alive[\r][\n]"
2006-08-04 16:31:00.293 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Pragma: no-cache[\r][\n]"
2006-08-04 16:31:00.293 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Cache-Control: no-cache[\r][\n]"
2006-08-04 16:31:00.293 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Content-Type: text/html[\r][\n]"
2006-08-04 16:31:00.293 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Content-Length: 0[\r][\n]"
2006-08-04 16:31:00.309 DEBUG [http-80-Processor25:] -
httpclient.wire.header: >> "HEAD
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml?HTTP/1.1[\r][\n]";
2006-08-04 16:31:00.309 DEBUG [http-80-Processor25:] -
httpclient.wire.header: >> "User-Agent: Jakarta
Commons-HttpClient/3.0.1[\r][\n]"
2006-08-04 16:31:00.309 DEBUG [http-80-Processor25:] -
httpclient.wire.header: >> "Proxy-Connection: Keep-Alive[\r][\n]"
2006-08-04 16:31:00.309 DEBUG [http-80-Processor25:] -
httpclient.wire.header: >> "Proxy-Authorization: NTLM
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[\r][\n]"
2006-08-04 16:31:00.309 DEBUG [http-80-Processor25:] -
httpclient.wire.header: >> "Host: repo1.maven.org[\r][\n]"
2006-08-04 16:31:00.309 DEBUG [http-80-Processor25:] -
httpclient.wire.header: >> "[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "HTTP/1.1 407 Proxy Authentication Required ( The
ISA Server requires authorization to fulfill the request. Access to the Web
Proxy service is denied. )[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Via: 1.1 PROXYNAME[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Proxy-Authenticate: Negotiate[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Proxy-Authenticate: Kerberos[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Proxy-Authenticate: NTLM[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Proxy-Authenticate: Basic
realm="proxyname"[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Connection: close[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Proxy-Connection: close[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Pragma: no-cache[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Cache-Control: no-cache[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Content-Type: text/html[\r][\n]"
2006-08-04 16:31:00.387 DEBUG [http-80-Processor25:] -
httpclient.wire.header: << "Content-Length: 4107[\r][\n]"
2006-08-04 16:31:00.387 INFO [http-80-Processor25:] -
org.apache.commons.httpclient.HttpMethodDirector: Failure authenticating
with NTLM <any realm>@proxyname:8080


The source doing this:

           httpRetryHandler = new
DefaultHttpMethodRetryHandler(retrievalRetryCount, false);
           httpClient = new HttpClient(new
MultiThreadedHttpConnectionManager());
           httpClient.getParams
().setConnectionManagerTimeout(getConnectionTimeout());
           httpConfiguration = httpClient.getHostConfiguration();

           if (getProxyHost() != null) {
               logger.info("... proxy setup with host " + getProxyHost() +
", port " + getProxyPort());
               httpConfiguration.setProxy(getProxyHost(), getProxyPort());

               httpConfiguration.setHost(getProxyNtlmHost());

                httpClient.getState().setProxyCredentials(
                               AuthScope.ANY,
                               new NTCredentials(getProxyUsername(),
getProxyPassword(), getProxyNtlmHost(),
                                       getProxyNtlmDomain()));

           }
...
...
        resultCode = httpClient.executeMethod(httpConfiguration, method);



Thanx in advance,
~t~

Reply via email to