[Users] petals-bc-soap 3.1 keyStore and trustStore
Jérémie Doucy
petals-components at ebmwebsourcing.com
Wed Mar 16 10:25:11 CET 2011
Hi,
I need to call a web service under ssl and https, so I need to put the system properties javax.net.ssl.*.
I try to do this using -D command line argument (-Djavax.net.ssl...).
But I got this error when I try to call my endpoint :
Code:
FAULT : <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:faultcode xmlns:fcns="http://petals.ow2.org/cdk/defaultFault">fcns:0</soapenv:faultcode><soapenv:faultstring>Default SSL context init failed: exception decrypting data - java.security.InvalidKeyException: Illegal key size</soapenv:faultstring><soapenv:faultactor/><soapenv:detail><![CDATA[org.apache.axis2.AxisFault: Default SSL context init failed: exception decrypting data - java.security.InvalidKeyException: Illegal key size
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
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.ow2.petals.binding.soap.listener.outgoing.WSCaller.process(WSCaller.java:157)
at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.dispatch(JBIListener.java:149)
at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.onJBIMessage(JBIListener.java:115)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:524)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:421)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process(MessageExchangeProcessor.java:308)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run(MessageExchangeProcessor.java:145)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Default SSL context init failed: exception decrypting data - java.security.InvalidKeyException: Illegal key size
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:176)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:81)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:126)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
... 18 more
]]></soapenv:detail></soapenv:Fault>
I try to call the service using a Java hard coded client (using System.setProperty(..)) and it works.
Thanks in advance.
------------------------
Information Processing Competence Center (IPCC)
EADS Defence and Security Systems
http://weblab-project.org
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=270#270
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/038ef642/attachment.htm>
More information about the Users
mailing list