In a command shell of your operating system, change to the webspacedir/webspace/swa-administration directory.
Run ant -f install-glassfish.xml.
ant -f install-glassfish.xml Buildfile: install-glassfish.xml check-ant: check-last-install: set-last-install: show-user-warning: [input] JAVA_HOME must be set to JDK 1.5 or greater and java must be available in the execution path. GlassFish must be running. [RETURN to continue or CONTROL-C to stop] set-glassfish-properties: [input] Enter GlassFish Directory [/opt/glassfish] glassfish-root/glassfish [input] Enter GlassFish Domain (include full path to domain) [glassfish-root/glassfish/domains/domain1] [input] Enter GlassFish Target [server] [input] Enter GlassFish Administrator [admin] [input] Enter GlassFish Administrator Password File (include full path to file) [/root/asadmin-password] [input] Enter GlassFish Administration Port  [input] Can installer deploy wars? [true] set-datastore-properties: [input] Enter Fully Qualified Datastore Host [localhost] ***fully qualified name of the datastore deployment machine; can be the same machine*** [input] Enter Datastore Port 
You need to provide the GlassFish root directory, path for the GlassFish administration password file and other details while installing the swa-administration component of SWA.
For the successful configuration of SWA, you need to provide the Fully Qualified Domain Name (FQDN). In a simple deployment scenario, where you are installing all the components on a single machine, FQDN can be your machine host name. You should not select the default localhost.
Restart the GlassFish server.