users@glassfish.java.net

Re: Glassfish with SmartCard

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Nov 2007 03:40:52 PST

Hi,
HSM contain key pair, server certificate and CA certificate. For each service glassfish crash exception :
java.security.ProviderException: Could not obtain session
at sun.security.pkcs11.SessionManager.getOpSession(SessionManager.java:130) at sun.security.pkcs11.Token.getOpSession(Token.java:241) at sun.security.pkcs11.P11Digest.engineReset(P11Digest.java:142) at sun.security.pkcs11.P11Digest.<init>(P11Digest.java:103) at sun.security.pkcs11.SunPKCS11$P11Service.newInstance0(SunPKCS11.java:886) at sun.security.pkcs11.SunPKCS11$P11Service.newInstance(SunPKCS11.java:875) at sun.security.jca.GetInstance.getInstance(GetInstance.java:220) at sun.security.jca.GetInstance.getInstance(GetInstance.java:147) at java.security.Security.getImpl(Security.java:659) at java.security.MessageDigest.getInstance(MessageDigest.java:129) at com.sun.net.ssl.internal.ssl.JsseJce.getMessageDigest(JsseJce.java:300) at com.sun.net.ssl.internal.ssl.JsseJce.getMD5(JsseJce.java:290) at com.sun.net.ssl.internal.ssl.Handshaker.init(Handshaker.java:134) at com.sun.net.ssl.internal.ssl.Handshaker.<init>(Handshaker.java:115) at com.sun.net.ssl.internal.ssl.ServerHandshaker.<init>(ServerHandshaker.java:86) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.initHandshaker(SSLSocketImpl.java:1047) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.doneConnect(SSLSocketImpl.java:577) at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:260) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:369) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341) at java.lang.Thread.run(Thread.java:619)

ideas?

Thanks
[Message sent by forum member 'chris_krosk' (chris_krosk)]

http://forums.java.net/jive/thread.jspa?messageID=243798