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.