Sun Java System Portal Server 7 Enterprise Sample Guide

Appendix A Installing the Enterprise Sample

The Enterprise Sample requires that all Sun JavaTM System products (with the possible exception of the Directory Server) reside on the same machine. The Directory Server can reside either on the same host or on a separate host.

The Enterprise Sample is installed using ant, a Java based build tool, and a set of ant scripts installed by Portal at PortalServer-base/samples/portals.

To install the Enterprise Sample, do the following.

  1. Create a custom directory for the Enterprise Sample.

    For example, type mkdir /tmp/mydir.

  2. Copy the sample configuration files input.properties and password.properties in PortalServer-base/samples/portals/shared to the directory you just created.

    For example, copy the PortalServer-base/samples/portals/shared/input.properties.template to /tmp/mydir/input.properties and copy PortalServer-base/samples/portals/shared/password.properties.template to /tmp/mydir/password.properties. When copying, remove the template extension.

  3. Edit the input.properties file and replace all the tokens that begin and end with % with the appropriate Portal Server settings.

  4. Edit the password.properties file and replace tokens that begin and end with % with the appropriate administration password value.

    During the Portal Server software installation, if any sample was installed, a default input.properties file is placed in PortalServer-DataDir/tmp directory.

  5. Use ant to install the Enterprise Sample.

    For example, type ant -buildfile samplebuildfile -Dconfig.location=configlocation -logfile logfile where

    ant

    Refers to the ant script at /usr/sfw/bin/ant.

    samplebuildfile

    Refers to the sample portal build file.

    configlocation

    Refers to the location (directory) of the password.properties and input.properties files.

    logfile

    Refers to the location of the generated ant log file.

    For example, to install only the Enterprise Sample, type /usr/sfw/bin/ant -buildfile /opt/SUNWportal/samples/portals/enterprise/build.xml -Dconfig.location=/tmp/mydir -logfile /tmp/mydir/enterprise_sample_install.log.