-
1. Re: JBoss 7 and SunPKCS11
alesj Nov 11, 2011 8:36 AM (in response to chapirous)You need to depend on sun.com module -- vendor specific modules are not exposed by default to apps.
See how to add module dependencies in AS7 docs.
-
2. Re: JBoss 7 and SunPKCS11
chapirous Nov 11, 2011 11:52 AM (in response to alesj)I can't find a module named sun.com, but there is one named sun.jdk
I added a line in MANIFEST.MF:
Dependencies: sun.jdk
But the same error occurs.
The xml that describes module sun.jdk has no entry for: <path name="sun/security/pkcs11"/>
I added this to the set, but no sucess.
Is there anything else to do?
thanks for help.
-
3. Re: JBoss 7 and SunPKCS11
alesj Nov 11, 2011 5:30 PM (in response to chapirous)What about if you also add it into standalone.conf, same way as byteman package is defined in there?
-
4. Re: JBoss 7 and SunPKCS11
alesj Nov 11, 2011 5:33 PM (in response to alesj)What about if you also add it into standalone.conf, same way as byteman package is defined in there?
Since the way this works is:
* system module scans pre-defined "default" things
* you can extend these default things with system property (see the one against byteman pckg in standalone.conf)
* then sun.jdk only exports parts of system packages
* if the package wasn't included in the first place, it cannot be exported, right? :-)
* hence add it as mentioned in the previous, now quoted, post
-
5. Re: JBoss 7 and SunPKCS11
chapirous Nov 14, 2011 7:43 AM (in response to alesj)Thanks, i'll try this.
My solution was:
I created a module named sun.ext and put in all ext jars.
So i tried start the application and a new error occurred, classNotFound for:
sun.security.rsa.SunRsaSign. This class belongs to the core of java.
So i changed the export attribute of sun.jdk module to true. And finally
worked.