BusinessObjects Board

Could not initialize class com.businessobjects.bcm.BCM

Hi!

We have working sdk-application in boxi3.1 and now we want to upgrade it to work with boxi4.1.

We have updated the jar-files, but still it gives an error:

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.businessobjects.bcm.BCM

We have this necessary bcm.jar in our war-package, but still it doesn’t initialize the BCM class.
I have tried to put the jar-file also in tomcat/lib, but it doesn’t help. We have tomcat 6!

Error comes in login:

sessionManager.logon(userName, password, serverName, "secEnterprise");

Does anyone have any idea on this?


tuomiasm (BOB member since 2013-06-05)

Make sure you have the correct dependencies at run time. I ran into this same error when missing the cryptojFIPS.jar. Check the Developer Guides and verify everything needed is available at run time.


lrbuermann (BOB member since 2013-09-05)

FOUND IT!!!
My application is written in Eclipse, and launching from within Eclipse everything worked correctly. When exported as a runnable JAR, the above error popped up.
Solution: export your runnable JAR choosing the following option:

Copy required libraries into a sub-folder next to the generated JAR

Revealing message within the error stack has been the following:

Caused by: com.rsa.crypto.CryptoException: java.lang.SecurityException: java.lang.SecurityException: Toolkit not encapsulated by a jar.


CLS69 :it: (BOB member since 2009-06-11)