{"id":2490,"date":"2019-11-29T08:44:01","date_gmt":"2019-11-29T11:44:01","guid":{"rendered":"https:\/\/zmsolution.laraclaud.com.br\/?p=2490"},"modified":"2019-11-29T08:44:01","modified_gmt":"2019-11-29T11:44:01","slug":"sun-security-validator-validatorexception-pkix-path-building-failed","status":"publish","type":"post","link":"http:\/\/zmsolution.com\/sun-security-validator-validatorexception-pkix-path-building-failed\/","title":{"rendered":"sun.security.validator.ValidatorException: PKIX path building failed:"},"content":{"rendered":"

No momento que configuramos uma keystore no SOA 12C alguns problemas podem ocorrer.<\/p>\n

Caused By: oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: \r\nfaultCode=PARSER_ERROR: Failed to read wsdl file \r\nat: \"https:\/\/SOA_SERVER:8002\/soa-infra\/services\/default\/DocumentRouting\/documentrouting_client_ep?WSDL\", caused by: \r\njavax.net.ssl.SSLHandshakeException. : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: \r\nPKIX path building failed: \r\nsun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target<\/pre>\n

Ou<\/p>\n

<bpelFault><faultType>0<\/faultType><remoteFault xmlns=\"http:\/\/schemas.oracle.com\/bpel\/extension\"><part name=\"summary\"><summary>oracle.fabric.common.FabricInvocationException: \r\njavax.xml.ws.WebServiceException: Could not determine wsdl ports. WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at: \r\n\"https:\/\/sandbox.zmsolution.com.br\/ws2\/ZMsolutionBean?wsdl\", caused by: javax.net.ssl.SSLHandshakeException.: javax.net.ssl.SSLHandshakeException: \r\nsun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: \r\nunable to find valid certification path to requested target<\/summary><\/part><part name=\"code\"><code>null<\/code><\/part><part name=\"detail\"><detail>unable to \r\nfind valid certification path to requested target<\/detail><\/part><\/remoteFault><\/bpelFault>\r\n\r\n<\/pre>\n

O erro ocorre devido ao arquivo\u00a0setDomainEnv\u00a0<\/strong> ter uma configura\u00e7\u00e3o para a keystore demo(DemoTrust.jks<\/strong>) para solucionar, altere o arquivo\u00a0setDomainEnv.sh<\/strong> e retire a linha abaixo:<\/p>\n

-Djavax.net.ssl.trustStore=${WL_HOME}\/server\/lib\/DemoTrust.jks<\/strong><\/p>\n

e reiniciei todo o SOA 12c .<\/p>\n

Com isso o problema estar\u00e1 solucionado.<\/p>\n","protected":false},"excerpt":{"rendered":"

No momento que configuramos uma keystore no SOA 12C alguns problemas podem ocorrer. Caused By: oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at: “https:\/\/SOA_SERVER:8002\/soa-infra\/services\/default\/DocumentRouting\/documentrouting_client_ep?WSDL”, caused by: javax.net.ssl.SSLHandshakeException. : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Ou <bpelFault><faultType>0<\/faultType><remoteFault xmlns=”http:\/\/schemas.oracle.com\/bpel\/extension”><part name=”summary”><summary>oracle.fabric.common.FabricInvocationException: javax.xml.ws.WebServiceException: Could not determine wsdl ports. WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at: “https:\/\/sandbox.zmsolution.com.br\/ws2\/ZMsolutionBean?wsdl”, caused by: javax.net.ssl.SSLHandshakeException.: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable[…]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[2,20,18,19,23,22],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts\/2490"}],"collection":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/comments?post=2490"}],"version-history":[{"count":0,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts\/2490\/revisions"}],"wp:attachment":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/media?parent=2490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/categories?post=2490"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/tags?post=2490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}