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.

thanks,
nandana

On Tue, Aug 19, 2008 at 3:09 PM, Shaun Clayton <[EMAIL PROTECTED]> 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 <
> [EMAIL PROTECTED]> wrote:
>
>> Can you see the policies in the WSDL of those samples ? Please uncomment
>>
>>                                <wsp:Policy>
>>                                      <!--  <sp:HttpsToken 
>> RequireClientCertificate="false"/> -->
>>
>>
>>                                </wsp:Policy>
>>
>> before you try sample 01.
>>
>> thanks,
>> nandana
>>
>>
>> On Tue, Aug 19, 2008 at 1:12 PM, Shaun Clayton <[EMAIL PROTECTED]>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 1.4.
>>> 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{
>>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd%7DSecurity>
>>>
>>> 2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG
>>> org.apache.axis2.i18n.ProjectResourceBundle  -
>>> org.apache.axis2.i18n.resource::
>>> handleGetObject(mustunderstandfailed)
>>> *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 **
>>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
>>> *<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd>
>>> * : Secur
>>> ity
>>>  1=org.apache.axis2.AxisFault: Must Understand check failed for header *
>>> **<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.x>
>>> *
>>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.x<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd>
>>> **sd : Security
>>> *        at
>>> org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:102)
>>>         at
>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:166)
>>>         at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>>>         at
>>> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:278)
>>>         at
>>> com.jebe.wm.axis2.listeners.ISHttpWorker.service(ISHttpWorker.java:19)
>>>         at
>>> org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
>>>         at
>>> org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
>>>         at
>>> org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
>>>         at
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
>>>         at
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
>>>         at java.lang.Thread.run(Thread.java:595)
>>>
>>>
>>> Thanks,
>>>
>>> Shaun Clayton
>>>
>>
>>
>>
>> --
>> Nandana Mihindukulasooriya
>> WSO2 inc.
>>
>> http://nandana83.blogspot.com/
>> http://www.wso2.org
>>
>
>


-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org

Reply via email to