-
1. Re: Receive NoClassDefFoundError:javax.crypto.b error on AIX
jgoodyea Dec 12, 2008 8:51 AM (in response to aishwaryabk)Hi,
Considering that your seeing crypto errors I would first review your JDK's security settings ($JAVA_HOME/jre/lib/security/java.security). The IBM JDK uses a different set of providers in comparison to the reference Sun SDK. You may want to try out the below ordering in your security providers section:
security.provider.1=com.ibm.crypto.provider.IBMJCE
security.provider.2=com.ibm.jsse.IBMJSSEProvider
security.provider.3=com.ibm.jsse2.IBMJSSEProvider2
security.provider.4=com.ibm.security.jgss.IBMJGSSProvider
security.provider.5=com.ibm.security.cert.IBMCertPath
security.provider.6=com.ibm.security.sasl.IBMSASL
The first entry controls which crypto provider IBM Java will use, please note that you may have to go on to the IBM website to download the IBM unlimited strength jce if you application requires it.
If you do not want to alter your jvm's java.security file then you could alternatively pass in "-Djava.security.properties==${path.to.ibm.jdk.security}" to your application (where ${path.to.ibm.jdk.security} is pointed to a test configuration else where on your system).
Cheers,
Jamie