Running JBoss EAP with PKC11 on Windows in 64 bit throws: java.lang.ClassNotFoundException: sun.security.pkcs11.wrapper.PKCS11

Solution In Progress - Updated -

Issue

Having added the sun/security/pkcs11/wrapper packages to $JBOSS_HOME/modules/system/layers/base/sun/jdk/main/module.xml , at runtime, the following exception is being thrown:

Caused by: java.lang.ClassNotFoundException: sun.security.pkcs11.wrapper.PKCS11 from [Module "deployment.test.ear:main" from Service Module Loader]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]
        at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_55]
        at java.lang.Class.forName(Class.java:190) [rt.jar:1.7.0_55]

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x
  • Windows in 64 bit mode
  • Oracle Java
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.