Hi ruchith
thank you very much for helping me.
i don't understand what means the client's classpath? does it mean that i add the classpath after -Daxis.ClientConfigFile?
before do it, i use command like this
java -Daxis.ClientConfigFile=/users/........./client-deploy.wsdd -classpath ........
after add client's classpath, i must do like this?
java -Daxis.ClientConfigFile=/users/........./client-deploy.wsdd:/users/...../crypto.properties -classpath ........
On 4/15/06, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
Hi Ying,
crypto.properties file is the file that is used to configure WSS4J to
use a certain source ( e.g. PKCS12 keystore) to get the certificates
and the private keys. The name of this file can be any foo.properties
as longs as you refer to it correctly in your configurations.
Try using this file: [1]
Also the x509.PFX.MSFT file it refers to is available here: [2]
To add this file to the client's classpath you can try copying this[1]
file to the same place where you run your client program. Also you
make sure that you modify your crypto.properties file to set the
correct path to the x509.PFX.MSFT file.
HTH
Thanks,
Ruchith
[1] https://svn.apache.org/repos/asf/webservices/wss4j/trunk/src/crypto.properties
[2] https://svn.apache.org/repos/asf/webservices/wss4j/trunk/keys/x509.PFX.MSFT
p.s. please ask questions in the mailing list so others can benefit
from the answers and more ppl can provide you faster/better answers as
well :-)
On 4/14/06, zhou ying <[EMAIL PROTECTED]> wrote:
>
>
> hi ruchith
>
> i don't know how to add client's classpath. i changed
> <parametre
> ...............,value="/users/yzhou/crypto.properrties"> in
> the client-deploy. but it cannot find this file neither
> so what do you think about it?
> thx
>
> ying
>
>
> 2006/4/14, Ruchith Fernando <[EMAIL PROTECTED]>:
> > Hi Ying,
> >
> > Do you have the crypto.properties file in your client's classpath ?
> >
> > Thanks,
> > Ruchith
> >
> > On 4/14/06, zhou ying < [EMAIL PROTECTED]> wrote:
> > > hi>
> > > i hava exception when i want to encrypt messages.
> > > i use the file crypto.properties in the wss4j. I follow the apache
> > > developmment exemple.
> > > http://ws.apache.org/wss4j/package.html
> > > but i have some exception when i execute the client
> > > here is the exception
> > > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> > > Server.userException
> > > faultSubcode:
> > > faultString: java.lang.RuntionException: CryptoFactory: Cannot load
> > > properties: crypto.properties
> > > faultActor:
> > > faultNode:
> > > faultDetail:
> > > { http://xml.apache.org/axis/ } stackTrace:
> java.lang.RuntimeException:
> > > CryproFactory: Cannot load properties: crypro.properties
> > > at
> > >
> org.apache.ws.security.components.crypro.CryptoFactory.getProperties (CryptoFactory.java
> :105)
> > > at
> > >
> org.apache.ws.security.components.crypro.CryptoFactory.getInstance(CryptoFactory.java:96)
> > > at
> > >
> org.apahce.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java
> :427)
> > > at
> > > org.apahce.ws.security.handler.WSHandler.doSenderAction
> > > ( WSHandler.java:127)
> > > at
> > >
> org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:161)
> > > at
> > >
> org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32)
> > > ...
> > > ...
> > > .....
> > >
> > > Could someone can help me? i tried to changer le path for file
> > > crypto.properties. i have the same problem
> > > thank you for giving some advice
> > > ying
> > >
> >
>
>
