axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Praveen Palwai" <palwaiprav...@gmail.com>
Subject Re: Axis2 NTLM Authentication over Https on WebSphere
Date Thu, 27 Sep 2007 19:59:06 GMT
Hi,
I found this info on the httpclient sslguide page regarding SSL connections.
One of the suggestions is to disable stale connection check. Can somebody
tell me how I can to do this in axis2 because I am using Authenticator and I
couldn't find any method to disable this stale connection check.

Thanks,
Praveen Palwai.

   1.

   *Persistent SSL connections do not work on Sun's JVMs below 1.4*

   Due to what appears to be a bug in Sun's older (below 1.4)
   implementation of Java Virtual Machines or JSSE there's no reliable way of
   telling if an SSL connection is 'stale' or not. For example, the HTTP
   1.1 specification permits HTTP servers in 'keep-alive' mode to drop
   the connection to the client after a given period inactivity without having
   to notify the client, effectively rendering such connection unusable or
   'stale'. For the HTTP agent written in Java there's no reliable way to test
   if a connection is 'stale' other than attempting to perform a read on it.
   However, a read operation on an idle SSL connection on Sun JVM older than
   1.4 returns 'end of stream' instead of an expected read timeout. That
   effectively makes the connection appear 'stale' to HttpClient, which leaves
   it with no other way but to drop the connection and to open a new one, thus
   defeating HTTP 1.1 keep-alive mechanism and resulting in significant
   performance degradation (SSL authentication is a highly time consuming
   operation). The problem appears to have been fixed in Sun's Java
1.4SSL implementation. Sockets which are not using HTTPS are
unaffected on any
   JVM.

   *Workaround:* Disable stale connection check if upgrade to Java 1.4 or
   above is not an option. Please note that HttpClient will no longer be able
   to detect invalid connections and some requests may fail due to transport
   errors. For details on how transport errors can be recovered from please
   refer to the Exception Handling
Guide<http://jakarta.apache.org/httpcomponents/httpclient-3.x/exception-handling.html#Transport%20exceptions>.
   If persistent SSL connections support and transport reliability is an issue
   for your application we strongly advise you to upgrade to Java 1.4.
   2.

   *Authetication schemes that rely on persistent connection state do not
   work on Sun's JVMs below 1.4 if SSL is used*

   This problem is directly related to the problem described above.
   Certain authentication schemes or certain implementations of standard
   authentication schemes are connection based, that is, the user
   authentication is performed once when the connection is being established,
   rather than every time a request is being processed. Microsoft NTLM scheme
   and Digest scheme as implemented in Microsoft Proxy and IIS servers are
   known to fall into this category. If connections cannot be kept alive the
   user authorization is lost along with the persistent connection state

   *Workaround:* Disable stale connection check or upgrade to Java 1.4 or
   above.



On 9/27/07, Bhatra, Junaid <jbhatra@rsasecurity.com> wrote:
>
>  It looks like the connection is being closed and a new one is used during
> the NTLM authentication. NTLM requires that the same connection be used
> during negotiation. Not sure why this is happening since HTTP 1.1 uses
> persistent connections by default. Maybe someone else can comment on it?
>
>
>
> As for the BASIC credentials being sent, it is happening since you have
> turned on pre-emptive authentication. Set auth.setPreemptiveAuthentication(false)
> or remove the line completely and it should not sent the  BASIC credentials.
>
>
>
> - Junaid
>
>
>  ------------------------------
>
> *From:* Praveen Palwai [mailto:palwaipraveen@gmail.com]
> *Sent:* Thursday, September 27, 2007 12:41 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Axis2 NTLM Authentication over Https on WebSphere
>
>
>
> Hi,
>
> I am having problems in running an axis2 1.3 client on websphere 5.1 (ibm
> jdk 1.4.1) that tries to access exchange server 2007 web services API
> running on IIS using NTLM authentication scheme. I am getting 401 Error:
> Unauthorized. Even though I am running it in websphere, I am using sun jsse
> 1.0.3. I have included the jsse.jar, jcert.jar and jnet.jar and changed
> the classloader to PARENT-LAST. Also, can some one tell me why is basic
> authentication is being used first even though I set the authentication
> preference to NTLM. The same code works fine when I run it on Glassfish V1
> using sun jdk1.5.0_12. Below is the stack trace and the code:
>
>
>
> [9/27/07 10:47:53:511 CDT] 1a1be3a2 WebGroup      I SRVE0180I:
> [ExchangeServerWeb] [/ExchangeServerWeb] [Servlet.LOG]:
> ExchangeServerTestServlet: init
> DEBUG [Servlet.Engine.Transports : 0] (Loader.java:132) - Trying to find
> [org/apache/axis2/deployment/axis2_default.xml] using
> com.ibm.ws.classloader.CompoundClassLoader@c063a2
>    Local ClassPath:
> C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\classes;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\axiom-
> api-1.2.5.jar
> ;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\axiom-
> impl-1.2.5.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\axis2-
> kernel-1.3.jar
> ;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\commons-
> codec-1.3.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\commons-
> httpclient-3.0.1.jar
> ;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\commons-
> logging-1.1.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\jcert.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\jnet.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\jsse.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\log4j-
> 1.2.14.jar
> ;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\stax-
> api-1.0.1.jar
> ;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\wsdl4j-
> 1.6.2.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\wstx-
> asl-3.2.1.jar
> ;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\XmlSchema-
> 1.3.2.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent;
>    Delegation Mode: PARENT_LAST class loader.
> DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:191) -
> XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> RequestURIBasedDispatcher added to Phase Transport
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> SOAPActionBasedDispatcher added to Phase Transport
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> AddressingBasedDispatcher added to Phase Addressing
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> RequestURIBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> SOAPActionBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> RequestURIOperationDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> SOAPMessageBodyBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> HTTPLocationBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> AddressingBasedDispatcher added to Phase Addressing
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> RequestURIBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> SOAPActionBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> RequestURIOperationDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> SOAPMessageBodyBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
> HTTPLocationBasedDispatcher added to Phase Dispatch
> DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
> mapActionToOperation: Mapping Action to Operation: action: anonRobustOp;
> operation: org.apache.axis2.description.RobustOutOnlyAxisOperation@73d423ba
>
> DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
> mapActionToOperation: Mapping Action to Operation: action: urn:anonRobustOp;
> operation: org.apache.axis2.description.RobustOutOnlyAxisOperation@73d423ba
>
> DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
> mapActionToOperation: Mapping Action to Operation: action: anonOutonlyOp;
> operation: org.apache.axis2.description.OutOnlyAxisOperation@1d7ca3ba
> DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
> mapActionToOperation: Mapping Action to Operation: action:
> urn:anonOutonlyOp; operation: org.apache.axis2.description.OutOnlyAxisOperation@1d7ca3ba
>
> DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
> mapActionToOperation: Mapping Action to Operation: action: anonOutInOp;
> operation: org.apache.axis2.description.OutInAxisOperation@3e7623ba
> DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
> mapActionToOperation: Mapping Action to Operation: action: urn:anonOutInOp;
> operation: org.apache.axis2.description.OutInAxisOperation@3e7623ba
> DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:265) -
> XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
> DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:265) -
> XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
> <m:GetFolder xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages
> " xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShape><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:DistinguishedFolderId
>
> <http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:FolderShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
> Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder>
>
> DEBUG [Servlet.Engine.Transports : 0] (OutInAxisOperation.java:162) -
> Entry: OutInAxisOperationClient::execute, true
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking pre-condition for
> Phase "OperationOutPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking phase
> "OperationOutPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking post-conditions for
> phase "OperationOutPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking pre-condition for
> Phase "RMPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking phase "RMPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking post-conditions for
> phase "RMPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking pre-condition for
> Phase "PolicyDetermination"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking phase
> "PolicyDetermination"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking post-conditions for
> phase "PolicyDetermination"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking pre-condition for
> Phase "MessageOut"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking phase "MessageOut"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking post-conditions for
> phase "MessageOut"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking pre-condition for
> Phase "Security"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking phase "Security"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Checking post-conditions for
> phase "Security"
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.useragent = Jakarta Commons-HttpClient/3.0.1
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.protocol.version = HTTP/1.1
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.connection-manager.class = class
> org.apache.commons.httpclient.SimpleHttpConnectionManager
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.protocol.cookie-policy = rfc2109
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.protocol.element-charset = US-ASCII
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.protocol.content-charset = ISO-8859-1
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@c4363a7
>
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE,
> dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss
> z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy
> HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE
> dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z,
> EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:71).null(Unknown
> Source) - Java version: 1.4.1
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:72).null(Unknown
> Source) - Java vendor: IBM Corporation
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:73).null(Unknown
> Source) - Java class path: E:\Program Files\IBMWebSphere Studio\Application
> Developer\v5.1.1\runtimes\base_v51/properties;E:\Program Files\IBMWebSphere
> Studio\Application Developer\v5.1.1\runtimes\base_v51/properties;E:\Program
> Files\IBMWebSphere Studio\Application
> Developer\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;E:\Program
> Files\IBMWebSphere Studio\Application
> Developer\v5.1.1\runtimes\base_v51/lib/j2ee.jar;E:\Program
> Files\IBMWebSphere Studio\Application
> Developer\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;E:\Program
> Files\IBMWebSphere Studio\Application
> Developer\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;K:\Common\CENTRY2\jars\joltjse.jar;K:\Common\CENTRY2\jars\jolt.jar;E:\User
> Profiles\n66506\Desktop\jsse1.0.3_04\lib\jcert.jar;E:\User
> Profiles\n66506\Desktop\jsse1.0.3_04\lib\jnet.jar;E:\User
> Profiles\n66506\Desktop\jsse1.0.3_04\lib\jsse.jar;E:/Program
> Files/IBMWebSphere Studio/Application
> Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;E:/Program
> Files/IBMWebSphere Studio/Application
> Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jar
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:74).null(Unknown
> Source) - Operating system name: Windows 2000
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:75).null(Unknown
> Source) - Operating system architecture: x86
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:76).null(Unknown
> Source) - Operating system version: 5.0
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
> Source) - IBMJCE 1.2: IBMJCE Provider implements the following: HMAC-SHA1,
> MD2, MD5, MARS, SHA, MD2withRSA, MD5withRSA, SHA1withRSA, RSA, SHA1withDSA,
> RC2, RC4, Seal)implements the following:
> Signature algorithms               : SHA1withDSA, SHA1withRSA, MD5withRSA,
> MD2withRSA
> Cipher algorithms                  : Blowfish, AES, DES, TripleDES,
> PBEWithMD2AndDES,
>                                        PBEWithMD2AndTripleDES,
> PBEWithMD2AndRC2,
>                                        PBEWithMD5AndDES,
> PBEWithMD5AndTripleDES,
>                                        PBEWithMD5AndRC2, PBEWithSHA1AndDES
>
>                                        PBEWithSHA1AndTripleDES,
> PBEWithSHA1AndRC2
>                                        PBEWithSHAAnd40BitRC2,
> PBEWithSHAAnd128BitRC2
>                                        PBEWithSHAAnd40BitRC4,
> PBEWithSHAAnd128BitRC4
>                                        PBEWithSHAAnd2KeyTripleDES,
> PBEWithSHAAnd3KeyTripleDES
>                                        Mars, RC2, RC4,
>                                        RSA, Seal
> Message authentication code (MAC)  : HmacSHA1, HmacMD2, HmacMD5
> Key agreement algorithm            : DiffieHellman
> Key (pair) generator               : Blowfish, DiffieHellman, DSA, AES,
> DES, TripleDES, HmacMD5,
>                                        HmacSHA1, Mars, RC2, RC4, RSA, Seal
> Message digest                     : MD2, MD5, SHA-1
> Algorithm parameter generator      : DiffieHellman, DSA
> Algorithm parameter                : Blowfish, DiffieHellman, AES, DES,
> TripleDES, DSA, Mars,
>                                        PBEwithMD5AndDES, RC2
> Key factory                        : DiffieHellman, DSA, RSA
> Secret key factory                 : Blowfish, AES, DES, TripleDES, Mars,
> RC2, RC4, Seal
>                                        PKCS5Key, PBKDF1 and
> PBKDF2(PKCS5Derived Key).
> Certificate                        : X.509
> Secure random                      : IBMSecureRandom
> Key store                          : JCEKS, PKCS12KS (PKCS12), JKS
>
>
>
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
> Source) - IBMJSSE 1.41: IBM JSSE provider
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
> Source) - IBMJGSSProvider 1.01: IBMJGSSProvider supports Kerberos V5
> Mechanism
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
> Source) - IBMCertPath 1.0: IBMCertPath Provider implements the following:
> CertificateFactory                : X.509
> CertPathValidator              : PKIX
> CertStore                      : Collection, LDAP
> CertPathBuilder                : PKIX
>
>
>
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
> Source) - IBMPKCS11 1.2: IBMPKCS11 Provider implements the following:
> MD2withRSA, MD5withRSA, SHA1withRSA, RSA, SHA1withDSA)implements the
> following:
> Signature algorithms               : SHA1withDSA, SHA1withRSA, MD5withRSA,
> MD2withRSA
> Key (pair) generator               : DSA, RSA
> Algorithm parameter generator      : DSA
> Algorithm parameter                : DSA
> Certificate                        : X.509
> Secure random                      : IBMSecureRandom
> Key store                          : PKCS11 (PKCS11KS)
>
>
>
> DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
> Source) - SunJSSE 1.0304: Sun JSSE provider(implements RSA Signatures,
> PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.connection.timeout = 30000
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.socket.timeout = 30000
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.socket.timeout = 30000
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:122) -
> contentType from the OMOutputFormat =text/xml
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:137) -
> contentType returned =text/xml; charset=UTF-8
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.authentication.preemptive = true
> DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
> parameter http.auth.scheme-priority = [NTLM]
> DEBUG [Servlet.Engine.Transports : 0] (
> MultiThreadedHttpConnectionManager.java:390) -
> HttpConnectionManager.getConnection:  config = HostConfiguration[host=
> https://host], timeout = 0
> DEBUG [Servlet.Engine.Transports : 0] (
> MultiThreadedHttpConnectionManager.java:739) - Allocating new connection,
> hostConfig=HostConfiguration[host=https://host]
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:160) -
> Preemptively sending default basic credentials
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:277) -
> Authenticating with BASIC <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodParams.java:355) -
> Credential charset not configured, using HTTP element charset
> DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:691) - Open
> connection to host:443
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "POST
> /EWS/exchange.asmx HTTP/1.1[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:1235) - Adding
> Host request header
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "Content-Type:
> text/xml; charset=UTF-8[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n
>
> <http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder%22%5B%5Cr%5D%5B%5Cn>
> ]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "User-Agent:
> Axis2[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "Authorization:
> Basic bjY2NTA2OnBwNjUwNg==[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "Host:
> host[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >>
> "Transfer-Encoding: chunked[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:49) -
> start writeTo()
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:50) -
> preserve=false
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:51) -
> isOptimized=false
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:52) -
> isDoingSWA=false
> DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:251) -
> XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:75) - end
> writeTo()
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "22c[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:83) - >> "<?xml version='
> 1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:GetFolder
>
> <http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Body%3E%3Cm:GetFolder>
> xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
> xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShape><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:DistinguishedFolderId
>
> <http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:FolderShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
> Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soapenv:Body></soapenv:Envelope>"
>
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:83) - >> "0"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (EntityEnclosingMethod.java:504) -
> Request body sent
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "HTTP/1.1 401
> Unauthorized[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Content-Length:
> 1656[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Content-Type:
> text/html[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Server:
> Microsoft-IIS/6.0[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
> "WWW-Authenticate: Negotiate[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
> "WWW-Authenticate: NTLM[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "X-Powered-By:
> ASP.NET[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Date: Thu, 27
> Sep 2007 15:47:56 GMT[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:840) -
> Authorization required
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:89) -
> Supported authentication schemes in the order of preference: [NTLM]
>  INFO [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:100) -
> NTLM authentication scheme selected
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:154) -
> Using authentication scheme: ntlm
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:162) -
> Authorization challenge processed
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:709) -
> Authentication scope: NTLM <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:193) -
> Retry authentication
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<!DOCTYPE HTML
> PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">[\r][\n
> <http://www.w3.org/TR/html4/strict.dtd%22%3E%5B%5Cr%5D%5B%5Cn>]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
> "<HTML><HEAD><TITLE>You are not authorized to view this
> page</TITLE>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<META
> HTTP-EQUIV="Content-Type" Content="text/html;
> charset=Windows-1252">[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<STYLE
> type="text/css">[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  BODY { font:
> 8pt/12pt verdana }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  H1 { font:
> 13pt/15pt verdana }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  H2 { font:
> 8pt/12pt verdana }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  A:link {
> color: red }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  A:visited {
> color: maroon }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
> "</STYLE>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
> "</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<h1>You are not
> authorized to view this page</h1>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "You do not have
> permission to view this directory or page using the credentials that you
> supplied because your Web browser is sending a WWW-Authenticate header field
> that the Web server is not configured to accept.[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<hr>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<p>Please try
> the following:</p>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Contact the Web site
> administrator if you believe you should be able to view this directory or
> page.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Click the <a
> href="javascript:location.reload()">Refresh</a> button to try again with
> different cred"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "entials.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<h2>HTTP Error 401.2 -
> Unauthorized: Access is denied due to server configuration.<br>Internet
> Information Services (IIS)</h2>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<hr>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<p>Technical Information
> (for support personnel)</p>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft
> <http://go.microsoft.com/fwlink/?linkid=8180%22%3EMicrosoft>Product
> Support Services</a> and perform a title search for the words <b>HTTP</b>
> and <b>401</b>.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Open <b>IIS
> Help</b>, which is accessible in IIS Manager (inetmgr),[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << " and search for topics
> titled <b>About Security</b>, <b>Authentication</b>, and <b>About Custom
> Error Messages</b>.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - <<
> "</TD></TR></TABLE></BODY></HTML>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:921) -
> Resorting to protocol version default close connection policy
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:925) - Should
> NOT close connection, using HTTP/1.1
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:277) -
> Authenticating with NTLM <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodParams.java:355) -
> Credential charset not configured, using HTTP element charset
> DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:431) -
> Connection is stale, closing...
> DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:691) - Open
> connection to host:443
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "POST /EWS/exchange.asmx
> HTTP/1.1[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:1235) - Adding
> Host request header
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Content-Type: text/xml;
> charset=UTF-8[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n
>
> <http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder%22%5B%5Cr%5D%5B%5Cn>
> ]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "User-Agent:
> Axis2[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Transfer-Encoding:
> chunked[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Authorization: NTLM
> TlRMTVNTUAABAAAABlIAAAsACwA0AAAAFAAUACAAAABBTUxBQkozMS5OVEQuTldBLkNPTU5XQV9OVF9URVNU[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Host: host[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:49) -
> start writeTo()
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:50) -
> preserve=false
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:51) -
> isOptimized=false
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:52) -
> isDoingSWA=false
> DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:251) -
> XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:75) - end
> writeTo()
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "22c[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "<?xml version='1.0'
> encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:GetFolder
> <http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Body%3E%3Cm:GetFolder>
> xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
> xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShape><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:DistinguishedFolderId
>
> <http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:FolderShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
> Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soapenv:Body></soapenv:Envelope>"
>
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "0"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (EntityEnclosingMethod.java:504) -
> Request body sent
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "HTTP/1.1 401
> Unauthorized[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Length:
> 1539[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Type:
> text/html[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Server:
> Microsoft-IIS/6.0[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "WWW-Authenticate: NTLM
> TlRMTVNTUAACAAAACwALADgAAAAGAoECjzMP1hMsrO8AAAAAAAAAAJIAkgBDAAAABQLODgAAAA9OV0FfTlRfVEVTVAIAFgBOAFcAQQBfAE4AVABfAFQARQBTAFQAAQAQAEEATQBMAEEAQgBKADMAMQAEABYAbgB0AGQALgBuAHcAYQAuAGMAbwBtAAMAKABhAG0AbABhAGIAagAzADEALgBuAHQAZAAuAG4AdwBhAC4AYwBvAG0ABQAWAG4AdABkAC4AbgB3AGEALgBjAG8AbQAAAAAA[\r][\n]"
>
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "X-Powered-By: ASP.NET
> [\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Date: Thu, 27 Sep 2007
> 15:47:56 GMT[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:840) -
> Authorization required
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:154) -
> Using authentication scheme: ntlm
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:162) -
> Authorization challenge processed
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:709) -
> Authentication scope: NTLM <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:193) -
> Retry authentication
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<!DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">[\r][\n
> <http://www.w3.org/TR/html4/strict.dtd%22%3E%5B%5Cr%5D%5B%5Cn>]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<HTML><HEAD><TITLE>You
> are not authorized to view this page</TITLE>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<META
> HTTP-EQUIV="Content-Type" Content="text/html;
> charset=Windows-1252">[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<STYLE
> type="text/css">[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  BODY { font: 8pt/12pt
> verdana }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  H1 { font: 13pt/15pt
> verdana }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  H2 { font: 8pt/12pt
> verdana }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  A:link { color: red
> }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  A:visited { color:
> maroon }[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</STYLE>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</HEAD><BODY><TABLE
> width=500 border=0 cellspacing=10><TR><TD>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<h1>You are not
> authorized to view this page</h1>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "You do not have
> permission to view this directory or page using the credentials that you
> supplied.[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<hr>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<p>Please try the
> following:</p>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Contact the Web site
> administrator if you believe you should be able to view this directory or
> page.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Click the <a
> href="javascript:location.reload()">Refresh</a> button to try again with
> different credentials.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<h2>HTTP Error 401.1 -
> Unauthorized: Access is denied due to invalid credentials.<br>Internet "
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Information Services
> (IIS)</h2>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<hr>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<p>Technical Information
> (for support personnel)</p>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft
> <http://go.microsoft.com/fwlink/?linkid=8180%22%3EMicrosoft>Product
> Support Services</a> and perform a title search for the words <b>HTTP</b>
> and <b>401</b>.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Open <b>IIS
> Help</b>, which is accessible in IIS Manager (inetmgr),[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << " and search for topics
> titled <b>Authentication</b>, <b>Access Control</b>, and <b>About Custom
> Error Messages</b>.</li>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - <<
> "</TD></TR></TABLE></BODY></HTML>[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:921) -
> Resorting to protocol version default close connection policy
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:925) - Should
> NOT close connection, using HTTP/1.1
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:277) -
> Authenticating with NTLM <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodParams.java:355) -
> Credential charset not configured, using HTTP element charset
> DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:431) -
> Connection is stale, closing...
> DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:691) - Open
> connection to host:443
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "POST /EWS/exchange.asmx
> HTTP/1.1[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:1235) - Adding
> Host request header
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Content-Type: text/xml;
> charset=UTF-8[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n
>
> <http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder%22%5B%5Cr%5D%5B%5Cn>
> ]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "User-Agent:
> Axis2[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Transfer-Encoding:
> chunked[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Authorization: NTLM
> TlRMTVNTUAADAAAAGAAYAGUAAAAAAAAAfQAAAAsACwBAAAAABgAGAEsAAAAUABQAUQAAAAAAAAB9AAAABlIAAE5XQV9OVF9URVNUTjY2NTA2QU1MQUJKMzEuTlRELk5XQS5DT00bcJhHJS9aiP0QF0sIUbTWj2hpOR7Sfq0=[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Host: host[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:49) -
> start writeTo()
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:50) -
> preserve=false
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:51) -
> isOptimized=false
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:52) -
> isDoingSWA=false
> DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:251) -
> XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
> DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:75) - end
> writeTo()
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "22c[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "<?xml version='1.0'
> encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:GetFolder
> <http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Body%3E%3Cm:GetFolder>
> xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
> xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShape><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:DistinguishedFolderId
>
> <http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:FolderShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
> Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soapenv:Body></soapenv:Envelope>"
>
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "0"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (EntityEnclosingMethod.java:504) -
> Request body sent
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "HTTP/1.1 401
> Unauthorized[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Length:
> 1539[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Type:
> text/html[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Server:
> Microsoft-IIS/6.0[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "WWW-Authenticate:
> Negotiate[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "WWW-Authenticate:
> NTLM[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "X-Powered-By: ASP.NET
> [\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Date: Thu, 27 Sep 2007
> 15:47:56 GMT[\r][\n]"
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:840) -
> Authorization required
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:154) -
> Using authentication scheme: ntlm
> DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:162) -
> Authorization challenge processed
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:709) -
> Authentication scope: NTLM <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:858) -
> Credentials required
> DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:876) -
> Credentials provider not available
>  INFO [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:717) -
> Failure authenticating with NTLM <any realm>@host:443
> DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:236) -
> getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
> DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:412) -
> loadBundle: Ignoring MissingResourceException: Can't find bundle for base
> name org.apache.axis2.resource, locale en_US
> DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:289) -
> Created org.apache.axis2.i18n.resource, linked to parent null
> DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:236) -
> getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
> DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:70) -
> org.apache.axis2.i18n.resource::handleGetObject(transportError)
>  INFO [Servlet.Engine.Transports : 0] (HTTPSender.java:194) - Unable to
> sendViaPost to url[https://host/EWS/exchange.asmx]
> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>  at org.apache.axis2.transport.http.HTTPSender.handleResponse(
> HTTPSender.java:298)
>  at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java
> :192)
>  at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>  at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
> (CommonsHTTPTransportSender.java:327)
>  at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:206)
>  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>  at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
>  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
>  at org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)
>  at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java
> :528)
>  at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java
> :508)
>  at com.nwa.exchsrvr.ExchangeServerTestServlet.process(
> ExchangeServerTestServlet.java:67)
>  at com.nwa.exchsrvr.ExchangeServerTestServlet.doGet(
> ExchangeServerTestServlet.java:37)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(
> StrictServletInstance.java:110)
>  at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(
> StrictLifecycleServlet.java:174)
>  at com.ibm.ws.webcontainer.servlet.IdleServletState.service(
> StrictLifecycleServlet.java:313)
>  at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(
> StrictLifecycleServlet.java:116)
>  at com.ibm.ws.webcontainer.servlet.ServletInstance.service(
> ServletInstance.java:283)
>  at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(
> ValidServletReferenceState.java:42)
>  at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(
> ServletInstanceReference.java:40)
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
> (WebAppRequestDispatcher.java:974)
>  at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
> WebAppRequestDispatcher.java:555)
>  at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(
> WebAppRequestDispatcher.java:200)
>  at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java
> :119)
>  at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(
> WebAppInvoker.java:276)
>  at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
> (CachedInvocation.java:71)
>  at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(
> ServletRequestProcessor.java:182)
>  at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(
> OSEListener.java:334)
>  at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(
> HttpConnection.java:56)
>  at com.ibm.ws.http.HttpConnection.readAndHandleRequest(
> HttpConnection.java:618)
>  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
>  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
> DEBUG [Servlet.Engine.Transports : 0] (CommonsHTTPTransportSender.java:335)
> - org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
> DEBUG [Servlet.Engine.Transports : 0] (CommonsHTTPTransportSender.java:222)
> - org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking flowComplete() in
> Phase "Security"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking flowComplete() in
> Phase "MessageOut"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking flowComplete() in
> Phase "PolicyDetermination"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking flowComplete() in
> Phase "RMPhase"
> DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) - [MessageContext:
> logID=urn:uuid:9FC5634341EB316F4B1190908074565] Invoking flowComplete() in
> Phase "OperationOutPhase"
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R
> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java
> :298)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java
> :192)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
> (CommonsHTTPTransportSender.java:327)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:206)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> com.nwa.exchsrvr.ExchangeServerTestServlet.process(
> ExchangeServerTestServlet.java:67)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> com.nwa.exchsrvr.ExchangeServerTestServlet.doGet(
> ExchangeServerTestServlet.java:37)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(
> StrictServletInstance.java:110)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(
> StrictLifecycleServlet.java:174)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(
> StrictLifecycleServlet.java:313)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(
> StrictLifecycleServlet.java:116)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(
> ServletInstance.java:283)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(
> ValidServletReferenceState.java:42)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(
> ServletInstanceReference.java:40)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
> (WebAppRequestDispatcher.java:974)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
> WebAppRequestDispatcher.java:555)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(
> WebAppRequestDispatcher.java:200)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java
> :119)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(
> WebAppInvoker.java:276)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
> (CachedInvocation.java:71)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(
> ServletRequestProcessor.java:182)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(
> OSEListener.java:334)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(
> HttpConnection.java:56)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java
> :618)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
> [9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
>
>
>
>
>
>
>
> Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
> Options options = new Options();
> options.setAction("http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder
> ");
> options.setTo(new EndpointReference("https://host/EWS/exchange.asmx "));
> HttpTransportProperties.Authenticator auth = new
> HttpTransportProperties.Authenticator();
> auth.setHost("host");
> auth.setUsername("username");
> auth.setPassword(" password");
> auth.setDomain("domain");
> auth.setPreemptiveAuthentication(true);
> ArrayList authSchemes = new ArrayList();
> authSchemes.add(HttpTransportProperties.Authenticator.NTLM);
> auth.setAuthSchemes(authSchemes);
> options.setProperty(HTTPConstants.AUTHENTICATE, auth);
> ServiceClient sender = new ServiceClient();
> sender.setOptions(options);
> OMElement result = sender.sendReceive(getFolderPayload());
>
>
>
> Any help is really appreciated.
>
>
>
> Thanks,
>
> Praveen
>

Mime
View raw message