Sun Java System Portal Server 7 2005Q4 Release Note Supplement

Configuring Surveys and Polls Portlets

ProcedureTo Configure Surveys and Polls Portlets

Before You Begin

Ensure that the Derby server instance is up and running by executing the following command:


netstat -a | grep DERBY-PORT

If the server is not running, start the server. See supplement Chapter 14, Starting and Stopping the Apache Derby Open-Source Database for detailed instructions on starting and stopping the server.

Steps
  1. Copy the PortalServer7-base/SUNWportal/portletapps/surveys directory to /var/opt/SUNWportal/portals/PortalId/portletapps/surveys directory.

  2. Edit the following tokens (starting and ending with %) in /var/opt/SUNWportal/portals/PortalId/portletapps/input.properties file:

    ps.config.location=%PS_CONFIG_LOCATION%

    Portal configuration base directory. By default, this is /etc/opt/SUNWportal.

    ps.portal.id=%PORTAL_ID%

    Portal identifier. For example, myPortal.

    am.admin.dn=%AM_ADMIN_DN%

    Sun Java System Access Manager administrator's distinguished name. For example, use the format uid=amAdmin,ou=People,dc=siroe,dc=com.

    amadminPassword=%AMADMIN_PASSWORD%

    Access Manager administrator's (amadmin) password.

    ps.webapp.uri=%PORTAL_WEBAPP_URI%

    Portal web application URI. By default, this is /portal.

  3. Edit the tokens in /var/opt/SUNWportal/portals/PortalId/portletapps/surveys/tokens.properties file.

    For example, edit the following tokens (starting and ending with %):

    DB_ADMIN_URL=jdbc:derby://%DERBY_HOST%:%DERBY_PORT%/surveydb_myPortal;create=true

    Apache Derby Open Source database host name and domain, and the port on which derby server instance is listening.

    DB_URL=jdbc:derby://%DERBY_HOST%:%DERBY_PORT%/surveydb_%PORTAL_ID%

    Apache Derby Open Source database host name and domain, the port on which derby server instance is listening, and portal ID (for example, myPortal).

  4. Run the ant command. Type /usr/sfw/bin/ant -buildfile Portal-Data-Dir/portals/PortalId/portletapps/surveys/build.xml.

    To capture output in a log file, run the following command: /usr/sfw/bin/ant -buildfile Portal-Data-Dir/portals/PortalId/portletapps/surveys/build.xml -logfile /tmp/portletappslogs.txt.