Download the stand-alone version of Web Space Server.
Extract the Web Space Server bundle.
unzip webspace-for-gfv2.zip
Navigate to the Application folder.
cd webspace-for-gfv2/webspace/application
Run ant -f install-gfv2.xml.
ant -f install-gfv2.xml Buildfile: install-gfv2.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 availab le in the execution path. GlassFish must be running. [RETURN to continue or CONT ROL-C to stop] set-glassfish-properties: [input] Enter GlassFish Directory [\opt\glassfish] <install-dir>\glassfish [input] Enter GlassFish Domain (include full path to domain) [<install-dir>\glassfish\domains\domain1] [input] Enter GlassFish Target [server] [input] Enter GlassFish Administrator [admin] [input] Enter GlassFish Administrator Password File (include full path to fi le) [full-path\gfpass.txt] [input] Enter GlassFish Administration Port [4848] [input] Can installer deploy wars? [true] set-database-properties: [input] Use builtin HSQL or mySQL database [HSQL] mysql set-hsql-properties: set-mssql-properties: set-mysql-properties: [input] Enter Database User Name [root] [input] Enter Database User Password File (include full path to file) [full-path\dbpass.txt] //Place GlassFish admin password in a clear text file, and specify full path to it [input] Enter Database Host [localhost] [input] Enter Database Port [3306] [input] Enter Database Name [lportal]
You need to set the application server and database properties in the process of running install-gfv2.xml. You have to specify path for a password file (a text file containing the password) for GlassFish. If MySQL is installed on your machine, stop GlassFish and choose MySQL instead of the HSQL database, and make changes to the portal-ext.properties file as described in the To Connect to a Database Other Than HSQL section. Provide a password file, and restart GlassFish. Provide properties such as hostname, port number, and database name. Make sure that Ant version is 1.7 or greater and JDK is 1.6 or greater. GlassFish need to be running if you are installing on HSQL.