axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
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>

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

your /policy/rampart-policy.xml should look something like
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
    <ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy"> 
        <ramp:user>vladimir</ramp:user>
        <ramp:encryptionUser>putin</ramp:encryptionUser>
        <ramp:passwordCallbackClass>org.apache.axis2.security.PWCallback</ramp:passwordCallbackClass>
        
        <ramp:signatureCrypto>
            <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
                <ramp:property name="keystoreType">JKS</ramp:property>
                <ramp:property name="keystoreFile">/path/to/VladimirPutin.jks</ramp:property>
                <ramp:property name="keystorePassword">GeorgiaOnMyMind</ramp:property>
            </ramp:crypto>
        </ramp:signatureCrypto>
    </ramp:RampartConfig>
</wsp:Policy>

HTH
Martin 

______________________________________________ 
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
From: nandana.cse@gmail.com
To: axis-user@ws.apache.org
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.


thanks,
nandana

On Tue, Aug 19, 2008 at 3:09 PM, Shaun Clayton <kloxklax@gmail.com> 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 <nandana.cse@gmail.com>
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 <kloxklax@gmail.com> 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


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
: 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.xsd
: 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




_________________________________________________________________
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/
Mime
View raw message