I have an EJB application running in WebSphere that uses JSS 3.1 and NSS
on Linux to perform certificate/key creation and I am getting a problem
about every fourth or fifth time I try to initialize NSS.  The exception
I get is below:

java.lang.SecurityException: Unable to initialize security library
        at org.mozilla.jss.CryptoManager.initializeAllNative(Native
Method)
        at
org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:763)

I shut the WAS appserver down completely and start it up again and run
the app and I am still unable to initialize NSS.  So I walk away for
about a half an hour, then magically it all starts working again.  So I
continue my cycle of developing on the app about 4 or 5 times until it
breaks again...

How would I figure this out?  Is the VM somehow holding on the the NSS
.so libraries or something?  Is there a timeout in NSS?  Is there some
debug info I can use to help narrow this down.

I obviously can't replace a commercial system with Mozilla NSS/JSS if I
can only restart an app 5 times before I can't do any crypto again for
half an hour.  I really really want this to work so if anyone has any
suggestions to help me debug this I would be very appreciative.

Thanks,
Jasen


Reply via email to