You are on page 1of 2

K:\glassfish-3.1.

1\glassfish\bin>asadmin create-domain domain2 Enter admin user name [Enter to accept default "admin" / no password]> admin Enter the admin password [Enter to accept default of no password]> Enter the admin password again> Default port 4848 for Admin is in use. Using 65021 Default port 8080 for HTTP Instance is in use. Using 65022 Default port 7676 for JMS is in use. Using 65023 Default port 3700 for IIOP is in use. Using 65024 Default port 8181 for HTTP_SSL is in use. Using 65025 Using default port 3820 for IIOP_SSL. Using default port 3920 for IIOP_MUTUALAUTH. Default port 8686 for JMX_ADMIN is in use. Using 65026 Using default port 6666 for OSGI_SHELL. Using default port 9009 for JAVA_DEBUGGER. Distinguished Name of the self-signed X.509 Server Certificate is: [CN=HP02,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US] Domain creation process involves a step that creates primary key and self-signed server certificate. This step failed for the reason shown below. This could be because JDK provided keytool program could not be found (e.g. you are running with JRE) or for some other reason. No need to panic, as you can always use JDK-keytool program to do the needful. A temporary JKS-keystore will be created. You should replace it with proper keystore before using it for SSL. Refer to documentation for details. Actual error is: Cannot run program "keytool": CreateProcess error=2, The system cannot find the file specified No domain initializers found, bypassing customization step Domain domain2 created. Domain domain2 admin port is 65021. Domain domain2 admin user is "admin". Command create-domain executed successfully. ******************************************************************************** *************************************** K:\glassfish3\glassfish>cd bin K:\glassfish3\glassfish\bin>asadmin create-domain domain2 Enter admin user name [Enter to accept default "admin" / no password]> admin Enter the admin password [Enter to accept default of no password]> Enter the admin password again> Default port 4848 for Admin is in use. Using 65156 Default port 8080 for HTTP Instance is in use. Using 65157 Default port 7676 for JMS is in use. Using 65158 Default port 3700 for IIOP is in use. Using 65159 Default port 8181 for HTTP_SSL is in use. Using 65160 Using default port 3820 for IIOP_SSL. Using default port 3920 for IIOP_MUTUALAUTH. Default port 8686 for JMX_ADMIN is in use. Using 65161 Using default port 6666 for OSGI_SHELL. Using default port 9009 for JAVA_DEBUGGER. Distinguished Name of the self-signed X.509 Server Certificate is: [CN=HP02,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US] Distinguished Name of the self-signed X.509 Server Certificate is: [CN=HP02-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California, C=US] No domain initializers found, bypassing customization step Domain domain2 created. Domain domain2 admin port is 65156.

Domain domain2 admin user is "admin". Command create-domain executed successfully. K:\glassfish3\glassfish\bin>

You might also like