web - Unnable to consume Webservice behind apache over HTTPS with Java -


good morning. i'm exposing webservice on jboss behind apache using https. can access wsdl without problem via browser. when test webservice using soapui works fine. when generate java client (using axis2) , try consume webservice, following exception:

exception in thread "main" [info] unable sendviapost url[https://ws.vipid.net/services/atualizacaows.atualizacaowshttpsoap11endpoint/]org.apache.axis2.axisfault: connection has been shutdown: javax.net.ssl.sslhandshakeexception: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target 

it known apache redirects http requests https. manually change client url http, , test it. in case exception following:

[info] unable sendviapost url[http://ws.vipid.net/services/atualizacaows.atualizacaowshttpsoap11endpoint/] org.apache.axis2.axisfault: transport error: 302 error: found 

why work on soapui, not on client?

i have been pointed need import certificate java cacerts keytool, downloaded public certificate , ran following command:

"d:\program files\java\jre7\bin\keytool.exe" -keystore "d:\program files\java\jre7\lib\security\cacerts" -import -file "c:\users\jhonatas\desktop\certificado\server.cer" -alias ws_vipid 

even after keep getting same exceptions. missing something? else solve this? thank help!


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -