dev@glassfish.java.net

AS 9.1u1 EE on Windows: javax.security.ProviderException after restarting domain

From: Charles Wesley <Charles.Wesley_at_Sun.COM>
Date: Wed, 05 Mar 2008 13:57:44 -0500

Hello,

I have installed AS 9.1 update 1 EE on Windows Server 2003 R1. I
created a node agent (newnodeagent) and a new application server
instance (newserver). I enabled SSL on the newserver instance using the
bundled certutil (C:\Sun\AppServer\lib\certutil.exe). I restarted
newserver and I was able to access the SSL enabled port. I needed to
add some entries to server.policy needed for FAM 8.0 to configure
successfully. After adding the entries I restarted the domain. However
when trying to start the domain, I received the exception shown below
... Does anyone have any clues on what might be wrong? I will try to
increase the logging level to see if that yields any additional information.

Thanks,

Charles

[#|2008-03-05T10:36:10.765-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting
Sun Java System Application Server 9.1_01 (build b09d-fcs) ...|#]

[#|2008-03-05T10:36:11.187-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=11;_ThreadName=pool-1-thread-2;com.sun.enterprise.interceptor.DynamicInterceptor;|MBeanServer
started: com.sun.enterprise.interceptor.DynamicInterceptor|#]

[#|2008-03-05T10:36:12.343-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java
HotSpot(TM) Server VM;1.5.0_14;Sun Microsystems Inc.;|CORE5076: Using
[Java HotSpot(TM) Server VM, Version 1.5.0_14] from
[Sun Microsystems Inc.]|#]

[#|2008-03-05T10:36:12.531-0800|INFO|sun-appserver9.1|javax.enterprise.resource.jms|_ThreadID=12;_ThreadName=pool-1-thread-8;|Using
MQ RA for Broker lifecycle control|#]

[#|2008-03-05T10:36:12.546-0800|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=13;_ThreadName=pool-1-thread-5;|SEC1001:
Security Manager
is ON.|#]

[#|2008-03-05T10:36:15.312-0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|C:/sun/AppServer/domains/domain1/config/.__com_sun_appserv_pid|#]

[#|2008-03-05T10:36:16.343-0800|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:SunoneInterceptor
is now enabled|#]

[#|2008-03-05T10:36:16.796-0800|SEVERE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;_RequestID=19651930-ee34-49d4-b59e-e6dff4995c80;|SEC8001:
Exception in initializing SunPKCS11.
java.security.ProviderException: Library ./nssckbi.dll does not exist
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:109)
        at
com.sun.enterprise.ee.security.EESecuritySupportImpl.loadSunPKCS11Stores(EESecuritySupportImpl.java:246)
        at
com.sun.enterprise.ee.security.EESecuritySupportImpl.initNSS(EESecuritySupportImpl.java:153)
        at
com.sun.enterprise.ee.security.EESecuritySupportImpl.<init>(EESecuritySupportImpl.java:95)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.invoke(PluggableFeatureFactoryBaseImpl.java:84)
        at $Proxy0.getSecuritySupport(Unknown Source)
        at
com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:365)
        at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:102)
        at
com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:101)
        at
com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
|#]

[#|2008-03-05T10:36:16.812-0800|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=19651930-ee34-49d4-b59e-e6dff4995c80;|java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.lang.ExceptionInInitializerError
        at
com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:101)
        at
com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        ... 5 more
Caused by: java.lang.IllegalStateException: Library ./nssckbi.dll does
not exist
        at
com.sun.enterprise.ee.security.EESecuritySupportImpl.initNSS(EESecuritySupportImpl.java:161)
        at
com.sun.enterprise.ee.security.EESecuritySupportImpl.<init>(EESecuritySupportImpl.java:95)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.invoke(PluggableFeatureFactoryBaseImpl.java:84)
        at $Proxy0.getSecuritySupport(Unknown Source)
        at
com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:365)
        at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:102)
        ... 10 more
|#]

[#|2008-03-05T10:36:16.828-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=14;_ThreadName=Thread-1;|sending
notification to server...server|#]