You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rajesh, Peter (CLAIMS, WIP)" <Pe...@thehartford.com> on 2007/10/16 21:45:33 UTC

Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException

Hi,

I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL
enabled and when I execute the simple java client to access the
webservice below error is thrown

Please help to resolve this issue.


 [java] org.apache.axis2.AxisFault:
sun.security.validator.ValidatorException: No trusted certificate found
 .....................
 ....................
 Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found


Thanks & Regards,

Peter Rajesh



*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************


Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException

Posted by Dimuthu Leelarathne <di...@wso2.com>.
Hi,

The exception says "No trusted certificate found". If the server
certificate is not a widely accepted certificate, i.e. if it doesn't
chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
you have to set some system properties as follows.

System.setProperty("javax.net.ssl.trustStore","yourpath/keystore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.trustStoreType","JKS");

Regards,
Dimuthu

On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
> Hi,
> 
> I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL
> enabled and when I execute the simple java client to access the
> webservice below error is thrown
> 
> Please help to resolve this issue.
> 
> 
>  [java] org.apache.axis2.AxisFault:
> sun.security.validator.ValidatorException: No trusted certificate found
>  .....................
>  ....................
>  Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found
> 
> 
> Thanks & Regards,
> 
> Peter Rajesh
> 
> 
> 
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
> 


Re: Axis 2 webservice in Weblogic 8.1 - Must Understand check failed for header

Posted by Nandana Mihindukulasooriya <na...@gmail.com>.
Hi Rajesh,
       IFAIK, this in not because of your configuration problem. This
happens if you
get a fault message from the server (eg. HTTP/1.1 500 ) , the message
returns
through the InFaultFlow and rampart, at the moment, doesn't register any
handlers in Fault Flows. Simply, security header doesn't get processed in
Fault flow and axis throws an error because it is a must understand header.
If you can post the soap response, we can see whether it is a  fault
response.
       If this is the problem, you can do a quick fix by registering
rampart handlers
in the InFaultFlow.

Regards,
Nandana

On 10/17/07, Rajesh, Peter (CLAIMS, WIP) <Pe...@thehartford.com>
wrote:
>
>
> Thanks Dimuthu for you reply.
>
> After I add the System.setProperty with the proper keystore and password
> and if I execute the java test client I get below exception.
>
> Any idea what is the reason for this error? Am I missing anything in the
> configuration?
>
>      [java] org.apache.axis2.AxisFault: Must Understand check failed for
> header
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
> t-1.0.xsd : Security
>      [java]     at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
> :486)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
> InAxisOperation.java:343)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
> ation.java:389)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
> xisOperation.java:211)
>      [java]     at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
> )
>      [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
> )
>      [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
> )
>
>
> Thanks & Regards,
>
> Peter Rajesh | 860-547-3881
>
> -----Original Message-----
> From: Dimuthu [mailto:muthulee@apache.org]
> Sent: Tuesday, October 16, 2007 11:55 PM
> To: axis-user@ws.apache.org
> Subject: Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException
>
>
> Hi,
>
> The exception says "No trusted certificate found". If the server
> certificate is not a widely accepted certificate, i.e. if it doesn't
> chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
> you have to set some system properties as follows.
>
> System.setProperty("javax.net.ssl.trustStore","yourpath/keystore.jks");
> System.setProperty("javax.net.ssl.trustStorePassword", "password");
> System.setProperty("javax.net.ssl.trustStoreType","JKS");
>
> Regards,
> Dimuthu
>
> On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
> > Hi,
> >
> > I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL
> > enabled and when I execute the simple java client to access the
> > webservice below error is thrown
> >
> > Please help to resolve this issue.
> >
> >
> >  [java] org.apache.axis2.AxisFault:
> > sun.security.validator.ValidatorException: No trusted certificate
> > found  .....................
> >  ....................
> >  Caused by: javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException: No trusted certificate
> > found
> >
> >
> > Thanks & Regards,
> >
> > Peter Rajesh
> >
> >
> >
> > **********************************************************************
> > *** This communication, including attachments, is for the exclusive
> > use of addressee and may contain proprietary, confidential and/or
> > privileged information.  If you are not the intended recipient, any
> > use, copying, disclosure, dissemination or distribution is strictly
> > prohibited.  If you are not the intended recipient, please notify the
> > sender immediately by return e-mail, delete this communication and
> > destroy all copies.
> > **********************************************************************
> > ***
> >
> --
> http://wso2.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

RE: Axis 2 webservice in Weblogic 8.1 - Must Understand check failed for header

Posted by "Rajesh, Peter (CLAIMS, WIP)" <Pe...@thehartford.com>.
 
Thanks Dimuthu for you reply.

After I add the System.setProperty with the proper keystore and password
and if I execute the java test client I get below exception.

Any idea what is the reason for this error? Am I missing anything in the
configuration?  

     [java] org.apache.axis2.AxisFault: Must Understand check failed for
header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd : Security
     [java]     at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
     [java]     at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
)
     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
)


Thanks & Regards,

Peter Rajesh | 860-547-3881

-----Original Message-----
From: Dimuthu [mailto:muthulee@apache.org]
Sent: Tuesday, October 16, 2007 11:55 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException


Hi,

The exception says "No trusted certificate found". If the server
certificate is not a widely accepted certificate, i.e. if it doesn't
chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
you have to set some system properties as follows.

System.setProperty("javax.net.ssl.trustStore","yourpath/keystore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.trustStoreType","JKS");

Regards,
Dimuthu

On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
> Hi,
> 
> I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL 
> enabled and when I execute the simple java client to access the 
> webservice below error is thrown
> 
> Please help to resolve this issue.
> 
> 
>  [java] org.apache.axis2.AxisFault:
> sun.security.validator.ValidatorException: No trusted certificate 
> found  .....................
>  ....................
>  Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate 
> found
> 
> 
> Thanks & Regards,
> 
> Peter Rajesh
> 
> 
> 
> **********************************************************************
> *** This communication, including attachments, is for the exclusive 
> use of addressee and may contain proprietary, confidential and/or 
> privileged information.  If you are not the intended recipient, any 
> use, copying, disclosure, dissemination or distribution is strictly 
> prohibited.  If you are not the intended recipient, please notify the 
> sender immediately by return e-mail, delete this communication and 
> destroy all copies.
> **********************************************************************
> ***
> 
--
http://wso2.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Axis 2 webservice in Weblogic 8.1 - Must Understand check failed for header

Posted by "Rajesh, Peter (CLAIMS, WIP)" <Pe...@thehartford.com>.
 
Thanks Dimuthu for you reply.

After I add the System.setProperty with the proper keystore and password
and if I execute the java test client I get below exception.

Any idea what is the reason for this error? Am I missing anything in the
configuration?  

     [java] org.apache.axis2.AxisFault: Must Understand check failed for
header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd : Security
     [java]     at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
     [java]     at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
)
     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
)


Thanks & Regards,

Peter Rajesh | 860-547-3881

-----Original Message-----
From: Dimuthu [mailto:muthulee@apache.org]
Sent: Tuesday, October 16, 2007 11:55 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException


Hi,

The exception says "No trusted certificate found". If the server
certificate is not a widely accepted certificate, i.e. if it doesn't
chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
you have to set some system properties as follows.

System.setProperty("javax.net.ssl.trustStore","yourpath/keystore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.trustStoreType","JKS");

Regards,
Dimuthu

On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
> Hi,
> 
> I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL 
> enabled and when I execute the simple java client to access the 
> webservice below error is thrown
> 
> Please help to resolve this issue.
> 
> 
>  [java] org.apache.axis2.AxisFault:
> sun.security.validator.ValidatorException: No trusted certificate 
> found  .....................
>  ....................
>  Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate 
> found
> 
> 
> Thanks & Regards,
> 
> Peter Rajesh
> 
> 
> 
> **********************************************************************
> *** This communication, including attachments, is for the exclusive 
> use of addressee and may contain proprietary, confidential and/or 
> privileged information.  If you are not the intended recipient, any 
> use, copying, disclosure, dissemination or distribution is strictly 
> prohibited.  If you are not the intended recipient, please notify the 
> sender immediately by return e-mail, delete this communication and 
> destroy all copies.
> **********************************************************************
> ***
> 
--
http://wso2.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************


RE: Axis 2 webservice in Weblogic 8.1 - Must Understand check failed for header

Posted by "Rajesh, Peter (CLAIMS, WIP)" <Pe...@thehartford.com>.
 
Thanks Dimuthu for you reply.

After I add the System.setProperty with the proper keystore and password
and if I execute the java test client I get below exception.

Any idea what is the reason for this error? Am I missing anything in the
configuration?  

     [java] org.apache.axis2.AxisFault: Must Understand check failed for
header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
t-1.0.xsd : Security
     [java]     at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
     [java]     at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
)
     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
)


Thanks & Regards,

Peter Rajesh | 860-547-3881

-----Original Message-----
From: Dimuthu [mailto:muthulee@apache.org]
Sent: Tuesday, October 16, 2007 11:55 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException


Hi,

The exception says "No trusted certificate found". If the server
certificate is not a widely accepted certificate, i.e. if it doesn't
chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
you have to set some system properties as follows.

System.setProperty("javax.net.ssl.trustStore","yourpath/keystore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.trustStoreType","JKS");

Regards,
Dimuthu

On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
> Hi,
> 
> I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL 
> enabled and when I execute the simple java client to access the 
> webservice below error is thrown
> 
> Please help to resolve this issue.
> 
> 
>  [java] org.apache.axis2.AxisFault:
> sun.security.validator.ValidatorException: No trusted certificate 
> found  .....................
>  ....................
>  Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate 
> found
> 
> 
> Thanks & Regards,
> 
> Peter Rajesh
> 
> 
> 
> **********************************************************************
> *** This communication, including attachments, is for the exclusive 
> use of addressee and may contain proprietary, confidential and/or 
> privileged information.  If you are not the intended recipient, any 
> use, copying, disclosure, dissemination or distribution is strictly 
> prohibited.  If you are not the intended recipient, please notify the 
> sender immediately by return e-mail, delete this communication and 
> destroy all copies.
> **********************************************************************
> ***
> 
--
http://wso2.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Axis 2 webservice in Weblogic 8.1 - SSLHandshakeException

Posted by Dimuthu <mu...@apache.org>.
Hi,

The exception says "No trusted certificate found". If the server
certificate is not a widely accepted certificate, i.e. if it doesn't
chain to one of the entries in JAVA_HOME/jre/lib/security/cacerts then
you have to set some system properties as follows.

System.setProperty("javax.net.ssl.trustStore","yourpath/keystore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.trustStoreType","JKS");

Regards,
Dimuthu

On Tue, 2007-10-16 at 15:45 -0400, Rajesh, Peter (CLAIMS, WIP) wrote:
> Hi,
> 
> I have deployed Axis 2 webserivce in Weblogic 8.1  server with SSL
> enabled and when I execute the simple java client to access the
> webservice below error is thrown
> 
> Please help to resolve this issue.
> 
> 
>  [java] org.apache.axis2.AxisFault:
> sun.security.validator.ValidatorException: No trusted certificate found
>  .....................
>  ....................
>  Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found
> 
> 
> Thanks & Regards,
> 
> Peter Rajesh
> 
> 
> 
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
> 
-- 
http://wso2.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org