SSLHandshakeException for axis + spring dm
Apache Axis soap interafce works fine in my app until I start using spring dm. The exception that I got is listed below.
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderE xception: unable to
find valid certification path to requested target
This is related to verifying the server's certificate. What we have before is to disable the certificate checking by setting the system properties "System.setProperty(SSLFACTORY_PROP, NOTRUST_SSLFACTORY);" where
SSLFACTORY_PROP = "axis.socketSecureFactory";
NOTRUST_SSLFACTORY = "org.apache.axis.components.net.SunFakeTrustSocket Factory";
Any idea what am I missing here? Thanks.