No class def found error at java.lang.NoClassDefFoundError: javax/crypto/SunJCE_b:

Exception – InitUtils.runProcessor(110) | Exception at line 122, column 68 of oxf:/o

ps/pfc/xforms-epilogue.xpl (reading processor output: name=’document’, id=’xhtml

-data’)

java.lang.NoClassDefFoundError: javax/crypto/SunJCE_b

        at javax.crypto.Cipher.getInstance(DashoA12275)

        at org.orbeon.oxf.util.SecureUtils.encrypt(SecureUtils.java:135)

        at org.orbeon.oxf.xforms.XFormsUtils.encodeBytes(XFormsUtils.java:184)

        at org.orbeon.oxf.xforms.XFormsUtils.encodeXML(XFormsUtils.java:157)

        at org.orbeon.oxf.xforms.XFormsStaticState.getEncodedStaticState(XFormsS

taticState.java:220)

        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDo

cument(XFormsToXHTML.java:328)

        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$200(XFormsToXHTM

L.java:51)

The solution for this problem was quit tricky and taken out a hell out of us. While trying to up WSI along with ODE and Axis2 on WL, whenever we start WSI before rest of the services, it was working fine. But when we started or used WSI after other two services, we were getting this exception. Thanks to efforts of Sri, that in the end we come through to this.

Solution: Put bcprov-jdk15-143.jar in bea\jdk150_12\jre\lib\ext folder. This jar can be downloaded from http://www.bouncycastle.org/latest_releases.html. Also put the line ‘security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider’ in bea\jdk150_12\jre\lib\security\java.security. Make sure this line is at number two only. Change the sequence of others.

Important Links:

1) http://mail-archives.apache.org/mod_mbox/ws-axis-user/200606.mbox/<OF2E2E121C.A4B12874-ON85257184.00457BAE-85257184.00461B2C@mro.com>

2) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6567947

3) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6647104

Advertisements

Leave a comment

Filed under WebLogic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s