users@glassfish.java.net

Re: SunPKCS11 not found on GF 2.1 with 64bit JVM

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Thu, 27 May 2010 09:56:34 -0700

The corresponding classes may not be in 64 bit JDK in Window platform.
As a temporary workaround, you may like to use 32 bit in Window in this
moment.
Thanks.
Shing Wai Chan

On 5/26/10 3:46 AM, p_repetti wrote:
> 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 ?
>