Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 85657 invoked from network); 19 Aug 2008 22:34:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Aug 2008 22:34:41 -0000 Received: (qmail 78809 invoked by uid 500); 19 Aug 2008 22:34:30 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 78780 invoked by uid 500); 19 Aug 2008 22:34:30 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 78769 invoked by uid 99); 19 Aug 2008 22:34:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 15:34:30 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.116.106 as permitted sender) Received: from [65.55.116.106] (HELO blu0-omc3-s31.blu0.hotmail.com) (65.55.116.106) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 22:33:32 +0000 Received: from BLU142-W22 ([65.55.116.74]) by blu0-omc3-s31.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Aug 2008 15:34:01 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_1839269f-c47a-4195-952f-4bfb2208cfc4_" X-Originating-IP: [76.119.47.54] From: Martin Gainty To: 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 18:34:00 -0400 Importance: Normal In-Reply-To: <9e2fff830808191133l739a30b4q982113b41120da01@mail.gmail.com> References: <937052d30808190042u6f42bb1bwcb5a9c192fa0361@mail.gmail.com> <9e2fff830808190121t6b6ba0ffk71eec1db1cd5afd9@mail.gmail.com> <937052d30808190209n62f95f0fs73dbb305e8dcc8c9@mail.gmail.com> <9e2fff830808191133l739a30b4q982113b41120da01@mail.gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Aug 2008 22:34:01.0319 (UTC) FILETIME=[AD7C7F70:01C9024B] X-Virus-Checked: Checked by ClamAV on apache.org --_1839269f-c47a-4195-952f-4bfb2208cfc4_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable one more thing to check are the predefined phases for policyDetermination e= .g. .... ... your /policy/rampart-policy.xml should look something like = =20 vladimir putin org.apache.axis2.security.PWCallback =20 JKS /path/to/VladimirPutin= .jks GeorgiaOnMyMind HTH Martin=20 ______________________________________________=20 Disclaimer and confidentiality note=20 Everything in this e-mail and any attachments relates to the official busin= ess of Sender. This transmission is of a confidential nature and Sender doe= s not endorse distribution to any party other than intended recipient. Send= er does not necessarily endorse content contained within this transmission.= =20 Date: Wed=2C 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 sa= mples on embedded Axis2 1.4 + Rampart 1.4 Hi Shaun=2C It seems your services get deployed without a problem. So if you = do a ?wsdl =2C are the policies present in the WSDL ? Most common reason fo= r 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=2C nandana On Tue=2C Aug 19=2C 2008 at 3:09 PM=2C Shaun Clayton w= rote: Hi Nandana=2C =20 Thank you for your prompt response and guidance. I have done what you suggested=2C I uncommented the but I still encounter t= he same problem. And after I tested again=2C here are the results: =20 1. MustUnderstand error still occurred Actually I had tried to run the samples in a stand alone application withou= t any changes and they ran smoothly. But the problem occured when I ran the policy samples when axis2 is embedde= d in an application. =20 =20 2. DataRetrievalException error (in my other email) is now resolved=20 =20 Please help me resolve this issue. =20 =20 On Tue=2C Aug 19=2C 2008 at 3:21 PM=2C Nandana Mihindukulasooriya wrote: Can you see the policies in the WSDL of those samples ? Please uncomment=20 before you try sample 01. thanks=2C nandana=20 On Tue=2C Aug 19=2C 2008 at 1:12 PM=2C Shaun Clayton w= rote: Hi all=2C =20 Can someone guide me to solve this issue? =20 I have been trying to embed axis2 1.4 and Rampart 1.4 in an application ser= ver 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=2C sample 2 and = sample 3)=2C an exception is thrown at the server side as follows: =20 =20 2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG org.= apache.axis2.engine.Phase - [MessageContext: logID=3Durn:uuid:1734987DE7FD= B1 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.reso= urces.WmPublicMsgBundle". 0=3D[HttpConnection-8082-2] ERROR org.apache.axis= 2. engine.AxisEngine - Must Understand check failed for header http://docs.oa= sis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Secur ity 1=3Dorg.apache.axis2.AxisFault: Must Understand check failed for header ht= tp://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0= .xsd : Security at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngin= e.java:102) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:166) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo= stRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.ja= va:278) at com.jebe.wm.axis2.listeners.ISHttpWorker.service(ISHttpWorker.ja= va:19) at org.apache.axis2.transport.http.server.AxisHttpService.doService= (AxisHttpService.java:281) at org.apache.axis2.transport.http.server.AxisHttpService.handleReq= uest(AxisHttpService.java:187) at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(= HttpServiceProcessor.java:82) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecuto= r.runWorker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecuto= r$Worker.run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Thread.java:595) =20 =20 Thanks=2C =20 Shaun Clayton --=20 Nandana Mihindukulasooriya=20 WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org --=20 Nandana Mihindukulasooriya=20 WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org _________________________________________________________________ Get thousands of games on your PC=2C your mobile phone=2C and the web with = Windows=AE. http://clk.atdmt.com/MRT/go/108588800/direct/01/= --_1839269f-c47a-4195-952f-4bfb2208cfc4_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable one more thing to check are the predefined phases for policyDetermination e= .g.
 =3B =3B =3B <=3BphaseOrder type=3D"OutFlow">=3B
=  =3B =3B =3B =3B =3B =3B =3B <=3Bphase name= =3D"PolicyDetermination"/>=3B
 =3B =3B =3B =3B =3B=  =3B ....
 =3B =3B =3B <=3B/phaseOrder>=3B

&n= bsp=3B =3B =3B <=3BphaseOrder type=3D"OutFaultFlow">=3B
&nbs= p=3B =3B =3B =3B =3B =3B =3B <=3Bphase name=3D"Po= licyDetermination"/>=3B
 =3B =3B =3B =3B =3B = =3B ...
 =3B =3B =3B <=3B/phaseOrder>=3B

your /po= licy/rampart-policy.xml should look something like
<=3Bwsp:Policy xmln= s:wsp=3D"http://schemas.xmlsoap.org/ws/2004/09/policy">=3B
 =3B&nb= sp=3B =3B <=3Bramp:RampartConfig xmlns:ramp=3D"http://ws.apache.org/r= ampart/policy">=3B
 =3B =3B =3B  =3B =3B =3B = <=3Bramp:user>=3Bvladimir<=3B/ramp:user>=3B
 =3B =3B&nbs= p=3B  =3B =3B =3B <=3Bramp:encryptionUser>=3Bputin<=3B/ra= mp:encryptionUser>=3B
 =3B =3B =3B  =3B =3B = =3B <=3Bramp:passwordCallbackClass>=3Borg.apache.axis2.security.PWCallb= ack<=3B/ramp:passwordCallbackClass>=3B
 =3B =3B =3B &nbs= p=3B =3B =3B
 =3B =3B =3B  =3B =3B =3B = <=3Bramp:signatureCrypto>=3B
 =3B =3B =3B  =3B = =3B =3B  =3B =3B =3B <=3Bramp:crypto provider=3D"org.apac= he.ws.security.components.crypto.Merlin">=3B
 =3B =3B =3B =  =3B =3B =3B  =3B =3B =3B  =3B =3B =3B = <=3Bramp:property name=3D"keystoreType">=3BJKS<=3B/ramp:property>= =3B
 =3B =3B =3B  =3B =3B =3B  =3B =3B&n= bsp=3B  =3B =3B =3B <=3Bramp:property name=3D"keystoreFile"&g= t=3B/path/to/VladimirPutin.jks<=3B/ramp:property>=3B
 =3B = =3B =3B  =3B =3B =3B  =3B =3B =3B  =3B = =3B =3B <=3Bramp:property name=3D"keystorePassword">=3BGeorgiaOnMyM= ind<=3B/ramp:property>=3B
 =3B =3B =3B  =3B =3B&= nbsp=3B  =3B =3B =3B <=3B/ramp:crypto>=3B
 =3B = =3B =3B  =3B =3B =3B <=3B/ramp:signatureCrypto>=3B
&= nbsp=3B =3B =3B <=3B/ramp:RampartConfig>=3B
<=3B/wsp:Polic= y>=3B

HTH
Martin

______________________________________= ________
Disclaimer and confidentiality note
Everything in this e-m= ail and any attachments relates to the official business of Sender. This tr= ansmission is of a confidential nature and Sender does not endorse distribu= tion to any party other than intended recipient. Sender does not necessaril= y endorse content contained within this transmission.



Date:= Wed=2C 20 Aug 2008 00:33:19 +0600
From: nandana.cse@gmail.com
To: ax= is-user@ws.apache.org
Subject: Re: Need immediate help on error found wh= ile running the policy samples on embedded Axis2 1.4 + Rampart 1.4

<= div dir=3D"ltr">Hi Shaun=2C
 =3B =3B =3B =3B =3B&nbs= p=3B =3B =3B =3B It seems your services get deployed without a = problem. So if you do a ?wsdl =2C are the policies present in the WSDL ? Mo= st common reason for this is policies not being set correctly due to some w= ired reason. I just wanted to make your that policies are present in the WS= DL.

thanks=2C
nandana

On Tue=2C Aug= 19=2C 2008 at 3:09 PM=2C Shaun Clayton <=3Bkloxklax@gmail.com>=3B wrote:
Hi Nandana=2C
 =3B
Thank you for =3Byour prompt response and guidance.
I have done what you suggested=2C I uncommented the but I still encoun= ter the same problem.
And after I tested again=2C here are the results:
 =3B
1. MustUnderstand error still occurred
Actually I had tried to run the samples in a stand alone application w= ithout any changes and they ran smoothly.
But the problem occured =3Bwhen I ran the policy samples =3Bwh= en =3Baxis2 is embedded in an application.
 =3B
 =3B
2. DataRetrievalException error (in my other email) is now resolved
 =3B
Please help me resolve this issue.
 =3B
 =3B
On Tue=2C Aug 19=2C 2008 at 3:21 PM=2C Nandan= a Mihindukulasooriya <=3Bnandana.cse@gmail.com>=3B wrote:
Can you see the policies in the WSDL of those samples ? Pl= ease uncomment
				  <=3Bwsp:Policy>=3B
<=3B!--= <=3Bsp:HttpsToken RequireClientCertificate=3D"false"/>=3B -->=3B


<=3B/wsp:Policy>=3B

before you tr= y sample 01.

thanks=2C
nandana=20


On Tue=2C Aug 19=2C 2008 at 1:12 PM=2C Shaun = Clayton <=3Bkloxk= lax@gmail.com>=3B wrote:
Hi all=2C
 =3B
Can someone guide me to solve this issue?
 =3B
I have been trying to embed axis2 1.4 and Rampart 1.4 in an applicatio= n server running JDK 1.4.
I have tested all the basic =3Brampart samples. It works great.
But when I tested the rampart 1.4 policy samples (sample 1=2C sample 2= and sample 3)=2C an exception =3Bis thrown at the server side as follo= ws:
 =3B
 =3B
2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG= org.apache.axis2.engine.Phase =3B - [MessageContext: logID=3Durn:uuid:= 1734987DE7FDB1
86641219131247221] Checking post-conditions for phase "Op= erationInPhase"
2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG org.= apache.axis2.engine.AxisEngine =3B - MustUnderstand header not processe= d or re
gistered as understood{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-s= ecext-1.0.xsd}Security
2008-08-19 14:34:07 ICT [ISP.0090.0008D] [HttpConnection-8082-2] DEBUG org.= apache.axis2.i18n.ProjectResourceBundle =3B - org.apache.axis2.i18n.res= ource::
handleGetObject(mustunderstandfailed)
2008-08-19 14:34:07 ICT [ISP.0090.0009D] =3B Message not found = in "com.wm.resources.WmPublicMsgBundle". 0=3D[HttpConnection-8082-2] ERROR = org.apache.axis2.
engine.AxisEngine =3B - Must Understand check fail= ed for header
http://docs.oasis= -open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd= : Secur
ity
 =3B1=3Dorg.apache.axis2.AxisFault: Must Understand check failed= for header
http://docs.oasis-open.org/wss/2004/01/oasis-200= 401-wss-wssecurity-secext-1.0.xsd : Security
 =3B =3B =3B =3B =3B =3B =3B at org.apache.= axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:102)
 = =3B =3B =3B =3B =3B =3B =3B at org.apache.axis2.eng= ine.AxisEngine.receive(AxisEngine.java:166)
 =3B =3B =3B&nbs= p=3B =3B =3B =3B at org.apache.axis2.transport.http.HTTPTranspo= rtUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
 =3B =3B =3B =3B =3B =3B =3B at org.apache.axis= 2.transport.http.HTTPWorker.service(HTTPWorker.java:278)
 =3B = =3B =3B =3B =3B =3B =3B at com.jebe.wm.axis2.listeners.= ISHttpWorker.service(ISHttpWorker.java:19)
 =3B =3B =3B = =3B =3B =3B =3B at org.apache.axis2.transport.http.server.AxisH= ttpService.doService(AxisHttpService.java:281)
 =3B =3B =3B =3B =3B =3B =3B at org.apache.axis= 2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:= 187)
 =3B =3B =3B =3B =3B =3B =3B at org.apa= che.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcess= or.java:82)
 =3B =3B =3B =3B =3B =3B =3B at = edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker= (ThreadPoolExecutor.java:1061)
 =3B =3B =3B =3B =3B =3B =3B at edu.emory.mathc= s.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe= cutor.java:575)
 =3B =3B =3B =3B =3B =3B =3B= at java.lang.Thread.run(Thread.java:595)
 =3B
 =3B
Thanks=2C
 =3B
Shaun Clayton



--
Nandana Mihindukulasooriya
WSO2 inc.

<= a href=3D"http://nandana83.blogspot.com/" target=3D"_blank">http://nandana8= 3.blogspot.com/
http://www.wso2.org<= br>




--
Nandana Mihindukulasoor= iya
WSO2 inc.

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


Get thousands of games on your PC=2C your mobile phone=2C and t= he web with Windows=AE. Game with Windows = --_1839269f-c47a-4195-952f-4bfb2208cfc4_--