users@glassfish.java.net

SunPKCS11 not found on GF 2.1 with 64bit JVM

From: p_repetti <pierangelo.repetti_at_gmail.com>
Date: Wed, 26 May 2010 03:46:06 -0700 (PDT)

Hello

I have a web application that digitally signs files using a smart card
device. The application runs in the following environment:

- JVM 1.6u20 64-bit
- Sun Java System Application Server 9.1_02 (build b04-fcs)
- Windows Server 2003 x64 SP2
- Intel Xeon CPU

When I open the smart card device from code I get the following exception:

java.lang.ClassNotFoundException: sun.security.pkcs11.SunPKCS11
java.lang.RuntimeException: java.lang.ClassNotFoundException:
sun.security.pkcs11.SunPKCS11
...
Caused by: java.lang.ClassNotFoundException: sun.security.pkcs11.SunPKCS11
    at
com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:738)
    at
com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

I installed a 32-bit JVM, linking the application server to it and
everything runs fine.

What's wrong with 64bit ?
-- 
View this message in context: http://old.nabble.com/SunPKCS11-not-found-on-GF-2.1-with-64bit-JVM-tp28679048p28679048.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.