check out this URL: http://e-docs.bea.com/wls/docs81/webserv/security.html.

steve

-----Original Message-----
From: Chan Yann Nong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 26, 2005 5:36 AM
To: Axis User
Subject: accessing bea weblogic web service over ssl


Hi,

I used Apache Axis to generate client codes to access a web service hosted
on BEA WebLogic. On running the client, I get the following error. Can
anyone point out what I need to fix?

Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: javax.net.ssl.SSLHandshakeException:
sun.security.validator.Valida
torException: PKIX path building failed:
sun.security.provider.certpath.SunCertP
athBuilderException: unable to find valid certification path to requested
target

 faultActor:
 faultNode:
 faultDetail:

{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeExcept
ion: sun.security.validator.ValidatorException: PKIX path building failed:
sun.s
ecurity.provider.certpath.SunCertPathBuilderException: unable to find valid
cert
ification path to requested target
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
        at
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unkno
wn Source)
        at
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown
Source
)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
Source)

        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Un
known Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Sou
rce)
        at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFac
tory.java:186)
        at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
30)
        at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:380)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
        at org.apache.axis.client.Call.invoke(Call.java:2718)
        at org.apache.axis.client.Call.invoke(Call.java:2394)
        at org.apache.axis.client.Call.invoke(Call.java:2317)
        at org.apache.axis.client.Call.invoke(Call.java:1774)
        at
org.openuri.www.XmlQuerySoapStub.requestPayeeInfo(XmlQuerySoapStub.ja
va:108)
        at org.openuri.www.XmlQueryClient.main(XmlQueryClient.java:25)
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find
vali
d certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
        at sun.security.validator.PKIXValidator.engineValidate(Unknown
Source)
        at sun.security.validator.Validator.validate(Unknown Source)
        at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(
Unknown Source)
        at
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(
Unknown Source)
        ... 22 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to
 find valid certification path to requested target
        at
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
 Source)
        at java.security.cert.CertPathBuilder.build(Unknown Source)
        ... 27 more

        {http://xml.apache.org/axis/}hostname:adroit-vw805zti

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderExce
ption: unable to find valid certification path to requested target
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:97)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
        at org.apache.axis.client.Call.invoke(Call.java:2718)
        at org.apache.axis.client.Call.invoke(Call.java:2394)
        at org.apache.axis.client.Call.invoke(Call.java:2317)
        at org.apache.axis.client.Call.invoke(Call.java:1774)
        at
org.openuri.www.XmlQuerySoapStub.requestPayeeInfo(XmlQuerySoapStub.ja
va:108)
        at org.openuri.www.XmlQueryClient.main(XmlQueryClient.java:25)
Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validator.Validator
Exception: PKIX path building failed:
sun.security.provider.certpath.SunCertPath
BuilderException: unable to find valid certification path to requested
target
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
        at
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unkno
wn Source)
        at
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown
Source
)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
Source)

        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Un
known Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Sou
rce)
        at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFac
tory.java:186)
        at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
30)
        at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:380)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
        ... 11 more
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find
vali
d certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
        at sun.security.validator.PKIXValidator.engineValidate(Unknown
Source)
        at sun.security.validator.Validator.validate(Unknown Source)
        at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(
Unknown Source)
        at
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(
Unknown Source)
        ... 22 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to
 find valid certification path to requested target
        at
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
 Source)
        at java.security.cert.CertPathBuilder.build(Unknown Source)
        ... 27 more

Thanks and regards,

Chan Yann Nong

Adroit Innovations Sdn Bhd
Unit 6.03, Level 6, Plaza 138
138 Jalan Ampang
50450 Kuala Lumpur

Tel: 603-2164 2445
Fax: 603-2164 2451
Mobile: 012 311 9880
email: [EMAIL PROTECTED]
website: http://www.adroit-innovations.com



               
  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may not 
print, distribute, or copy this message or any attachments.  If you have 
received this communication in error, please notify the sender by return e-mail 
and delete this message and any attachments from your computer.
..

Reply via email to