Version 1

    Hello,

    I'm writing an EJB3 app that uses a Safenet Luna HSM hardware appliance (currently developing under Windows x64 + JBoss 7.1.1 + Eclipse 4.4.2 but production will be Linux).

    I have successfully configured the JDK according to the docs: I added LunaProvider.jar in the JDK ext directory, added LunaAPI.dll to a dir in the PATH, and modified the JDK java.security file to add the Luna provider.

    I can run the Safenet demo Java programs from command line, so the JDK is correctly configured, but I'm not able to run them as EJBs in JBoss: I get the error:

    java.lang.ClassNotFoundException: com.safenetinc.luna.provider.LunaProvider

    I also tried adding the jar to the Eclipse project, and deploy it to the EAR: in this case JBoss finds the classes but then I get the error:

    java.security.NoSuchAlgorithmException: no such algorithm: LunaRNG for provider LunaProvider

    What should I do to make JBoss see the Safenet classes?

    Thanks.