I wrote a Java agent in Lotus Notes 8.5 to reset a token PIN using IAIKPKCS11wrapper. When the agent boots for the first time, it worked well. But after I closed and restarted the agent, this did not work. Checking console output I found the following error:
Exception in thread "AgentThread: JavaAgent" java.lang.UnsatisfiedLinkError: pkcs11wrapper (the library is already loaded in another ClassLoader)
I was looking for a group, but the closest I could find is that it is not possible to unload the DLL, but I still don't know how to handle it.
Can someone point me to a solution?
source share