Hi all,
I am just starting with WSS4J and I am trying to setup a Signature sample. My
problem is: if I try to set:
<parameter name="signaturePropFile" value="mycrypto.properties" />
Then I get:
...
[java] AxisFault
[java] faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[java] faultSubcode:
[java] faultString: java.lang.RuntimeException: CryptoFactory: Cannot load
properties: mycrypto.properties
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException:
CryptoFactory: Cannot load properties: mycrypto.properties
...
If otherwise I try to set:
<parameter name="signaturePropFile" value="crypto.properties" />
I get a different error:
[java] AxisFault
[java] faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
[java] faultSubcode:
[java] faultString: java.lang.RuntimeException:
org.apache.ws.security.components.crypto.Merlin cannot create instance
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException:
org.apache.ws.security.components.crypto.Merlin cannot create instance
...
[java] at
samples.stock.client.StockWss01SoapBindingStub.getQuote(StockWss01SoapBindingStub.java:105)
[java] at app.StockQuoteMain.main(StockQuoteMain.java:35)
[java] Caused by:
org.apache.ws.security.components.crypto.CredentialException: Proxy file
(keys/x509.PFX.MSFT) not found.[]
[java] at
org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:108)
[java] ... 19 more
I am very confused abouth this. Where I have to put the crypto.properties file?
And then, where I have to put the keystore relatively to Tomcat's classpath?
Many thanks in advance.
___________________________________
Nuovo Yahoo! Messenger: E' molto pi� divertente: Audibles, Avatar, Webcam,
Giochi, Rubrica� Scaricalo ora!
http://it.messenger.yahoo.it