Hi, I've asked this question on the wss4j and rampart lists. No replies, so I'll take my chances here...
I've got a web service that uses secret key encryption. It runs fine on tomcat, but when I try running it on websphere I get this error when wss4j attempts to encrypt the message: java.lang.ClassCastException: com.ibm.crypto.provider.AESCipher at javax.crypto.Cipher.getInstance(Unknown Source) at org.apache.xml.security.encryption.XMLCipher.getInstance(Unknown Source) ... Tomcat's using the Sun crypto classes in jce.jar and sun_jceprovider.jar, located in the java jre directories, whereas WebSphere comes with its own java libraries: ibmjcefw.jar and ibmjceprovider.jar. The AESCipher class is found in the latter. I tried to work around this by adding the Sun libraries to my project, but it seems WebSphere loads its own java classes before the application's, even if the class loader PARENT_LAST setting is used. Has anyone else had this problem? Many thanks, md --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
