I think the 64bit JDK 5 does not have those PKCS11 classes.
But I remember it has it in JDK 6.
Thanks.
Shing Wai Chan
Daniel Cavalcanti wrote:
> Hello,
> I'm trying to setup GlassFish on a 64-bit machine running CentOS 5
> Linux. And I'm getting errors.
> I installed GlassFish, removed the default domain1, and created
> another domain specific to the application we want to write.
>
> asadmin create-domain --user admin --portbase 11000 --savelogin=true
> --savemasterpassword=true collector-domain
> Please enter the admin password>
> Please enter the admin password again>
> Please enter the master password [Enter to accept the default]:>
> Please enter the master password again [Enter to accept the default]:>
> Using port 11048 for Admin.
> Using port 11080 for HTTP Instance.
> Using port 11076 for JMS.
> Using port 11037 for IIOP.
> Using port 11081 for HTTP_SSL.
> Using port 11038 for IIOP_SSL.
> Using port 11039 for IIOP_MUTUALAUTH.
> Using port 11086 for JMX_ADMIN.
> Domain being created with profile:cluster, as specified by variable
> AS_ADMIN_PROFILE in configuration file.
> Security Store used should be: JKS
> Domain collector-domain created.
> Admin login information for host [localhost] and port [11048] is being
> overwritten with credentials provided. This is because the --savelogin
> option was used during create-domain command.
> Login information relevant to admin user name [admin] for this domain
> [collector-domain] stored at [/root/.asadminpass] successfully.
> Make sure that this file remains protected. Information stored in this
> file will be used by asadmin commands to manage this domain.
>
> So far so good. However, when I try to start the domain, the CLI
> command fails:
> asadmin start-domain collector-domain
> Starting Domain collector-domain, please wait.
> Log redirected to
> /root/application-server/glassfish-b43/domains/collector-domain/logs/server.log.
>
> Redirecting output to
> /root/application-server/glassfish-b43/domains/collector-domain/logs/server.log
> Domain collector-domain failed to startup. Please check the server log
> for more details.
> CLI156 Could not start the domain collector-domain.
>
> I attached the domain server.log file, but basically, the exception
> that it shows in there follows:
> [#|2007-04-23T13:06:57.065-0400|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=ab4c97d8-1748-4303-a284-aa7a3dccb69f;|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:274)
> 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
> :71)
> at $Proxy0.getSecuritySupport(Unknown Source)
> at
> com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:352)
> at com.sun.enterprise.security.SSLUtils.<clinit>(
> SSLUtils.java:89)
> at
> com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:88)
> at
> com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:237)
>
> at
> com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:85)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:371)
> at com.sun.enterprise.server.PEMain.main (PEMain.java:308)
> ... 5 more
> |#]
>
> Here is my java installation:
> java -version
> java version "1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_11-b03, mixed mode)
>
> and
> echo $JAVA_HOME
> /usr/java/jdk1.5.0_11
>
> There is also another log file generated in the same log directory:
> jvm.log
> I also attached it. I don't know what it is.
>
> Any ideas on how to fix this?
>
> thanks,
> Daniel.
> ------------------------------------------------------------------------
>
> Apr 23, 2007 1:06:52 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
> INFO:
> /usr/java/jdk1.5.0_11/jre/../bin/java
> -client
> -XX:+UnlockDiagnosticVMOptions
> -XX:MaxPermSize=192m
> -Xmx512m
> -XX:NewRatio=2
> -XX:+LogVMOutput
> -XX:LogFile=/root/application-server/glassfish-b43/domains/collector-domain/logs/jvm.log
> -Dcom.sun.aas.ClassPathPrefix=
> -Dcom.sun.aas.ClassPathSuffix=
> -Dcom.sun.aas.ServerClassPath=
> -Dcom.sun.aas.classloader.appserverChainJars.ee=
> -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
> -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
> -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar,commons-logging.jar,commons-launcher.jar
> -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,/root/application-server/glassfish-b43/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/opt/sun/mfwk/share/lib/mfwk_instrum_tk.jar
> -Dcom.sun.aas.classloader.serverClassPath=/root/application-server/glassfish-b43/lib/install/applications/jmsra/imqjmsra.jar,/root/application-server/glassfish-b43/imq/lib/jaxm-api.jar,/root/application-server/glassfish-b43/imq/lib/fscontext.jar,/root/application-server/glassfish-b43/imq/lib/imqbroker.jar,/root/application-server/glassfish-b43/imq/lib/imqjmx.jar,/root/application-server/glassfish-b43/lib/ant/lib/ant.jar,/root/application-server/glassfish-b43/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
> -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/opt/sun/mfwk/share/lib/mfwk_instrum_tk.jar
> -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/usr/java/jdk1.5.0_11/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,/root/application-server/glassfish-b43/imq/lib/jaxm-api.jar,/root/application-server/glassfish-b43/imq/lib/fscontext.jar,/root/application-server/glassfish-b43/imq/lib/imqbroker.jar,/root/application-server/glassfish-b43/imq/lib/imqjmx.jar,/root/application-server/glassfish-b43/imq/lib/imqxm.jar,/root/application-server/glassfish-b43/lib/ant/lib/ant.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,/root/application-server/glassfish-b43/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,/root/application-server/glassfish-b43/updatecenter/lib/updatecenter.jar,/root/application-server/glassfish-b43/jbi/lib/jbi.jar
> -Dcom.sun.aas.configName=server-config
> -Dcom.sun.aas.configRoot=/root/application-server/glassfish-b43/config
> -Dcom.sun.aas.defaultLogFile=/root/application-server/glassfish-b43/domains/collector-domain/logs/server.log
> -Dcom.sun.aas.domainName=collector-domain
> -Dcom.sun.aas.installRoot=/root/application-server/glassfish-b43
> -Dcom.sun.aas.instanceName=server
> -Dcom.sun.aas.instanceRoot=/root/application-server/glassfish-b43/domains/collector-domain
> -Dcom.sun.aas.processLauncher=SE
> -Dcom.sun.aas.promptForIdentity=true
> -Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl
> -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
> -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
> -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
> -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
> -Dcom.sun.updatecenter.home=/root/application-server/glassfish-b43/updatecenter
> -Ddomain.name=collector-domain
> -Djava.endorsed.dirs=/root/application-server/glassfish-b43/lib/endorsed
> -Djava.ext.dirs=/usr/java/jdk1.5.0_11/jre/../lib/ext:/usr/java/jdk1.5.0_11/jre/../jre/lib/ext:/root/application-server/glassfish-b43/domains/collector-domain/lib/ext:/root/application-server/glassfish-b43/javadb/lib:/root/application-server/glassfish-b43/lib/jdbcdrivers
> -Djava.library.path=/root/application-server/glassfish-b43/lib:/root/application-server/glassfish-b43/lib:/root/application-server/glassfish-b43/lib
> -Djava.security.auth.login.config=/root/application-server/glassfish-b43/domains/collector-domain/config/login.conf
> -Djava.security.policy=/root/application-server/glassfish-b43/domains/collector-domain/config/server.policy
> -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
> -Djavax.management.builder.initial=com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
> -Djavax.net.ssl.keyStore=/root/application-server/glassfish-b43/domains/collector-domain/config/keystore.jks
> -Djavax.net.ssl.trustStore=/root/application-server/glassfish-b43/domains/collector-domain/config/cacerts.jks
> -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
> -Djmx.invoke.getters=true
> -Dsun.rmi.dgc.client.gcInterval=3600000
> -Dsun.rmi.dgc.server.gcInterval=3600000
> -cp
> :/root/application-server/glassfish-b43/lib/appserv-launch.jar
> com.sun.enterprise.server.PELaunch
> start
> Apr 23, 2007 1:06:52 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher process
> INFO: goodbye
> [#|2007-04-23T13:06:53.521-0400|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server 9.1 (build b43-beta3) ...|#]
>
> [#|2007-04-23T13:06:54.705-0400|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java HotSpot(TM) 64-Bit Server VM;1.5.0_11;Sun Microsystems Inc.;|CORE5076: Using [Java HotSpot(TM) 64-Bit Server VM, Version 1.5.0_11] from [Sun Microsystems Inc.]|#]
>
> [#|2007-04-23T13:06:54.779-0400|INFO|sun-appserver9.1|javax.enterprise.resource.jms|_ThreadID=11;_ThreadName=pool-1-thread-6;|Using MQ RA for Broker lifecycle control|#]
>
> [#|2007-04-23T13:06:54.814-0400|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=12;_ThreadName=pool-1-thread-2;|SEC1002: Security Manager is OFF.|#]
>
> [#|2007-04-23T13:06:56.884-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:MBeanServer initialized successfully|#]
>
> [#|2007-04-23T13:06:56.927-0400|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|RMIClient.getRMIClient: server|#]
>
> [#|2007-04-23T13:06:57.065-0400|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=ab4c97d8-1748-4303-a284-aa7a3dccb69f;|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:274)
> 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:71)
> at $Proxy0.getSecuritySupport(Unknown Source)
> at com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:352)
> at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:89)
> at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:88)
> at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:237)
> at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:85)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:371)
> at com.sun.enterprise.server.PEMain.main(PEMain.java:308)
> ... 5 more
> |#]
>
>
> ------------------------------------------------------------------------
>
> <?xml version='1.0' encoding='UTF-8'?>
> <hotspot_log version='142 1' process='4520' time_ms='1177348012882'>
> <vm_version>
> <name>
> Java HotSpot(TM) 64-Bit Server VM
> </name>
> <release>
> 1.5.0_11-b03
> </release>
> <info>
> Java HotSpot(TM) 64-Bit Server VM (1.5.0_11-b03) for linux-amd64, built on Dec 15 2006 00:37:33 by java_re with gcc 3.2.2 (SuSE Linux)
> </info>
> </vm_version>
> <tty>
> <tty_done stamp='4.891'/>
> </tty>
> <hotspot_log_done stamp='4.891'/>
> </hotspot_log>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>