Hi Luca,

to solve your problem you have to copy crypto.properties file to classes directories of axis and/or client or somewhere else on java classpath.

Andreas Heizenreder

Luca Risello schrieb:
Good Morning, I'm a student and I'm trying to use wss4j features to secure SOAP messages. The Problem is that I follow step by step the tutorial http://ws.apache.org/wss4j/package.html but there are some problems about the XML Encyption and D.Signature. I Follow the tutorial but when i run the client with this config file: <deployment xmlns="http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
<parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
<parameter name="action" value="Signature Encrypt"/>
<parameter name="signaturePropFile" value="crypto.properties" />
</handler>
</requestFlow>
</globalConfiguration >
</deployment>
There is this excepion: AxisFault faultCode: {_http://schemas.xmlsoap.org/soap/envelope/}Server.userException_
faultSubcode:
faultString: _java.lang.RuntimeException_: CryptoFactory: Cannot load properties: crypto.properties
faultActor:
faultNode:
faultDetail:
{_http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException_: CryptoFactory: Cannot load properties: crypto.properties at org.apache.ws.security.components.crypto.CryptoFactory.getProperties(_CryptoFactory.java:185_) at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:110_) at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(_WSHandler.java:337_) at org.apache.ws.security.handler.WSHandler.doSenderAction(_WSHandler.java:123_) at org.apache.ws.axis.security.WSDoAllSender.invoke(_WSDoAllSender.java:170_) at org.apache.axis.strategies.InvocationStrategy.visit(_InvocationStrategy.java:32_)
at org.apache.axis.SimpleChain.doVisiting(_SimpleChain.java:118_)
at org.apache.axis.SimpleChain.invoke(_SimpleChain.java:83_)
at org.apache.axis.client.AxisClient.invoke(_AxisClient.java:127_)
at org.apache.axis.client.Call.invokeEngine(_Call.java:2784_)
at org.apache.axis.client.Call.invoke(_Call.java:2767_)
at org.apache.axis.client.Call.invoke(_Call.java:2443_)
at org.apache.axis.client.Call.invoke(_Call.java:2366_)
at org.apache.axis.client.Call.invoke(_Call.java:1812_)
at prova2.client.Saluto2SoapBindingStub.saluto(_Saluto2SoapBindingStub.java:106_)
at prova2.client.ClientSaluto.main(_ClientSaluto.java:49_)
{http://xml.apache.org/axis/}hostname:Chianti
_ _
_java.lang.RuntimeException_: CryptoFactory: Cannot load properties: crypto.properties
at org.apache.axis.AxisFault.makeFault(_AxisFault.java:101_)
at org.apache.axis.client.AxisClient.invoke(_AxisClient.java:216_)
at org.apache.axis.client.Call.invokeEngine(_Call.java:2784_)
at org.apache.axis.client.Call.invoke(_Call.java:2767_)
at org.apache.axis.client.Call.invoke(_Call.java:2443_)
at org.apache.axis.client.Call.invoke(_Call.java:2366_)
at org.apache.axis.client.Call.invoke(_Call.java:1812_)
at prova2.client.Saluto2SoapBindingStub.saluto(_Saluto2SoapBindingStub.java:106_)
at prova2.client.ClientSaluto.main(_ClientSaluto.java:49_)
Caused by: _java.lang.RuntimeException_: CryptoFactory: Cannot load properties: crypto.properties at org.apache.ws.security.components.crypto.CryptoFactory.getProperties(_CryptoFactory.java:185_) at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:110_) at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(_WSHandler.java:337_) at org.apache.ws.security.handler.WSHandler.doSenderAction(_WSHandler.java:123_) at org.apache.ws.axis.security.WSDoAllSender.invoke(_WSDoAllSender.java:170_) at org.apache.axis.strategies.InvocationStrategy.visit(_InvocationStrategy.java:32_)
at org.apache.axis.SimpleChain.doVisiting(_SimpleChain.java:118_)
at org.apache.axis.SimpleChain.invoke(_SimpleChain.java:83_)
at org.apache.axis.client.AxisClient.invoke(_AxisClient.java:127_)
... 7 more
I don't understand how to use the certificate and how to configure the client...somebody can help me please?

__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi
http://mail.yahoo.it



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

  • problem Luca Risello
    • Re: problem Andreas Heizenreder

Reply via email to