Brian, in WSS4J we load the properties files as a resource using a classloader. Thus the property file should be in some directory that's contained in the classpath.
Several classloaders are tries, e.g. the classes classloader, then Thread context loader, and the system classloader as the last one. Regards, Werner > -----Ursprüngliche Nachricht----- > Von: Brian Shields [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 3. Februar 2006 16:09 > An: [email protected] > Betreff: Re: toruble with crypto.properties file > > Thanks Ruchith, > Thats all well and good for the service side of things, and > encrypting > outgoing or response messages. How do i load the > crypto.properties file > in a client configuration. Currently i am creating a context specific > ServiceClient using the > createConfigurationContextFromFileSystem. There > is no service archive to put the crypto.properties into! > Brian. > > Ruchith Fernando wrote: > > >Hi Brian, > > > >We have tested Axis2+security (WSS4J) with configurations on a per > >service basis. And in those instances you should have the > >crypto.properties file in the service archive (.aar file). > > > >This sounds like a resource loading problem with Axis2. Please file a > >bug in JIRA. > > > >Thanks, > >Ruchith > > > >On 2/3/06, Brian Shields > <[EMAIL PROTECTED]> wrote: > > > > > >>Hello, > >>I am running wss4j with axis2 within a tomcat 5 server. I > am trying to > >>provide some initial simple encryption between the client and the > >>server. I have provided the appropriate OutflowSecurity > parameter in the > >>axis2.xml file but when invoking the service i get the > following error... > >> > >>java.lang.RuntimeException: CryptoFactory: Cannot load properties: > >>crypto.properties > >> at > >>org.apache.ws.security.components.crypto.CryptoFactory.getPr > operties(CryptoFactory.java:185) > >> at > >>org.apache.ws.security.components.crypto.CryptoFactory.getIn > stance(CryptoFactory.java:110) > >> at > >>org.apache.ws.security.handler.WSHandler.loadEncryptionCrypt > o(WSHandler.java:356) > >> at > >>org.apache.ws.security.handler.WSHandler.doSenderAction(WSHa > ndler.java:134) > >> at > >>org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender > .java:172) > >> at org.apache.axis2.engine.Phase.invoke(Phase.java:376) > >> at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351) > >> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) > >> at > >>org.apache.axis2.description.OutInAxisOperationClient.send(O > utInAxisOperation.java:317) > >> at > >>org.apache.axis2.description.OutInAxisOperationClient.execut > e(OutInAxisOperation.java:267) > >> at > >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceCli > ent.java:393) > >> at > >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceCli > ent.java:326) > >> at > com.iwise.security.client.Client.echoBlockingClient(Client.java:61) > >> at com.iwise.security.client.Client.<init>(Client.java:31) > >> at com.iwise.security.client.Client.main(Client.java:202) > >> > >>The error is not very clear...can CryptoFactory not see the > >>crypto.properties file? I have it in the > axis2/WEB-INF/classes folder, > >>but have tried putting it just about everywhere and am > still getting the > >>same error. > >>Any ideas? > >>Brian. > >> > >>-- > >>Brian Shields BSc. MSc., > >>PhD Candidate, > >>Department of Information Technology, > >>National University of Ireland, > >>Galway, > >>Ireland. > >> > >>------------------------------------------------------------ > --------- > >>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] > > > > > > > > > > -- > Brian Shields BSc. MSc., > PhD Candidate, > Department of Information Technology, > National University of Ireland, > Galway, > Ireland. > > --------------------------------------------------------------------- > 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]
