users@glassfish.java.net

GlassFish won't start after adding cluster support -- SunPKCS11

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 Jan 2008 07:51:11 PST

I had v2 ur1 running standalone on AMD 64-bit Red Hat
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_12-b04, mixed mode)

After using the Admin Console to "Add Cluster Support..." GlassFish fails to start with the following error --

[#|2008-01-29T17:54:07.772-0500|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=ba6d61cc-1d30-4751-b6ec-ade409a9cf8f;|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.NoClassDefFoundError: sun/security/pkcs11/SunPKCS11
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        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)
        ... 5 more
[Message sent by forum member 'bobtreacy' (bobtreacy)]

http://forums.java.net/jive/thread.jspa?messageID=256594