Thursday, June 9, 2011

How to create a domain in Glass Fish...

Install Glass fish
download url
Find the bin directory in the glass fish installation , you are smart you can do that type asadmin then followed by create-domain you are ready to rock and roll

asadmin> create-domain
Enter the value for the domain_name operand> peter
Enter admin user name [Enter to accept default "admin" / no password]>
Using port 4848 for Admin.
Using default port 8080 for HTTP Instance.
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
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=R844BPR.us.oracle.com,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 "D:\oracle\jdk160_18\bin/bin/keytool": CreateProcess error=3, The system cannot find the path specified
No domain initializers found, bypassing customization step
Domain peter created.
Domain peter admin port is 4848.
Domain peter allows admin login as user "admin" with no password.

admin console url is http://localhost:4848 , you can deploy apps, create resources and it is easy if you worked with any web server

No comments:

Post a Comment