Rampart basic: security processing failed (actions mismatch)

2010-02-17 Thread Doughty, Michael
Hey guys, as I mentioned in the last request I sent to the list, I was unable 
to make use the Policy-based Rampart configuration due to the malformation of 
the SOAP messages – Rampart seems to have replace all empty default namespaces 
with the parent element’s default namespace, causing  both my SOATest testing 
tool and my Axis2/Rampart based clients to be unable to parse the resulting 
contents.  In all cases, the inner elements are not recognized and the clients 
error out complaining that they were expecting different elements.

So I decided to try out the deprecated Rampart configuration model, and I 
discovered that the resulting encryption doesn’t seem to produce the same error 
in the responses.  After that, I decided to go ahead with that and replaced my 
Policy-based configurations with the basic configurations completely.  However, 
now I am running into another odd error “WSDoAllReceiver: security processing 
failed (actions mismatch)”.  The odd thing is that the service seems to be 
handling the request’s security just fine, verifying all signatures, decrypting 
the message, and then parsing the UsernameToken.  Only after going through 
every feature does it fail like this.

The “actions” I list in the InflowSecurity section do actually match what I am 
sending, so I am unsure why this is happening.  Does anyone have any ideas?  
I’d greatly appreciate your assistance as trying to get Rampart to work 
properly with my testing tool and clients has been a bit of a struggle for the 
last few weeks.  Below is the information coming from Tomcat’s console 
(including my own trace messages in the password callback handler):

Password Callback Handler called for DECRYPT: wsserver
Password Callback Handler called for USERNAME_TOKEN_UNKNOWN: admin
[INFO] Verification successful for URI "#id-32295991"
[INFO] Verification successful for URI "#id-22237361"
[INFO] Verification successful for URI "#id-14067086"
[ERROR] WSDoAllReceiver: security processing failed (actions mismatch)
org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed (actions
 mismatch)
at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiv
er.java:344)
at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllRece
iver.java:86)
at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:
72)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:167)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
4)
at java.lang.Thread.run(Thread.java:595)



WSDoAllReceiver: security processing failed (actions mismatch)

2008-08-04 Thread Shripad Gokhale
 

I am getting following error. What can be the reason for this?

 

WSDoAllReceiver: security processing failed
(actions mismatch)

 

I am sending following header as part of request.

 



 



  

2008-07-10T17:42:24Z

2008-07-10T17:47:24Z

  

  http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
urity-utility-1.0.xsd"
wsu:Id="SecurityToken-bf8a70e3-3936-4b50-8c9e-213b08fd5a1f">

IDMTEST

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-t
oken-profile-1.0#PasswordText">iptv4all

YpoCIr2Dde9LddBMU5k7wg==

2008-07-10T17:42:24Z

  



 

   

 

My server-config.wsdd looks like following.

 



 

 

 



 



 



 

   

 

 

 

  

 



 



 



 



 



 

 

 


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


RE: WSDoAllReceiver: security processing failed error - rampart bug?

2008-02-19 Thread jafaram
I also noticed, if the same password check fails in  PWCBHandler of client
side ..rampart throwing appropriate error message.

org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
  at org.apache.rampart.handler.WSDoAllReceiver.processBasic(
WSDoAllReceiver.java:216)
  at org.apache.rampart.handler.WSDoAllReceiver.processMessage(
WSDoAllReceiver.java:86)
  at org.apache.rampart.handler.WSDoAllHandler.invoke(
WSDoAllHandler.java:72)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
  at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:336)
  at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:389)
  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:211)
  at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:163)
  at com.nfn.wsclients.AsrsPolicyServiceStub.getStatuses(
AsrsPolicyServiceStub.java:153)
  at com.nfn.wsclients.AsrPolicyServiceClient.printAccountStatuses(
AsrPolicyServiceClient.java:35)
  at com.nfn.wsclients.AsrPolicyServiceClient.main(
AsrPolicyServiceClient.java:23)
Caused by: org.apache.ws.security.WSSecurityException: General security
error (WSSecurityEngine: Callback supplied no password for: client)
  at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(
EncryptedKeyProcessor.java:279)
  at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(
EncryptedKeyProcessor.java:87)
  at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(
EncryptedKeyProcessor.java:76)
  at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(
WSSecurityEngine.java:284)
  at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(
WSSecurityEngine.java:206)
  at org.apache.rampart.handler.WSDoAllReceiver.processBasic(
WSDoAllReceiver.java:213)
  ... 12 more






   
   Martin  
   Gainty  
   <[EMAIL PROTECTED]   
From 
   mail.com>Martin Gainty  
<[EMAIL PROTECTED]>  
To 
<[EMAIL PROTECTED]>  
cc 
   
   Subject 
   02/18/2008   RE: WSDoAllReceiver: security  
   06:31 PM processing failed error
   
   
   
   
   
   




you found a Rampart bug!
First we need to look at javax.security.aith.callback.CallbackHandler

http://www.docjar.com/docs/api/javax/security/auth/callback/CallbackHandler
.
html
handle method throws java.io.IOException,
   UnsupportedCallbackException

consequent implementations carry the signature forward properly..
org.apache.rampart.samples.policy.sample05;
public class PWCBHandler implements CallbackHandler {
public void handle(Callback[] callbacks)
throws IOException, UnsupportedCallbackException {//good!

take a look at
private static Parameter getInflowConfiguration() {
InflowConfiguration ifc = new InflowConfiguration();
ifc.setActionItems("Timestamp Signature Encrypt");
//how do we carry these throw IOException and UnsupportedCalbackException
forward ?

ifc.setPasswordCallbackClass("org.apache.rampart.samples.sample11.PWCBHandle

r");
...
InflowConfiguration.java contains this method..
 /**
  * Sets the password callback class name.
  * @param passwordCallbackClass
  */
 public void setPasswordCallbackClass(String passwordCallbackClass)
{  //save the passwordCallbackClass into the Action

this.action.put(WSHandlerConstants.PW_CALLBACK_CLASS,passwordCallbackClass);

 }

later on
org.apache.rampart.conversation
public class Util {
//notice this method throws Exception and NOT IOException and
Unsuppor

Re: WSDoAllReceiver: security processing failed error

2008-02-18 Thread jafaram
I guess in server side..when PWCBHandler does not find proper password for
given id. then AXIS/Rampart not throwing appropriate error message ..that's
why it was very difficult for me to figure out the problem.

i believe there is a bug in AXIS/Rampart in exception handling in sever
side..anyone had this issue?



   
   Mustaqali   
   Jafarali/HOM
   /NWP   From 
Mustaqali Jafarali/HOM/NWP 
To 
axis-user@ws.apache.org
cc 
   
   Subject 
   02/18/2008   Re: WSDoAllReceiver: security  
   05:02 PM processing failed error(Document   
link: Mustaqali Jafarali)  
   
   
   
   
   
   



Guys..nevermind..found the problem..

i was using wrong PWCBHandler class (one from sample02) i replaced with
right class from sample05...now its working fine



   
   [EMAIL PROTECTED]
   onwideprovid
   ent.comFrom 
[EMAIL PROTECTED]
To 
axis-user@ws.apache.org
cc 
   
   Subject 
   02/18/2008   Re: WSDoAllReceiver: security  
   04:35 PM processing failed error
   Please  
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   




I am still having this issue..don't whats wrong..there is no exception
thrown in server side..i managed to get request and response from TCP/IP
monitor..
is there anything can i check?..need help


REQUEST
http://www.w3.org/2003/05/soap-envelope";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
"
 soapenv:mustUnderstand="true">
http://www.w3.org/2001/04/xmlenc#rsa-1_5";
/>
http://www.w3.org/2000/09/xmldsig#";>


CN=Sample
Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK

1187603713



AgW4QfemEYfw3Yl1T+1AKootX5MPH2FHNy08e0FKUhb/tXEdRQK7Gmu+1IvrdOwDoMkHE/rPgFAXaUw47YNMVoFQ1vaMNPyZ7Qt+95wtZDXx4QSMdfpM+sSS9WycKZoTMQu3HvJ/7Oras4ZbhtN7oLMoYOWg/gXj85tRTPPwoLI=

http://www.w3.org/2001/04/xmlenc#Content";>http://www.w3.org/2001/04/xmlenc#aes128-cbc"; />http://www.w3.org/2000/09/xmldsig#";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">
+MwjW32MnuzGFUqTyne0rvRXzjVeq+D8MmUe1PnW3aXxxZzufQHtVfusHyKkZu598d4jZjyu2sv2

+wheFX8sYywhjf9xmqBaiQ5xcueSgkBa6UIWMVvnHjcdF17fMGAXdl41hMqHpKPfATGpiX+C/OJ2

/zSVQ0KzX4xd5XevGicd8aiHvXc/1yig7ttZqO2Symj+aiIkpBrvfrEaaij5XmnG9aJf8G2jLbLl

He2yH3NptlsLZPGPrhIAHYqHNs6Sy4wTqSZzohTlj8vCOkgrLbC6SvUB1tQUUJNmBt7k73s=

0


RESPONSE

197
http://www.w3.org/2003/05/soap-envelope
">soapenv:ReceiverWSDoAllReceiver: security processing
failed






   Mustaqali
   Jafarali/HOM
   /NWP   From
   

Re: WSDoAllReceiver: security processing failed error

2008-02-18 Thread jafaram
Guys..nevermind..found the problem..

i was using wrong PWCBHandler class (one from sample02) i replaced with
right class from sample05...now its working fine



   
   [EMAIL PROTECTED]
   onwideprovid
   ent.comFrom 
[EMAIL PROTECTED]
To 
axis-user@ws.apache.org
cc 
   
   Subject 
   02/18/2008   Re: WSDoAllReceiver: security  
   04:35 PM processing failed error
   Please  
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   




I am still having this issue..don't whats wrong..there is no exception
thrown in server side..i managed to get request and response from TCP/IP
monitor..
is there anything can i check?..need help


REQUEST
http://www.w3.org/2003/05/soap-envelope";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
"
 soapenv:mustUnderstand="true">
http://www.w3.org/2001/04/xmlenc#rsa-1_5";
/>
http://www.w3.org/2000/09/xmldsig#";>


CN=Sample
Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK

1187603713



AgW4QfemEYfw3Yl1T+1AKootX5MPH2FHNy08e0FKUhb/tXEdRQK7Gmu+1IvrdOwDoMkHE/rPgFAXaUw47YNMVoFQ1vaMNPyZ7Qt+95wtZDXx4QSMdfpM+sSS9WycKZoTMQu3HvJ/7Oras4ZbhtN7oLMoYOWg/gXj85tRTPPwoLI=

http://www.w3.org/2001/04/xmlenc#Content";>http://www.w3.org/2001/04/xmlenc#aes128-cbc"; />http://www.w3.org/2000/09/xmldsig#";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">
+MwjW32MnuzGFUqTyne0rvRXzjVeq+D8MmUe1PnW3aXxxZzufQHtVfusHyKkZu598d4jZjyu2sv2

+wheFX8sYywhjf9xmqBaiQ5xcueSgkBa6UIWMVvnHjcdF17fMGAXdl41hMqHpKPfATGpiX+C/OJ2

/zSVQ0KzX4xd5XevGicd8aiHvXc/1yig7ttZqO2Symj+aiIkpBrvfrEaaij5XmnG9aJf8G2jLbLl

He2yH3NptlsLZPGPrhIAHYqHNs6Sy4wTqSZzohTlj8vCOkgrLbC6SvUB1tQUUJNmBt7k73s=

0


RESPONSE

197
http://www.w3.org/2003/05/soap-envelope
">soapenv:ReceiverWSDoAllReceiver: security processing
failed






   Mustaqali
   Jafarali/HOM
   /NWP   From
Mustaqali Jafarali/HOM/NWP
To
axis-user@ws.apache.org
cc

   Subject
   02/14/2008   Re: WSDoAllReceiver: security
   02:09 PM processing failed error(Document
link: Mustaqali Jafarali)









yes..i believe keystore files(service.jks and service.properties) are in
classpath..otherwise i getting different merlin exception.

in this email i attached debug log from server side for more info.. can you
please  check the debug log and let me know if u find anythign wrong.






"Nandana Mihindukulasooriya" <[EMAIL PROTECTED]> wrote on 02/14/2008
12:40:33 PM:

> axis-user@ws.apache.org
>
> Hi,
>looking at the stack trace, it seems something goes wrong in
> WSDoAllReciever
> in the server side. Does the soap response contian the stack trace of
> the original
> exception ?
>Are key store files in the correct place ?
>
> thanks,
> /nandana
>
> On Thu, Feb 14, 2008 at 10:36 PM,  <[EMAIL PROTECTED]>
wrote:
> > I am not using "UsernameToken" but just trying "Encrypt" Feature only
as in
> >  sample05 ,..
> >
> >
> >
> >  here is snippet from my client axis.xml
> >
> >   
> >
> > 
> >   
> > Encrypt
> > com.nfn.wsclients.PWCBHandler >  passwordCallbackClass>
> > client.properties
> >   
> > 

Re: WSDoAllReceiver: security processing failed error

2008-02-18 Thread jafaram
I am still having this issue..don't whats wrong..there is no exception
thrown in server side..i managed to get request and response from TCP/IP
monitor..
is there anything can i check?..need help


REQUEST
http://www.w3.org/2003/05/soap-envelope";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
 soapenv:mustUnderstand="true">
http://www.w3.org/2001/04/xmlenc#rsa-1_5";
/>
http://www.w3.org/2000/09/xmldsig#";>


CN=Sample
Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK

1187603713



AgW4QfemEYfw3Yl1T+1AKootX5MPH2FHNy08e0FKUhb/tXEdRQK7Gmu+1IvrdOwDoMkHE/rPgFAXaUw47YNMVoFQ1vaMNPyZ7Qt+95wtZDXx4QSMdfpM+sSS9WycKZoTMQu3HvJ/7Oras4ZbhtN7oLMoYOWg/gXj85tRTPPwoLI=
http://www.w3.org/2001/04/xmlenc#Content";>http://www.w3.org/2001/04/xmlenc#aes128-cbc"; />http://www.w3.org/2000/09/xmldsig#";>
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>
+MwjW32MnuzGFUqTyne0rvRXzjVeq+D8MmUe1PnW3aXxxZzufQHtVfusHyKkZu598d4jZjyu2sv2
+wheFX8sYywhjf9xmqBaiQ5xcueSgkBa6UIWMVvnHjcdF17fMGAXdl41hMqHpKPfATGpiX+C/OJ2
/zSVQ0KzX4xd5XevGicd8aiHvXc/1yig7ttZqO2Symj+aiIkpBrvfrEaaij5XmnG9aJf8G2jLbLl
He2yH3NptlsLZPGPrhIAHYqHNs6Sy4wTqSZzohTlj8vCOkgrLbC6SvUB1tQUUJNmBt7k73s=
0


RESPONSE

197
http://www.w3.org/2003/05/soap-envelope";>soapenv:ReceiverWSDoAllReceiver: security processing
failed





   
   Mustaqali   
   Jafarali/HOM
   /NWP   From 
Mustaqali Jafarali/HOM/NWP 
To 
axis-user@ws.apache.org
cc 
   
   Subject 
   02/14/2008   Re: WSDoAllReceiver: security  
   02:09 PM processing failed error(Document   
link: Mustaqali Jafarali)  
   
   
   
   
   
   



yes..i believe keystore files(service.jks and service.properties) are in
classpath..otherwise i getting different merlin exception.

in this email i attached debug log from server side for more info.. can you
please  check the debug log and let me know if u find anythign wrong.






"Nandana Mihindukulasooriya" <[EMAIL PROTECTED]> wrote on 02/14/2008
12:40:33 PM:

> axis-user@ws.apache.org
>
> Hi,
>looking at the stack trace, it seems something goes wrong in
> WSDoAllReciever
> in the server side. Does the soap response contian the stack trace of
> the original
> exception ?
>Are key store files in the correct place ?
>
> thanks,
> /nandana
>
> On Thu, Feb 14, 2008 at 10:36 PM,  <[EMAIL PROTECTED]>
wrote:
> > I am not using "UsernameToken" but just trying "Encrypt" Feature only
as in
> >  sample05 ,..
> >
> >
> >
> >  here is snippet from my client axis.xml
> >
> >   
> >
> > 
> >   
> > Encrypt
> > com.nfn.wsclients.PWCBHandler >  passwordCallbackClass>
> > client.properties
> >   
> > 
> >
> >   
> >   
> > Encrypt
> > service
> > client.properties
> >   
> > 
> >
> >
> >  here is snippet from my services.xml
> >
> > 
> >
> > 
> >   
> > Encrypt
> > com.nfn.ws.PWCBHandler >  passwordCallbackClass>
> > service.properties
> >   
> > 
> >
> >   
> >   
> > Encrypt
> > client
> > service.properties
> >   
> > 
> >
> >
> >
> >
> >
> >
> >"Martin
> >Gainty"
> ><[EMAIL

Re: WSDoAllReceiver: security processing failed error

2008-02-14 Thread jafaram
yes..i believe keystore files(service.jks and service.properties) are in
classpath..otherwise i getting different merlin exception.

in this email i attached debug log from server side for more info.. can you
please  check the debug log and let me know if u find anythign wrong.


(See attached file: debug.log)



"Nandana Mihindukulasooriya" <[EMAIL PROTECTED]> wrote on 02/14/2008
12:40:33 PM:

> axis-user@ws.apache.org
>
> Hi,
>looking at the stack trace, it seems something goes wrong in
> WSDoAllReciever
> in the server side. Does the soap response contian the stack trace of
> the original
> exception ?
>Are key store files in the correct place ?
>
> thanks,
> /nandana
>
> On Thu, Feb 14, 2008 at 10:36 PM,  <[EMAIL PROTECTED]>
wrote:
> > I am not using "UsernameToken" but just trying "Encrypt" Feature only
as in
> >  sample05 ,..
> >
> >
> >
> >  here is snippet from my client axis.xml
> >
> >   
> >
> > 
> >   
> > Encrypt
> > com.nfn.wsclients.PWCBHandler >  passwordCallbackClass>
> > client.properties
> >   
> > 
> >
> >   
> >   
> > Encrypt
> > service
> > client.properties
> >   
> > 
> >
> >
> >  here is snippet from my services.xml
> >
> > 
> >
> > 
> >   
> > Encrypt
> > com.nfn.ws.PWCBHandler >  passwordCallbackClass>
> > service.properties
> >   
> > 
> >
> >   
> >   
> > Encrypt
> > client
> > service.properties
> >   
> > 
> >
> >
> >
> >
> >
> >
> >"Martin
> >Gainty"
> ><[EMAIL PROTECTED]
From
> >mail.com>"Martin Gainty"
> > <[EMAIL PROTECTED]>
> >
To
> > ,
> >
<[EMAIL PROTECTED]>
> >
cc
> >
> >02/14/2008
Subject
> >11:18 AM Re: WSDoAllReceiver: security
> >Please   processing failed error
> >respond to
> >
> >
> >[EMAIL PROTECTED]
> >.apache.org
> >
> >
> >
> >
> >
> >
> >
> >  Did you configure username/password/Nonce/Created as suggested in the
ws02
> >  tutorial located at
> >  http://wso2.org/library/240
> >  Did you look at the OutflowSecurity parameter spec from rampart 1.3
> >  s2.client.axis2.xml ?
> >
> >  Martin-
> >  - Original Message -
> >  From: <[EMAIL PROTECTED]>
> >  To: 
> >  Sent: Thursday, February 14, 2008 10:33 AM
> >  Subject: WSDoAllReceiver: security processing failed error
> >
> >
> >  >
> >  > I am using Axis2 1.3 with rampart in websphere 5.1 (running on ibm
jdk
> >  > 1.4.2). And my client is running on jdk 1.5.
> >  >
> >  > I am testing sample05 code(Encryption) ..but i am getting exception,
in
> >  > client side.
> >  >
> >  > org.apache.axis2.AxisFault: WSDoAllReceiver: security processing
failed
> >  >   at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
> >  > Utils.java:486)
> >  >   at
> >  >
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> >  > OutInAxisOperation.java:343)
> >  >   at org.apache.axis2.description.OutInAxisOperationClient.send(
> >  > OutInAxisOperation.java:389)
> >  >   at
> >  org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> >  > OutInAxisOperation.java:211)
> >  >   at org.apache.axis2.client.OperationClient.execute(
> >  > OperationClient.java:163)
> >  >   at com.nfn.wsclients.AsrsPolicyServiceStub.getStatuses(
> >  > AsrsPolicyServiceStub.java:153)
> >  >   at
com.nfn.wsclients.AsrPolicyServiceClient.printAccountStatuses(
> >  > AsrPolicyServiceClient.java:35)
> >  >   at com.nfn.wsclients.AsrPolicyServiceClient.main(
> >  > AsrPolicyServiceClient.java:23)
> >  >
> >  >
> >  > before this i tested sample 02 (usertoekn authentication) which
worked
> >  > fine.
&g

Re: WSDoAllReceiver: security processing failed error

2008-02-14 Thread Nandana Mihindukulasooriya
Hi,
   looking at the stack trace, it seems something goes wrong in WSDoAllReciever
in the server side. Does the soap response contian the stack trace of
the original
exception ?
   Are key store files in the correct place ?

thanks,
/nandana

On Thu, Feb 14, 2008 at 10:36 PM,  <[EMAIL PROTECTED]> wrote:
> I am not using "UsernameToken" but just trying "Encrypt" Feature only as in
>  sample05 ,..
>
>
>
>  here is snippet from my client axis.xml
>
>   
>
> 
>   
> Encrypt
> com.nfn.wsclients.PWCBHandler  passwordCallbackClass>
> client.properties
>   
> 
>
>   
>   
> Encrypt
> service
> client.properties
>   
> 
>
>
>  here is snippet from my services.xml
>
> 
>
> 
>   
> Encrypt
> com.nfn.ws.PWCBHandler  passwordCallbackClass>
> service.properties
>   
> 
>
>   
>   
> Encrypt
> client
> service.properties
>   
> 
>
>
>
>
>
>
>"Martin
>Gainty"
><[EMAIL PROTECTED]   
> From
>mail.com>"Martin Gainty"
> <[EMAIL PROTECTED]>
> To
> ,
> <[EMAIL PROTECTED]>
> cc
>
>02/14/2008  Subject
>11:18 AM Re: WSDoAllReceiver: security
>Please   processing failed error
>respond to
>
>
>[EMAIL PROTECTED]
>.apache.org
>
>
>
>
>
>
>
>  Did you configure username/password/Nonce/Created as suggested in the ws02
>  tutorial located at
>  http://wso2.org/library/240
>  Did you look at the OutflowSecurity parameter spec from rampart 1.3
>  s2.client.axis2.xml ?
>
>  Martin-
>  - Original Message -
>  From: <[EMAIL PROTECTED]>
>  To: 
>  Sent: Thursday, February 14, 2008 10:33 AM
>  Subject: WSDoAllReceiver: security processing failed error
>
>
>  >
>  > I am using Axis2 1.3 with rampart in websphere 5.1 (running on ibm jdk
>  > 1.4.2). And my client is running on jdk 1.5.
>  >
>  > I am testing sample05 code(Encryption) ..but i am getting exception, in
>  > client side.
>  >
>  > org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
>  >   at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
>  > Utils.java:486)
>  >   at
>  > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>  > OutInAxisOperation.java:343)
>  >   at org.apache.axis2.description.OutInAxisOperationClient.send(
>  > OutInAxisOperation.java:389)
>  >   at
>  org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>  > OutInAxisOperation.java:211)
>  >   at org.apache.axis2.client.OperationClient.execute(
>  > OperationClient.java:163)
>  >   at com.nfn.wsclients.AsrsPolicyServiceStub.getStatuses(
>  > AsrsPolicyServiceStub.java:153)
>  >   at com.nfn.wsclients.AsrPolicyServiceClient.printAccountStatuses(
>  > AsrPolicyServiceClient.java:35)
>  >   at com.nfn.wsclients.AsrPolicyServiceClient.main(
>  > AsrPolicyServiceClient.java:23)
>  >
>  >
>  > before this i tested sample 02 (usertoekn authentication) which worked
>  > fine.
>  > when idid google on "WSDoAllReceiver: security processing failed" i am
>  > seeing lot of posting related to action mismath problem.
>  > but if u see the above exception message, i am not getting "action
>  > mismatch" problem..but just WSDoAllReceiver: security processing failed
>  >
>  > Any idea?
>  >
>  > Thanks in adavnce.
>  >
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDoAllReceiver: security processing failed error

2008-02-14 Thread jafaram
I am not using "UsernameToken" but just trying "Encrypt" Feature only as in
sample05 ,..



here is snippet from my client axis.xml

  


  
Encrypt
com.nfn.wsclients.PWCBHandler
client.properties
  


  
  
Encrypt
service
client.properties
  



here is snippet from my services.xml




  
Encrypt
com.nfn.ws.PWCBHandler
service.properties
  


  
  
Encrypt
client
service.properties
  






   
   "Martin 
   Gainty" 
   <[EMAIL PROTECTED]   
From 
   mail.com>"Martin Gainty"
<[EMAIL PROTECTED]>  
To 
, 
<[EMAIL PROTECTED]>  
cc 
   
   02/14/2008  Subject 
   11:18 AM Re: WSDoAllReceiver: security  
   Please   processing failed error
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   
   




Did you configure username/password/Nonce/Created as suggested in the ws02
tutorial located at
http://wso2.org/library/240
Did you look at the OutflowSecurity parameter spec from rampart 1.3
s2.client.axis2.xml ?

Martin-
- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Thursday, February 14, 2008 10:33 AM
Subject: WSDoAllReceiver: security processing failed error


>
> I am using Axis2 1.3 with rampart in websphere 5.1 (running on ibm jdk
> 1.4.2). And my client is running on jdk 1.5.
>
> I am testing sample05 code(Encryption) ..but i am getting exception, in
> client side.
>
> org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
>   at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
> Utils.java:486)
>   at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:343)
>   at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)
>   at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
>   at org.apache.axis2.client.OperationClient.execute(
> OperationClient.java:163)
>   at com.nfn.wsclients.AsrsPolicyServiceStub.getStatuses(
> AsrsPolicyServiceStub.java:153)
>   at com.nfn.wsclients.AsrPolicyServiceClient.printAccountStatuses(
> AsrPolicyServiceClient.java:35)
>   at com.nfn.wsclients.AsrPolicyServiceClient.main(
> AsrPolicyServiceClient.java:23)
>
>
> before this i tested sample 02 (usertoekn authentication) which worked
> fine.
> when idid google on "WSDoAllReceiver: security processing failed" i am
> seeing lot of posting related to action mismath problem.
> but if u see the above exception message, i am not getting "action
> mismatch" problem..but just WSDoAllReceiver: security processing failed
>
> Any idea?
>
> Thanks in adavnce.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDoAllReceiver: security processing failed error

2008-02-14 Thread Martin Gainty
Did you configure username/password/Nonce/Created as suggested in the ws02
tutorial located at
http://wso2.org/library/240
Did you look at the OutflowSecurity parameter spec from rampart 1.3
s2.client.axis2.xml ?

Martin-
- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Thursday, February 14, 2008 10:33 AM
Subject: WSDoAllReceiver: security processing failed error


>
> I am using Axis2 1.3 with rampart in websphere 5.1 (running on ibm jdk
> 1.4.2). And my client is running on jdk 1.5.
>
> I am testing sample05 code(Encryption) ..but i am getting exception, in
> client side.
>
> org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
>   at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
> Utils.java:486)
>   at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:343)
>   at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)
>   at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
>   at org.apache.axis2.client.OperationClient.execute(
> OperationClient.java:163)
>   at com.nfn.wsclients.AsrsPolicyServiceStub.getStatuses(
> AsrsPolicyServiceStub.java:153)
>   at com.nfn.wsclients.AsrPolicyServiceClient.printAccountStatuses(
> AsrPolicyServiceClient.java:35)
>   at com.nfn.wsclients.AsrPolicyServiceClient.main(
> AsrPolicyServiceClient.java:23)
>
>
> before this i tested sample 02 (usertoekn authentication) which worked
> fine.
> when idid google on "WSDoAllReceiver: security processing failed" i am
> seeing lot of posting related to action mismath problem.
> but if u see the above exception message, i am not getting "action
> mismatch" problem..but just WSDoAllReceiver: security processing failed
>
> Any idea?
>
> Thanks in adavnce.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WSDoAllReceiver: security processing failed error

2008-02-14 Thread jafaram

I am using Axis2 1.3 with rampart in websphere 5.1 (running on ibm jdk
1.4.2). And my client is running on jdk 1.5.

I am testing sample05 code(Encryption) ..but i am getting exception, in
client side.

org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
  at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
Utils.java:486)
  at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:343)
  at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:389)
  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:211)
  at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:163)
  at com.nfn.wsclients.AsrsPolicyServiceStub.getStatuses(
AsrsPolicyServiceStub.java:153)
  at com.nfn.wsclients.AsrPolicyServiceClient.printAccountStatuses(
AsrPolicyServiceClient.java:35)
  at com.nfn.wsclients.AsrPolicyServiceClient.main(
AsrPolicyServiceClient.java:23)


before this i tested sample 02 (usertoekn authentication) which worked
fine.
when idid google on "WSDoAllReceiver: security processing failed" i am
seeing lot of posting related to action mismath problem.
but if u see the above exception message, i am not getting "action
mismatch" problem..but just WSDoAllReceiver: security processing failed

Any idea?

Thanks in adavnce.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting Axis Exception : WSDoAllReceiver: security processing failed (actions mismatch)

2008-01-23 Thread Nandana Mihindukulasooriya
Hi Anil,
   IFAIK, the actions in this exception refer to to the actions in the
in/out flow security parameter.


  
XXX XXX 
  


looking at the stack trace, it seems that the response sent by the server is
not according to the inflow
security parameter defined in the client. Please take a look at the outflow
security parameter of the
service.xml and the inflow security parameter of the client.

Thanks,
Nandana




On Jan 24, 2008 1:34 AM, Anil Misra <[EMAIL PROTECTED]> wrote:

>  Hi ,
>
>
>
>   I am getting the following exception when running my client. The
> services.xml has the action mapping as bellow:
>
>
>
> http://www.w3.org/ns/wsdl/in-out";>
>
>urn:myAction
>
>http://…./myActionResponse outputActionMapping>
>
>
>
>
>
> In the client code I am setting the action as Following:
>
>
>
>options.setAction("urn:myAction");
>
>
>
>
>
> what am I doing wrong to get this exception :
>
>
>
>
>
>[java]  Axis Exception : WSDoAllReceiver: security processing failed
> (actions mismatch)
>
>  [java] org.apache.axis2.AxisFault: WSDoAllReceiver: security
> processing fai
>
> led (actions mismatch)
>
>  [java] at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext
>
> (Utils.java:486)
>
>  [java] at
> org.apache.axis2.description.OutInAxisOperationClient.handleR
>
> esponse(OutInAxisOperation.java:343)
>
>  [java] at
> org.apache.axis2.description.OutInAxisOperationClient.send(Ou
>
> tInAxisOperation.java:389)
>
>  [java] at
> org.apache.axis2.description.OutInAxisOperationClient.execute
>
> Impl(OutInAxisOperation.java:211)
>
>  [java] at org.apache.axis2.client.OperationClient.execute
> (OperationClie
>
> nt.java:163)
>
>  [java] at org.apache.axis2.client.ServiceClient.sendReceive
> (ServiceClie
>
> nt.java:528)
>
>  [java] at org.apache.axis2.client.ServiceClient.sendReceive
> (ServiceClie
>
> nt.java:508)
>
>  [java] at com.arccorp.iar.util.ws.XmlLoadClient2.main(
> XmlLoadClient2.ja
>
> va:112)
>
>
>
> Any pointers please. Your help is appreciated.
>
>
>
>
>
> Thanks,
>
> -Anil
>
>
>


getting Axis Exception : WSDoAllReceiver: security processing failed (actions mismatch)

2008-01-23 Thread Anil Misra
Hi ,

 

  I am getting the following exception when running my client. The
services.xml has the action mapping as bellow:

 

http://www.w3.org/ns/wsdl/in-out";>

   urn:myAction

 
http:///myActionResponse

 

 

In the client code I am setting the action as Following:

 

   options.setAction("urn:myAction");

 

 

what am I doing wrong to get this exception :

 

 

   [java]  Axis Exception : WSDoAllReceiver: security processing failed
(actions mismatch)

 [java] org.apache.axis2.AxisFault: WSDoAllReceiver: security
processing fai

led (actions mismatch)

 [java] at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext

(Utils.java:486)

 [java] at
org.apache.axis2.description.OutInAxisOperationClient.handleR

esponse(OutInAxisOperation.java:343)

 [java] at
org.apache.axis2.description.OutInAxisOperationClient.send(Ou

tInAxisOperation.java:389)

 [java] at
org.apache.axis2.description.OutInAxisOperationClient.execute

Impl(OutInAxisOperation.java:211)

 [java] at
org.apache.axis2.client.OperationClient.execute(OperationClie

nt.java:163)

 [java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie

nt.java:528)

 [java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie

nt.java:508)

 [java] at
com.arccorp.iar.util.ws.XmlLoadClient2.main(XmlLoadClient2.ja

va:112)

 

Any pointers please. Your help is appreciated.

 

 

Thanks,

-Anil 

 



Re: security processing failed

2007-08-17 Thread seok
Thanks,
Pavan Madiraju

I made new keystores, and sample04 works.

But it gave me a another problem.

I used those keystores at sample05(only ecription).
But it did not work.

and then have same error message
WSDoAllReceiver: security processing failed

Need help again.
Thanks.

> Following is the response from
> Ruchith Fernando <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> Argh ... seems like the certs expired on July 21st :(
>
> Please create the client and service keystores as described here :
> http://wso2.org/library/174
>
> To get around the issue. You can also change the system date and make
> the example to work.
>
> On 8/16/07, *seok* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi
>
> I have a problem with using signature item.
>
> client : axis2.xml
> ・
> ・
> Timestamp Signature
> ・
> ・
>
> service : service.xml (tomcat5.5.23)
> ・
> ・
> Timestamp Signature
> ・
> ・
>
> and I got a error message :
> WSDoAllReceiver: security processing failed
>
> I used sample04 in the rampart1.2.
>
> Please Let me know the way to solve this problem.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: security processing failed

2007-08-16 Thread Pavan Madiraju
Following is the response from
Ruchith Fernando <[EMAIL PROTECTED]>
Argh ... seems like the certs expired on July 21st :(

Please create the client and service keystores as described here :
http://wso2.org/library/174

To get around the issue. You can also change the system date and make the
example to work.

On 8/16/07, seok <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have a problem with using signature item.
>
> client : axis2.xml
> ・
> ・
> Timestamp Signature
> ・
> ・
>
> service : service.xml (tomcat5.5.23)
> ・
> ・
> Timestamp Signature
> ・
> ・
>
> and I got a error message :
> WSDoAllReceiver: security processing failed
>
> I used sample04 in the rampart1.2.
>
> Please Let me know the way to solve this problem.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


security processing failed

2007-08-16 Thread seok
Hi

I have a problem with using signature item.

client : axis2.xml
・
・
Timestamp Signature
・
・

service : service.xml (tomcat5.5.23)
・
・
Timestamp Signature
・
・

and I got a error message :
WSDoAllReceiver: security processing failed

I used sample04 in the rampart1.2.

Please Let me know the way to solve this problem.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WSDoAllReceiver: security processing failed

2007-06-25 Thread masi


Hi all,

I am following the IBM guide
https://www6.software.ibm.com/developerworks/education/ws-understand-web-services4/section5.html

I first enabled the Signature in the client. Signature
for the body for the outflowsecurity.

I got this:

  [java] org.apache.axis2.AxisFault: WSDoAllReceiver: security
processing failed

The username is good, the password  is good (from the callback handler).
[EMAIL PROTECTED]
~/Documents/workspace/TianiIdP/build/classes $ keytool -list -alias
umberto -keystore mykeys.j
Immettere la password del keystore:  mypass
umberto, 20-giu-2007, keyEntry,
Impronta digitale certificato (MD5):
DA:7A:E0:B1:9B:79:93:70:5F:10:7C:30:57:26:C4:C4


Can you help me?

Cheers,




This message was sent using IMP, the Internet Messaging Program.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]