axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: Need immediate help on error found while running the policy samples on embedded Axis2 1.4 + Rampart 1.4
Date Tue, 19 Aug 2008 22:34:00 GMT

one more thing to check are the predefined phases for policyDetermination e.g.
    <phaseOrder type="OutFlow">
        <phase name="PolicyDetermination"/>

    <phaseOrder type="OutFaultFlow">
        <phase name="PolicyDetermination"/>

your /policy/rampart-policy.xml should look something like
<wsp:Policy xmlns:wsp="">
    <ramp:RampartConfig xmlns:ramp=""> 
            <ramp:crypto provider="">
                <ramp:property name="keystoreType">JKS</ramp:property>
                <ramp:property name="keystoreFile">/path/to/VladimirPutin.jks</ramp:property>
                <ramp:property name="keystorePassword">GeorgiaOnMyMind</ramp:property>


Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 

Date: Wed, 20 Aug 2008 00:33:19 +0600
Subject: Re: Need immediate help on error found while running the policy samples on embedded
Axis2 1.4 + Rampart 1.4

Hi Shaun,
          It seems your services get deployed without a problem. So if you do a ?wsdl , are
the policies present in the WSDL ? Most common reason for this is policies not being set correctly
due to some wired reason. I just wanted to make your that policies are present in the WSDL.


On Tue, Aug 19, 2008 at 3:09 PM, Shaun Clayton <> wrote:

Hi Nandana,
Thank you for your prompt response and guidance.
I have done what you suggested, I uncommented the but I still encounter the same problem.
And after I tested again, here are the results:
1. MustUnderstand error still occurred
Actually I had tried to run the samples in a stand alone application without any changes and
they ran smoothly.
But the problem occured when I ran the policy samples when axis2 is embedded in an application.
2. DataRetrievalException error (in my other email) is now resolved 
Please help me resolve this issue.
On Tue, Aug 19, 2008 at 3:21 PM, Nandana Mihindukulasooriya <>

Can you see the policies in the WSDL of those samples ? Please uncomment 
					<!--  <sp:HttpsToken RequireClientCertificate="false"/> -->


before you try sample 01.


On Tue, Aug 19, 2008 at 1:12 PM, Shaun Clayton <> wrote:

Hi all,
Can someone guide me to solve this issue?
I have been trying to embed axis2 1.4 and Rampart 1.4 in an application server running JDK
I have tested all the basic rampart samples. It works great.
But when I tested the rampart 1.4 policy samples (sample 1, sample 2 and sample 3), an exception
is thrown at the server side as follows:
2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG org.apache.axis2.engine.Phase
 - [MessageContext: logID=urn:uuid:1734987DE7FDB1
86641219131247221] Checking post-conditions for phase "OperationInPhase"

2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG org.apache.axis2.engine.AxisEngine
 - MustUnderstand header not processed or re
gistered as understood{}Security

2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG org.apache.axis2.i18n.ProjectResourceBundle
 - org.apache.axis2.i18n.resource::
2008-08-19 14:34:07 ICT [ISP.0090.0009D]  Message not found in "com.wm.resources.WmPublicMsgBundle".
0=[HttpConnection-8082-2] ERROR org.apache.axis2.
engine.AxisEngine  - Must Understand check failed for header
: Secur

 1=org.apache.axis2.AxisFault: Must Understand check failed for header
: Security

        at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(
        at org.apache.axis2.engine.AxisEngine.receive(
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(

        at org.apache.axis2.transport.http.HTTPWorker.service(
        at com.jebe.wm.axis2.listeners.ISHttpWorker.service(
        at org.apache.axis2.transport.http.server.AxisHttpService.doService(

        at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(

Shaun Clayton

Nandana Mihindukulasooriya 
WSO2 inc.

Nandana Mihindukulasooriya 
WSO2 inc.

Get thousands of games on your PC, your mobile phone, and the web with Windows®.
View raw message