On Dec 28, 5:02 pm, alex.agra...@gmail.com wrote: > I'm trying to create a simple Java RMI application with a custom > factory that uses JSS SSL classes. So I created a simple server and > client factories that create SSLServerSocket and SSLSocket instances > correspondingly. But when my client tries to "lookup" in the registry, > the following happens: > 1) the client factory is called and it creates an instance of > SSLSocket > 2) write() method is called on the socket > 3) then it's supposed to call socketWrite() native method - but for > some reason the native method lookup fails and I grab the > ClassNotFound exception > > Now, I'm pretty sure that my envrionment (LD_LIBRARY_PATH and > CLASSPATH) are set correctly and JSS is properly initialized - 'cause > see it listed in current providers and I have a sample code that > generates a key inside the NSS token, right before the RMI lookup > code, and it works just fine. > > May be it has something to do with the fact that the SSLSocket code is > called from RMI, and native calls can't be resolved from there? Any > idea on how this can be worked around?
Sorry - it was my mistake. Something is wrong with my server certificate - and as a result of that SSL handshake fails. For some reason the code fails to create SslSocketException - hence the problem that I've seen. But in any case JNI calls seem to work just fine... _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto