Sun GlassFish Web Space Server 10.0 Administration Guide

Installing Samples

This section provides the instructions to install samples, which is a bundle of sample communities, users, and some portlets which are not yet officially supported by Sun. Customers can use samples, depending upon their need and interest.

ProcedureTo Install Samples

  1. Download the zip file for add-ons and copy it to the Web Space Server installation directory.

    cp webspace-10-fcs-addon-samples.zip webspace-for-gfv2/

    cd webspace-for-gfv2/

  2. Extract the zipped folder for samples.

    unzip webspace-10-fcs-addon-samples.zip

  3. Change to the /webspace/samples directory.

    cd /webspace/samples

  4. Install the samples.

    • To install a single sample (for example, socialspace.psar), type

      ant -f install-gfv2.xml

      Buildfile: install-gfv2.xml
      
      show-user-warning:
         [input] Ant must be 1.7 or greater. JAVA_HOME must be set to JDK 1.5 or greater. 
      [RETURN to continue or CONTROL-C to stop]
      
      
      set-glassfish-properties:
         [input] Enter GlassFish Directory  [/opt/webspace-gfv2-sunos/glassfish2]
      /<install-dir>/glassfish
         [input] Enter GlassFish Domain (include full path to domain)  [/<install-dir>/glassfish/domains/domain1]
      
      
      set-psar-properties:
         [input] Enter psar file (include full path)  [samples/sample.psar]
      /<install-dir>/webspace-for-gfv2/webspace/samples/samples/socialspace.psar
    • To install all samples, type

      ant -f install-all-gfv2.xml

      Buildfile: install-all-gfv2.xml
      
      show-user-warning:
         [input] Ant must be 1.7 or greater. JAVA_HOME must be set to JDK 1.5 or greater. 
      [RETURN to continue or CONTROL-C to stop]
      
      
      set-glassfish-properties:
         [input] Enter GlassFish Directory  [/opt/webspace-gfv2-sunos/glassfish2]
      /<install-dir>/glassfish
         [input] Enter GlassFish Domain (include full path to domain)  [/<install-dir>/glassfish/domains/domain1]
      
      
      install:
          [echo] Stopping GlassFish...
          [echo] Execute /477/glassfish/bin/asadmin stop-domain if install hangs.
  5. Restart theGlassFish server.