2012-01-23 14 views
0

営業担当者と統合しようとしています。私はweblogicでサンプルを実行していますが、WASでは失敗しています(WAS 8でのみ試してみました)。これは私が得るエラーです。それは、私は信頼されていない証明書を持っていると言います。証明書チャックを無効にすることはできますか?私はなぜこの証明書が使われているのか分からない。スタックは非常に長く(溢れています:))それについてはうんざりです。IBM Websphere 8でaxis2(Sales Force)を使用してWebサービスにアクセスする際に例外が発生する

[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R org.apache.axis2.AxisFault: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: 
    java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78) 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84) 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499) 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) 
[1/20/12 17:31:17:505 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:570) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:399) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:226) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:514) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) 
[1/20/12 17:31:17:506 IST] 0000002a SystemErr  R  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.sforce.soap.partner.SforceServiceStub.login(SforceServiceStub.java:3447) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.adapters.SalesForce.UpdateExternalSystem.login(UpdateExternalSystem.java:62) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.adapters.SalesForce.UpdateExternalSystem.upsertSFAObject(UpdateExternalSystem.java:93) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.publisher.transmitters.SFATransmitter.send(SFATransmitter.java:21) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.publisher.IntegrationMgr.transmit(IntegrationMgr.java:79) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.publisher.listeners.PostRuleEngineListenerImpl.transformAndTransmit(PostRuleEngineListenerImpl.java:78) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.publisher.IntegrationMgr.findListenerAndPost(IntegrationMgr.java:116) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at com.ibm.leads.integration.publisher.IntegrationMgr.postEvents(IntegrationMgr.java:111) 
[1/20/12 17:31:17:507 IST] 0000002a SystemErr  R  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at java.lang.reflect.Method.invoke(Method.java:611) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at com.marketsoft.ruleengine.InMemoryRuleAgent.run(InMemoryRuleAgent.java:120) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at java.lang.Thread.run(Thread.java:769) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R Caused by: javax.xml.stream.XMLStreamException: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: 
    java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:67) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at com.ibm.xml.xlxp2.api.stax.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:621) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at com.ibm.xml.xlxp2.api.stax.XMLOutputFactoryImpl$XMLStreamWriterProxy.close(XMLOutputFactoryImpl.java:150) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46) 
[1/20/12 17:31:17:508 IST] 0000002a SystemErr  R  at org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  ... 30 more 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: 
    java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.o.a(o.java:22) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:423) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.kb.a(kb.java:192) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.kb.a(kb.java:176) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.lb.a(lb.java:53) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.lb.a(lb.java:464) 
[1/20/12 17:31:17:509 IST] 0000002a SystemErr  R  at com.ibm.jsse2.kb.s(kb.java:545) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at com.ibm.jsse2.kb.a(kb.java:530) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:79) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at com.ibm.jsse2.SSLSocketImpl.h(SSLSocketImpl.java:437) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:772) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at com.ibm.jsse2.k.write(k.java:3) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191) 
[1/20/12 17:31:17:510 IST] 0000002a SystemErr  R  at java.io.FilterOutputStream.flush(FilterOutputStream.java:134) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.xml.xlxp2.api.stax.serializer.StAXWriter.flush(StAXWriter.java:65) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.xml.xlxp2.api.stax.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:613) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  ... 35 more 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R Caused by: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: 
    java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.jsse2.util.f.b(f.java:113) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.jsse2.util.f.b(f.java:61) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.jsse2.util.e.a(e.java:22) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.jsse2.pc.a(pc.java:100) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.jsse2.pc.checkServerTrusted(pc.java:15) 
[1/20/12 17:31:17:511 IST] 0000002a SystemErr  R  at com.ibm.ws.ssl.core.WSX509TrustManager.checkServerTrusted(WSX509TrustManager.java:362) 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  at com.ibm.jsse2.lb.a(lb.java:5) 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  ... 48 more 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R Caused by: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: 
    java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:411) 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:258) 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  at com.ibm.jsse2.util.f.b(f.java:98) 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  ... 54 more 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R Caused by: java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:111) 
[1/20/12 17:31:17:512 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathValidatorImpl.engineValidate(PKIXCertPathValidatorImpl.java:176) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathBuilderImpl.myValidator(PKIXCertPathBuilderImpl.java:737) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:649) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:595) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:595) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:357) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  ... 56 more 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R Caused by: java.security.cert.CertPathValidatorException: Certificate chaining error 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.CertPathUtil.findIssuer(CertPathUtil.java:298) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:108) 
[1/20/12 17:31:17:513 IST] 0000002a SystemErr  R  ... 62 more 

答えて

2

上記の問題を解決するために、あなたの信頼ストアにベリサインのルート証明書を追加してくださいあなたが使用する必要があります、(それをグーグル、あなたは数々のヒットを受け取ることになります)あなたは完全にそれを回避したい場合は

非SSL(私はそれがオプションになるかどうかわかりません)。

+0

しかし、Weblogicでは証明書を追加せずに動作します。それで、WASの特別なことは何ですか? – MozenRath

+0

、SSL以外の方法は? – MozenRath

+0

WebSphereはデフォルトでSSL証明書を信頼しません。 Weblogicは、既知のCA証明書を自動的に信頼することがあります。非SSLにするには、あなたが打つサービスはhttpsの代わりにhttp URLを提供する必要があります。しかし、それはオプションではない可能性が高いです。 SSLを提供するほとんどのサービスは、スヌーピングからのメッセージを保護するためにSSLに依存しています。 – dbreaux

関連する問題