Von: Xinjun Chen [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 20. März 2006 04:37
An: [email protected]
Betreff: CryptoFactory: Cannot load properties: crypto.propertiesHi,When I write simple SecurityHandler use the StAX and WSS4J in Axis2, the exception appended occurs.I tried the following testings:1. Put the crypto.properties and keys/x509.PFX.MSFT are in the same folder as the TestSecurity.class. I still get the exception that the crypto.properties cannot be loaded.2. I tried to load the crypto.properties file from inside the TestSecurity.class, the property file can be loaded.3. I tried to put the path of the directory which contains crypto.properties file in the classpath (set the user Environment Variable in Windows), and I still failed to load the crypto.properties.3. I tried to put the path of the crypto.properties file in the classpath (set the user Environment Variable in Windows), and I failed to load the crypto.properties again.Could anyone point me a way out?PS: accidentally I posted this question in Axis maillist just now. Please forgive me if you have read the question in Axis-user maillist.Exception in thread "main" java.lang.ExceptionInInitializerError
at com.crimsonlogic.wsgate.core.ws.handler.test.TestSecurity.test(TestSecurity.java:132)
at com.crimsonlogic.wsgate.core.ws.handler.test.TestSecurity.main (TestSecurity.java:46)
Caused by: java.lang.RuntimeException: CryptoFactory: Cannot load properties: crypto.properties
at org.apache.ws.security.components.crypto.CryptoFactory.getProperties(CryptoFactory.java:150)
at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:96)
at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:54)
at com.crimsonlogic.wsgate.core.ws.handler.security2.SenderHandler .<clinit>(SenderHandler.java:34)
... 2 moreRegards,
Xinjun
Seems to be a classloader problem together with
Axis2?
Regards,
Werner
