Hi,

I'm trying to connect to a webservice via SSL using resin 3.0.21 (and  
have tried 3.1 as well). I'm getting the following error message:

javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext  
connection?
         at org.apache.axis.client.Service.initService(Service.java:250)
         at org.apache.axis.client.Service.<init>(Service.java:165)
         at org.apache.axis.client.ServiceFactory.createService 
(ServiceFactory.java:198)
         at  
org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createServ 
ice(LocalJaxRpcServiceFactory.java:273)

However, using the same code/configuration on the same machine I can  
connect fine using Tomcat 5.5 so its not a connection or config issue  
from the webapp. Do I need to do anything special to connect to the  
WSDL via SSL on Resin? The SSL was issued by Thawte and is valid.

Here is the output of System.setProperty("javax.net.debug", "ssl");  
using Resin:

%% No cached client session
*** ClientHello, TLSv1
RandomCookie:  GMT: 1175013769 bytes = { 70, 192, 21, 11, 4, 23, 155,  
165, 175, 51, 125, 189, 178, 58, 197, 46, 32, 15, 221, 156, 245, 246,  
104, 132, 21, 151, 150, 20 }
Session ID:  {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,  
TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,  
TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,  
TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA,  
SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,  
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA,  
SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA,  
SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,  
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,  
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods:  { 0 }
***
Thread-3, WRITE: TLSv1 Handshake, length = 79
Thread-3, WRITE: SSLv2 client hello message, length = 107
Thread-3, handling exception: javax.net.ssl.SSLException:  
Unrecognized SSL message, plaintext connection?
Thread-3, SEND TLSv1 ALERT:  fatal, description = unexpected_message
Thread-3, WRITE: TLSv1 Alert, length = 2
Thread-3, called closeSocket()
%% No cached client session
*** ClientHello, TLSv1
RandomCookie:  GMT: 1175013769 bytes = { 13, 106, 253, 99, 242, 167,  
126, 177, 6, 124, 38, 72, 222, 11, 130, 57, 182, 98, 126, 49, 190,  
68, 134, 174, 139, 110, 49, 100 }
Session ID:  {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,  
TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,  
TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,  
TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA,  
SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,  
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA,  
SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA,  
SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,  
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,  
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods:  { 0 }
***
Thread-3, WRITE: TLSv1 Handshake, length = 79
Thread-3, WRITE: SSLv2 client hello message, length = 107
Thread-3, handling exception: javax.net.ssl.SSLException:  
Unrecognized SSL message, plaintext connection?
Thread-3, SEND TLSv1 ALERT:  fatal, description = unexpected_message
Thread-3, WRITE: TLSv1 Alert, length = 2


And the same output using Tomcat:

instantiated an instance of class  
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
%% No cached client session
*** ClientHello, TLSv1
RandomCookie:  GMT: 1175013601 bytes = { 149, 211, 136, 11, 148, 52,  
45, 187, 2, 241, 11, 227, 83, 157, 7, 200, 175, 89, 95, 119, 89, 0,  
188, 46, 72, 19, 50, 95 }
Session ID:  {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,  
TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,  
TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,  
TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA,  
SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,  
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA,  
SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA,  
SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,  
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,  
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods:  { 0 }
***
Thread-1, WRITE: TLSv1 Handshake, length = 79
Thread-1, WRITE: SSLv2 client hello message, length = 107
Thread-1, READ: TLSv1 Handshake, length = 968
*** ServerHello, TLSv1
RandomCookie:  GMT: 1175014234 bytes = { 217, 105, 125, 242, 76, 254,  
106, 180, 3, 88, 74, 235, 209, 78, 76, 37, 181, 254, 169, 206, 62,  
134, 76, 65, 205, 104, 166, 105 }
Session ID:  {174, 34, 0, 0, 113, 190, 72, 255, 86, 202, 30, 128, 25,  
107, 156, 197, 154, 249, 179, 190, 51, 135, 37, 64, 189, 34, 134, 62,  
185, 124, 238, 159}
Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
Compression Method: 0
***
%% Created:  [Session-1, SSL_RSA_WITH_RC4_128_MD5]
** SSL_RSA_WITH_RC4_128_MD5
*** Certificate chain


Thanks for any advice anyone can give.
Steve


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to