[8]: help on PKCS#11 tests build

Francis ANDRE francis.andre.kampbell at orange.fr
Fri Nov 22 04:49:19 UTC 2013


Hi

Running TestInterop from the PKCS#11 test suite on a WXP/Cygwin/VS2010 platform, 
one gets this exception

Caused by: java.io.IOException: Accès 
refusé.Z:\JDK\jdk8\jdk\test\sun\security\pkcs11\nss\lib\windows-i586\softokn3.dll

This exception appears because all dlls in the directory 
jdk8\jdk\test\sun\security\pkcs11\nss\lib\windows-i586\ are not executable. I 
looked at the various makefile for fixing this issue but did not found a 
relevant makefile.

In which makefile(s) those dlls like softtokn3.dll are build/copied ?

Francis

Beginning test run TestInterop...
Exception in thread "main" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
         at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
         at PKCS11Test.getSunPKCS11(PKCS11Test.java:70)
         at PKCS11Test.testNSS(PKCS11Test.java:356)
         at PKCS11Test.main(PKCS11Test.java:89)
         at TestInterop.main(TestInterop.java:141)
Caused by: java.security.ProviderException: Initialization failed
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:376)
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
         ... 8 more
Caused by: java.io.IOException: Accès refusé.
Z:\JDK\jdk8\jdk\test\sun\security\pkcs11\nss\lib\windows-i586\softokn3.dll
         at sun.security.pkcs11.wrapper.PKCS11.connect(Native Method)
         at sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:138)
         at sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:151)
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:313)
         ... 9 more




More information about the build-dev mailing list