The source of solution was:

http://osdir.com/ml/axis-user-ws.apache.org/2009-06/msg00307.html

The solution is to set up the following properties for the JVM:

javax.net.ssl.keyStore=<fully qualified path to keystore file>
javax.net.ssl.keyStoreType=<type of keystore, i.e, JKS>
javax.net.ssl.keyStorePassword=<keystore password>
javax.net.ssl.trustStore=<fully qualified path to truststore file>
javax.net.ssl.trustStoreType=<type of truststore, i.e, JKS>
javax.net.ssl.trustStorePassword=<truststore password>
javax.net.ssl.contextProvider=<provider, i.e. JSSE>


This is basically the same as depicted by Thilina Mahesh Buddhika: It 
can be achieved either ny using the -Dpropname=propvalue pattern on the 
command line, by setting appropriate JVM startup properties using the 
administration interface of your choice or by explicitly setting that in 
the Java code.

Using system properties for the JVM may be more useful since this way it 
is guaranteed that the values are present from the time the JVM starts. 
This is difficult to achieve with explicit Java in a J2EE environment. 

Regards,
Christian



> -----Original Message-----
> From: Christian Gosch
> Sent: Thursday, December 03, 2009 2:56 PM
> To: axis-user
> Subject: SOAP/ssl: Axis2 1.4.1 (client to remote) vs. IBM WebSphere 
6.0.2
> AdminClient (to local)
> 
> Hi,
> 
> in a J2EE web application running on IBM WebSphere 6.0.2 we use Axis2
> 1.4.1 as WS client to execute SOAP calls to a remote host via SSL 
*and*
> the IBM WebSphere AdminClient (from inside the app) to execute tasks 
on
> the local host.
> 
> When AdminClient is used first *before* first use of Axis2 client 
(ssl),
> everything is fine and both clients work also on subsequent 
operations.
> 
> BUT: When Axis2 client (ssl) is used first *before* first use of
> AdminClient, then AdminClient fails to connect permanently, but Axis2
> runs fine.
> 
> Has anybody experienced similar things?
> 
> This may include using CXF or other WS client libraries *for ssl
> connections* together with IBM WebSphere AdminClient.
> 
> 
> Thanks for any help on this topic. (Yes, there is another instance of
> this topic, but this one is shorter :-)
> 
> Regards,
> --
> Dipl.-Inform. Christian Gosch, PMI PMP
> Systems Architecture, Project Management
> 
> inovex GmbH
> Büro Pforzheim
> Karlsruher Strasse 71
> D-75179 Pforzheim
> Tel: +49 (0)7231 3191-85
> Fax: +49 (0)7231 3191-91
> [email protected]
> www.inovex.de
> 
> Sitz der Gesellschaft: Pforzheim
> AG Mannheim, HRB 502126
> Geschäftsführer: Stephan Müller
> 
> 
> 
> 
> !DSPAM:4b17c3bb326661492514722!
> 
> 


Reply via email to