Hi Nick, Thanks for your suggestion. It actually resolve my issue.
Sincerely, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [EMAIL PROTECTED] Nicholas L Gallardo/Austin/[EMAIL PROTECTED] 11/27/2006 09:50 AM Please respond to [email protected] To [email protected] cc Subject Re: [AXIS2] Security module build failure Hi Ming, I believe you need to add the following line to your $JAVA_HOME/jre/lib/java.security file: security.provider.#=org.bouncycastle.jce.provider.BouncyCastleProvider where # is the next one in whatever sequence you have in that config file. Regards, Nicholas Gallardo WebSphere - WebServices Development [EMAIL PROTECTED] Phone: 512-838-1182 Building: 901 / 5G-016 Ming Cheung/Austin/[EMAIL PROTECTED] 11/27/2006 01:09 AM Please respond to [email protected] To [email protected] cc Subject [AXIS2] Security module build failure Could somone please tell me how to fix/workaround with the following failure? [copy] Copying 1 file to C:\eclipse_workspace\axis_os_1122\axis2\modules\security\target\temp-mar\META-INF\services [jar] Building jar: C:\eclipse_workspace\axis_os_1122\axis2\modules\security\target\rampart-1.2-SNAPSHOT.mar [copy] Copying 1 file to C:\eclipse_workspace\axis_os_1122\axis2\modules\security\target\modules [copy] Copying 1 file to C:\Documents and Settings\mingcheu\.maven\repository\org.apache.axis2\mars [delete] Deleting 55 files from C:\eclipse_workspace\axis_os_1122\axis2\modules\security\target\temp-mar [delete] Deleted 15 directories from C:\eclipse_workspace\axis_os_1122\axis2\modules\security\target\temp-mar [junit] Running org.apache.rampart.AsymmetricBindingBuilderTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.704 sec BUILD FAILED File...... C:\Documents and Settings\mingcheu\.maven\cache\maven-multiproject-plugin-1.5-SNAPSHOT\plugin.jelly Element... maven:reactor Line...... 227 Column.... 64 Unable to obtain goal [multiproject:install-callback] -- C:\Documents and Settings\mingcheu\.maven\cache\maven-test-plugin-1.8.1-SNAPSHOT\plugin.jelly:155:49: <junit> Test org.apache.rampart.AsymmetricBindingBuilder Test failed Total time: 9 minutes 54 seconds Finished at: Mon Nov 27 00:46:41 CST 2006 *****The actual failure found with the log file is the following: Testsuite: org.apache.rampart.AsymmetricBindingBuilderTest Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.704 sec Testcase: testAsymmBindingTripleDesRSA15(org.apache.rampart.AsymmetricBindingBuilderTest): Caused an ERROR null java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:195) at javax.crypto.KeyGenerator.a(Unknown Source) at javax.crypto.KeyGenerator.<init>(Unknown Source) at javax.crypto.KeyGenerator.getInstance(Unknown Source) at org.apache.ws.security.message.WSSecEncrypt.getKeyGenerator(WSSecEncrypt.java:557) at org.apache.ws.security.message.WSSecEncrypt.prepare(WSSecEncrypt.java:196) at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:392) at org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:85) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:129) at org.apache.rampart.AsymmetricBindingBuilderTest.testAsymmBindingTripleDesRSA15(AsymmetricBindingBuilderTest.java:206) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.b.<clinit>(Unknown Source) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) ... 23 more Caused by: java.security.PrivilegedActionException: java.security.InvalidKeyException: Public key presented not for certificate signature at java.security.AccessController.doPrivileged(AccessController.java:245) ... 26 more Caused by: java.security.InvalidKeyException: Public key presented not for certificate signature at org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown Source) at javax.crypto.b.a(Unknown Source) at javax.crypto.b.access$500(Unknown Source) at javax.crypto.b$0.run(Unknown Source) at java.security.AccessController.doPrivileged(AccessController.java:241) ... 26 more Sincerely, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [EMAIL PROTECTED]
