Installing and Uninstalling Sun Java System Portal Server 7.1 Sample Desktops

ProcedureTo Uninstall Sun Java System Portal Server 7.1 Sample Desktops

  1. Copy the PortalServer-base/SUNWportal/samples/portals/shared/input.properties.template file to the /var/opt/SUNWportal/tmp/input.properties file where the default value for PortalServer-base is /opt/SUNWportal.

    In the Linux platform, copy to the /var/opt/sun/portal/tmp/input.properties file.


    Note –

    You can copy the input.properties file to any directory. The input.properties file and the password.properties file must, however, exist in the same directory.


  2. Edit the input.properties file with the following values.

    ps.config.location

    The portal configuration directory. For example, /etc/opt/SUNWportal

    ps.portal.id

    Portal ID. For example, portal1

    ps.access.url

    Access URL of the portal. For example, http://host:port/portal

    ps.webapp.uri

    Access URI of the portal. For example, /portal

    ps.profiler.email

    admin@domain.com. Note that this value is optional. You can leave this value empty.

    ps.profiler.smtp.host

    host.domain. Note that this value is optional. You can leave this value empty.

    search.access.url

    Access URL of the search server. For example, http://host.domain:port/search1/search

    search.id

    Search server ID. For example, search1

    am.admin.dn

    Access Manager top-level administrator distinguished name (DN). For example, uid=amAdmin,ou=People,dc=domain,dc=com

    default.org.dn

    Default organization DN. For example, dc=domain,dc=com

  3. Copy the PortalServer-base/SUNWportal/samples/portals/shared/password.properties.template file to the /var/opt/SUNWportal/tmp/password.properties file.

    In the Linux platform, copy the file to the /var/opt/sun/portal/tmp/password.properties directory.


    Note –

    You can copy the password.properties file to any directory. However, the password.properties file and the input.properties file must exist in the same directory.


  4. Edit the password.properties file to set proper passwords.

    amadminPassword

    %AMADMIN_PASSWORD%

    amldapuserPassword

    %AMLDAPUSER_PASSWORD%

  5. Run the following command.


    export JAVA_HOME=/usr/jdk/entsys-j2se
  6. Run the following command.

    To uninstall all of the sample portals

    /usr/sfw/bin/ant uninstall_samples -buildfile PortalServer-base/SUNWportal/samples/portals/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

    To uninstall only the Developer portal

    /usr/sfw/bin/ant uninstall -buildfile PortalServer-base/SUNWportal/samples/portals/developer/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

    To uninstall only the Enterprise portal

    /usr/sfw/bin/ant uninstall -buildfile PortalServer-base/SUNWportal/samples/portals/enterprise/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

    To uninstall only the Community portal

    /usr/sfw/bin/ant uninstall -buildfile PortalServer-base/SUNWportal/samples/portals/community/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

    To uninstall only the Welcome portal

    /usr/sfw/bin/ant uninstall -buildfile PortalServer-base/SUNWportal/samples/portals/welcome/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

  7. Restart the web container.