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.comMartin 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
UnsupportedCallbackException!!!
 public static void 

Re: Deploy my Service in a different war than axis2.war

2008-02-19 Thread jafaram
Yea..it's possible..because i am already doing that way



   
   Moley  
   Harey  
   moleyharey@   From 
   gmail.com   Moley Harey  
[EMAIL PROTECTED] 
To 
axis-user@ws.apache.org
cc 
   
   Subject 
   02/19/2008   Deploy my Service in a different   
   01:03 PM war than axis2.war 
   Please  
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   




Hi folks!

I have developed an Axis2 Web Service and to deploy and use it in Tomcat I
generate the MyService.aar file and copy it into the
$CATALINA_HOME/webapps/axis2/WEB-INF/services folder so it gets deployed
correctly and is accesses in the url:

http://localhost:8080/axis2/services/MyService

My question is if I could build my own mydeployment.war file (instead of
using the standard axis2.war) and put there all the necessary jars,
configuration files and my own MyService.aar and deploy it directly into
Tomcat so the url to access it would be something like:

http://localhost:8080/mydeployment/services/MyService

Is it possible to do it?
Or all services implemented using Axis2 have to be deployed into axis.war
file??

Thanks in advance,

Mh


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



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
?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
xmlns:xenc=http://www.w3.org/2001/04/xmlenc#;soapenv:Header
wsse:Security
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
 soapenv:mustUnderstand=truexenc:EncryptedKey Id=EncKeyId-1537969
xenc:EncryptionMethod Algorithm=http://www.w3.org/2001/04/xmlenc#rsa-1_5;
/
ds:KeyInfo xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
wsse:SecurityTokenReferenceds:X509Data
ds:X509IssuerSerial
ds:X509IssuerNameCN=Sample
Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK/ds:X509IssuerName

ds:X509SerialNumber1187603713/ds:X509SerialNumber
/ds:X509IssuerSerial
/ds:X509Data/wsse:SecurityTokenReference
/ds:KeyInfo
xenc:CipherDataxenc:CipherValueAgW4QfemEYfw3Yl1T+1AKootX5MPH2FHNy08e0FKUhb/tXEdRQK7Gmu+1IvrdOwDoMkHE/rPgFAXaUw47YNMVoFQ1vaMNPyZ7Qt+95wtZDXx4QSMdfpM+sSS9WycKZoTMQu3HvJ/7Oras4ZbhtN7oLMoYOWg/gXj85tRTPPwoLI=/xenc:CipherValue/xenc:CipherData
xenc:ReferenceListxenc:DataReference URI=#EncDataId-28970806
//xenc:ReferenceList/xenc:EncryptedKey/wsse:Security/soapenv:Headersoapenv:Bodyxenc:EncryptedData
 Id=EncDataId-28970806
Type=http://www.w3.org/2001/04/xmlenc#Content;xenc:EncryptionMethod
Algorithm=http://www.w3.org/2001/04/xmlenc#aes128-cbc; /ds:KeyInfo
xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
wsse:SecurityTokenReference
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;wsse:Reference
 URI=#EncKeyId-1537969 //wsse:SecurityTokenReference
/ds:KeyInfoxenc:CipherDataxenc:CipherValue+MwjW32MnuzGFUqTyne0rvRXzjVeq+D8MmUe1PnW3aXxxZzufQHtVfusHyKkZu598d4jZjyu2sv2
+wheFX8sYywhjf9xmqBaiQ5xcueSgkBa6UIWMVvnHjcdF17fMGAXdl41hMqHpKPfATGpiX+C/OJ2
/zSVQ0KzX4xd5XevGicd8aiHvXc/1yig7ttZqO2Symj+aiIkpBrvfrEaaij5XmnG9aJf8G2jLbLl
He2yH3NptlsLZPGPrhIAHYqHNs6Sy4wTqSZzohTlj8vCOkgrLbC6SvUB1tQUUJNmBt7k73s=/xenc:CipherValue/xenc:CipherData/xenc:EncryptedData/soapenv:Body/soapenv:Envelope
0


RESPONSE

197
?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;soapenv:Bodysoapenv:Faultsoapenv:Codesoapenv:Valuesoapenv:Receiver/soapenv:Value/soapenv:Codesoapenv:Reasonsoapenv:Text
 xml:lang=en-USWSDoAllReceiver: security processing
failed/soapenv:Text/soapenv:Reasonsoapenv:Detail
//soapenv:Fault/soapenv:Body/soapenv:Envelope





   
   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
 
module ref=rampart /
 
  parameter name=InflowSecurity
action
  itemsEncrypt/items
  

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
?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
xmlns:xenc=http://www.w3.org/2001/04/xmlenc#;soapenv:Header
wsse:Security
xmlns:wsse=
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd

 soapenv:mustUnderstand=truexenc:EncryptedKey Id=EncKeyId-1537969
xenc:EncryptionMethod Algorithm=http://www.w3.org/2001/04/xmlenc#rsa-1_5;
/
ds:KeyInfo xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
wsse:SecurityTokenReferenceds:X509Data
ds:X509IssuerSerial
ds:X509IssuerNameCN=Sample
Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK/ds:X509IssuerName

ds:X509SerialNumber1187603713/ds:X509SerialNumber
/ds:X509IssuerSerial
/ds:X509Data/wsse:SecurityTokenReference
/ds:KeyInfo
xenc:CipherDataxenc:CipherValueAgW4QfemEYfw3Yl1T+1AKootX5MPH2FHNy08e0FKUhb/tXEdRQK7Gmu+1IvrdOwDoMkHE/rPgFAXaUw47YNMVoFQ1vaMNPyZ7Qt+95wtZDXx4QSMdfpM+sSS9WycKZoTMQu3HvJ/7Oras4ZbhtN7oLMoYOWg/gXj85tRTPPwoLI=/xenc:CipherValue/xenc:CipherData

xenc:ReferenceListxenc:DataReference URI=#EncDataId-28970806
//xenc:ReferenceList/xenc:EncryptedKey/wsse:Security/soapenv:Headersoapenv:Bodyxenc:EncryptedData

 Id=EncDataId-28970806
Type=http://www.w3.org/2001/04/xmlenc#Content;xenc:EncryptionMethod
Algorithm=http://www.w3.org/2001/04/xmlenc#aes128-cbc; /ds:KeyInfo
xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
wsse:SecurityTokenReference
xmlns:wsse=
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
wsse:Reference
 URI=#EncKeyId-1537969 //wsse:SecurityTokenReference
/ds:KeyInfoxenc:CipherDataxenc:CipherValue+MwjW32MnuzGFUqTyne0rvRXzjVeq+D8MmUe1PnW3aXxxZzufQHtVfusHyKkZu598d4jZjyu2sv2

+wheFX8sYywhjf9xmqBaiQ5xcueSgkBa6UIWMVvnHjcdF17fMGAXdl41hMqHpKPfATGpiX+C/OJ2

/zSVQ0KzX4xd5XevGicd8aiHvXc/1yig7ttZqO2Symj+aiIkpBrvfrEaaij5XmnG9aJf8G2jLbLl

He2yH3NptlsLZPGPrhIAHYqHNs6Sy4wTqSZzohTlj8vCOkgrLbC6SvUB1tQUUJNmBt7k73s=/xenc:CipherValue/xenc:CipherData/xenc:EncryptedData/soapenv:Body/soapenv:Envelope

0


RESPONSE

197
?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope
soapenv:Bodysoapenv:Faultsoapenv:Codesoapenv:Valuesoapenv:Receiver/soapenv:Value/soapenv:Codesoapenv:Reasonsoapenv:Text

 xml:lang=en-USWSDoAllReceiver: security processing
failed/soapenv:Text/soapenv:Reasonsoapenv:Detail
//soapenv:Fault/soapenv:Body/soapenv:Envelope






   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 

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
?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
xmlns:xenc=http://www.w3.org/2001/04/xmlenc#;soapenv:Header
wsse:Security
xmlns:wsse=
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd

 soapenv:mustUnderstand=truexenc:EncryptedKey Id=EncKeyId-1537969
xenc:EncryptionMethod Algorithm=http://www.w3.org/2001/04/xmlenc#rsa-1_5;
/
ds:KeyInfo xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
wsse:SecurityTokenReferenceds:X509Data
ds:X509IssuerSerial
ds:X509IssuerNameCN=Sample
Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK/ds:X509IssuerName

ds:X509SerialNumber1187603713/ds:X509SerialNumber
/ds:X509IssuerSerial
/ds:X509Data/wsse:SecurityTokenReference
/ds:KeyInfo
xenc:CipherDataxenc:CipherValueAgW4QfemEYfw3Yl1T+1AKootX5MPH2FHNy08e0FKUhb/tXEdRQK7Gmu+1IvrdOwDoMkHE/rPgFAXaUw47YNMVoFQ1vaMNPyZ7Qt+95wtZDXx4QSMdfpM+sSS9WycKZoTMQu3HvJ/7Oras4ZbhtN7oLMoYOWg/gXj85tRTPPwoLI=/xenc:CipherValue/xenc:CipherData

xenc:ReferenceListxenc:DataReference URI=#EncDataId-28970806
//xenc:ReferenceList/xenc:EncryptedKey/wsse:Security/soapenv:Headersoapenv:Bodyxenc:EncryptedData

 Id=EncDataId-28970806
Type=http://www.w3.org/2001/04/xmlenc#Content;xenc:EncryptionMethod
Algorithm=http://www.w3.org/2001/04/xmlenc#aes128-cbc; /ds:KeyInfo
xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
wsse:SecurityTokenReference
xmlns:wsse=
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
wsse:Reference

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: how to disable logging for the client api

2008-02-14 Thread jafaram
Hi

What logger implementation are you using in your client side? Did you try
changing the log level in your log properties.

Thanks



   
   Nath,  
   Niraj  
   Niraj.Nath@   From 
   cns-inc.com Nath, Niraj  
[EMAIL PROTECTED]   
To 
axis-user@ws.apache.org  
cc 
   
   Subject 
   02/14/2008   how to disable logging for the 
   10:34 AM client api 
   Please  
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   






Hi

I’m using axis2 1.0 war distribution for some webservices hosted on my
server(websphere 6.1). Besides these I also have some webservice client
code ( outside axis2 war ) which uses axis2 ServiceClient api to call some
axis web services hosted on another servers. To make the ServiceClient 
associated api available to our client code we have taken all the jars from
axis2.war/WEB-INF/lib, merged to create another jar out of that  kept that
inside the ear (in the path via manifest file) …



Now when I use this client it generates lots of logs which I want to get
rid of – log looks like –…. I want to disable all these but not sure how to
do that …Can anyone help me here ?

===

 [2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer
: 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.execute(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.writeRequest(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.writeRequestLine(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.generateRequestLine(HttpConnection, String, String, String,
String)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG httpclient.wire.header  -  POST
/axis2/services/ClaimsSearchByService HTTP/1.1[\r][\n]

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.print(String)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[])

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[], int, int)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut     O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod  -
enter EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.methods.ExpectContinueMethod  -
enter ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 [WebContainer :
2] DEBUG org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 0025 SystemOut O 1535703 

RE: how to disable logging for the client api

2008-02-14 Thread jafaram
your rootLogger set to DEBUG level, you can change it to INFO

OR

you can explicitly set log level for org.apache.commons to INFO by adding
following line
log4j.logger.org.apache.commons=INFO


good luck



   
   Nath,  
   Niraj  
   Niraj.Nath@   From
   cns-inc.com Nath, Niraj  
[EMAIL PROTECTED]   
To
axis-user@ws.apache.org  
cc
   
   Subject
   02/14/2008   RE: how to disable logging for the
   10:52 AM client api 
   Please  
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   




Our application uses log4j...I didn't try to modify our log4j setting...

Currently it look like ---


## Overall Log4j level Setting
#log4j.disable=DEBUG
#log4j.disableOverride=false

## For Root
# initialise root logger with level DEBUG and assign consoleApp
 log4j.rootLogger=DEBUG, consoleApp
# add a ConsoleAppender to the logger BLAH
 log4j.appender.consoleApp=org.apache.log4j.ConsoleAppender
# set set that layout to be SimpleLayout

log4j.appender.consoleApp.layout=org.apache.log4j.PatternLayout
# set that Conversation Pattern
 log4j.appender.consoleApp.layout.ConversionPattern=%-4r [%t]
%-5p %c %x - %m%n



# Specify the Class for fileApp
#log4j.appender.fileApp=org.apache.log4j.FileAppender
log4j.appender.fileApp=org.apache.log4j.RollingFileAppender
log4j.appender.fileApp.Append = true

#set the file for fileApp
log4j.appender.fileApp.File={{ECAMS_BASE_PATH}}/websphere/config/logs/ecams

#set the MAx file size for fileApp
log4j.appender.fileApp.MaxFileSize=10240KB

# Keep three backup file
log4j.appender.fileApp.MaxBackupIndex=50

# set set that layout to be SimpleLayout
log4j.appender.fileApp.layout=org.apache.log4j.PatternLayout

# set set that Conversation Pattern
log4j.appender.fileApp.layout.ConversionPattern=%-4r-[%t]-%-5
p-%c-%d{DATE}-%x- %m%n

# Specify the Class for fileApp2
#log4j.appender.fileApp2=org.apache.log4j.FileAppender
log4j.appender.fileApp2=org.apache.log4j.RollingFileAppender
log4j.appender.fileApp2.Append = true

#set the file for fileApp2
log4j.appender.fileApp2.File={{ECAMS_BASE_PATH}}/websphere/config/logs/ecamsRA


#set the MAx file size for fileApp2
log4j.appender.fileApp2.MaxFileSize=10240KB

# Keep three backup file
log4j.appender.fileApp2.MaxBackupIndex=10

# set set that layout to be SimpleLayout
log4j.appender.fileApp2.layout=org.apache.log4j.PatternLayout

# set set that Conversation Pattern
log4j.appender.fileApp2.layout.ConversionPattern=%-4r-[%t]-%-5
p-%c-%d{DATE}-%x- %m%n




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 10:44 AM
To: axis-user@ws.apache.org
Subject: Re: how to disable logging for the client api

Hi

What logger implementation are you using in your client side? Did you try
changing the log level in your log properties.

Thanks




   Nath,
   Niraj
   Niraj.Nath@   From
   cns-inc.com Nath, Niraj
[EMAIL PROTECTED]
To
axis-user@ws.apache.org
cc

   Subject
   02/14/2008   how to disable logging for the
   10:34 AM client api
   Please
   respond to
   [EMAIL PROTECTED]
   .apache.org








Hi

I'm using axis2 1.0 war distribution for some webservices hosted on my
server(websphere 6.1). Besides these I also have some webservice client
code ( outside axis2 war ) which uses axis2 ServiceClient api to call some
axis web services hosted on another servers. To make the ServiceClient 
associated 

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

  module ref=rampart /

parameter name=InflowSecurity
  action
itemsEncrypt/items
passwordCallbackClasscom.nfn.wsclients.PWCBHandler/
passwordCallbackClass
decryptionPropFileclient.properties/decryptionPropFile
  /action
/parameter

  parameter name=OutflowSecurity
  action
itemsEncrypt/items
encryptionUserservice/encryptionUser
encryptionPropFileclient.properties/encryptionPropFile
  /action
/parameter


here is snippet from my services.xml

module ref=rampart /

parameter name=InflowSecurity
  action
itemsEncrypt/items
passwordCallbackClasscom.nfn.ws.PWCBHandler/
passwordCallbackClass
decryptionPropFileservice.properties/decryptionPropFile
  /action
/parameter

  parameter name=OutflowSecurity
  action
itemsEncrypt/items
encryptionUserclient/encryptionUser
encryptionPropFileservice.properties/encryptionPropFile
  /action
/parameter





   
   Martin 
   Gainty 
   [EMAIL PROTECTED]   
From 
   mail.comMartin Gainty
[EMAIL PROTECTED]  
To 
axis-user@ws.apache.org, 
[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: axis-user@ws.apache.org
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: 

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
 
module ref=rampart /
 
  parameter name=InflowSecurity
action
  itemsEncrypt/items
  passwordCallbackClasscom.nfn.wsclients.PWCBHandler/
   passwordCallbackClass
  decryptionPropFileclient.properties/decryptionPropFile
/action
  /parameter
 
parameter name=OutflowSecurity
action
  itemsEncrypt/items
  encryptionUserservice/encryptionUser
  encryptionPropFileclient.properties/encryptionPropFile
/action
  /parameter
 
 
   here is snippet from my services.xml
 
  module ref=rampart /
 
  parameter name=InflowSecurity
action
  itemsEncrypt/items
  passwordCallbackClasscom.nfn.ws.PWCBHandler/
   passwordCallbackClass
  decryptionPropFileservice.properties/decryptionPropFile
/action
  /parameter
 
parameter name=OutflowSecurity
action
  itemsEncrypt/items
  encryptionUserclient/encryptionUser
  encryptionPropFileservice.properties/encryptionPropFile
/action
  /parameter
 
 
 
 
 
 
 Martin
 Gainty
 [EMAIL PROTECTED]
From
 mail.comMartin Gainty
  [EMAIL PROTECTED]
 
To
  axis-user@ws.apache.org,
 
[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: axis-user@ws.apache.org
   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]
 
 
 
 
   

Re: ...Version?xsd throwing NullPointerException

2008-02-11 Thread jafaram
yes Axis2 1.3...but that URL working fine in Tomcat/..i am getting problem
only in webphere




   
   Deepal  
   Jayasinghe  
   [EMAIL PROTECTED]   
From 
   source.lk   Deepal Jayasinghe  
[EMAIL PROTECTED] 
To 
axis-user@ws.apache.org
cc 
   
   Subject 
   02/10/2008   Re: ...Version?xsd throwing
   11:38 PM NullPointerException   
   Please  
   respond to  
   [EMAIL PROTECTED]
   .apache.org 
   
   




Hi
is this happen with Axis2 1.3 release ? , if so please create a JIRA we
will looking to that

-Deepal
 I am running axis2 in websphere 5.1. And testing the Version service.
 Everythign looks good, except
 when i try http://localhost/Axis2Web/services/Version?xsd it throwing

 [2/8/08 13:41:17:789 EST] 75c8c978 WebGroup  E SRVE0026E: [Servlet
 Error]-[AxisServlet]: java.lang.NullPointerException
   at

org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:300)

   at
 org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)

   at

com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)

   at

com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)

   at

com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)

   at

com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)

   at

com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)

   at

com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)

   at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1018)

   at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:529)

   at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)

   at

com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
   at

com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)

   at

com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)

   at

com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)

   at

com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)

   at

com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)

   at

com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)

   at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)

 Any idea? Thanks in advance for your help


 -
 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]



...Version?xsd throwing NullPointerException

2008-02-08 Thread jafaram

I am running axis2 in websphere 5.1. And testing the Version service.
Everythign looks good, except
when i try http://localhost/Axis2Web/services/Version?xsd it throwing

[2/8/08 13:41:17:789 EST] 75c8c978 WebGroup  E SRVE0026E: [Servlet
Error]-[AxisServlet]: java.lang.NullPointerException
  at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:300)
  at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
  at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
  at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
  at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
  at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
  at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
  at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
  at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1018)
  at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:529)
  at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
  at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
  at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
  at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
  at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
  at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
  at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
  at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)

Any idea? Thanks in advance for your help


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