1 Reply Latest reply on Dec 12, 2008 8:51 AM by jgoodyea

    Receive NoClassDefFoundError:javax.crypto.b error on AIX

    aishwaryabk

      Hi,

       

      We runa fuse service which workds fine on sun java. we have some encryption and decryption usage within the project.

      However when run on AIX we get NoClassDefFoundError:javax.crypto.b error when we attempt to do the encryption.

      Any pointers to resolve this would help

        • 1. Re: Receive NoClassDefFoundError:javax.crypto.b error on AIX
          jgoodyea

          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

          http://icodebythesea.blogspot.com/