Sun Java System Identity Server version 2004Q2

PAOS Sample Readme File

This file explains how to compile and run the sample PAOS application for Solaris installations. Follow these steps to run the sample program.

Instructions for Solaris

  1. Set these environment variables. These environment variables will be used for running the "make"/"gmake" command and "run" command. The "Makefile" and "run" are in the same directory where the sample files are located, and the directory is "<installl-dir>/SUNWam/samples/phase2/paos".
    1.  
      JAVA_HOME - Set this variable to your installation of JDK. It should be newer than JDK 1.3.1
       
  2. Go to the directory "<install-dir>/SUNWam/samples/phase2/paos".  Run gmake or make.
  3. Copy the PAOSClientServlet.class file to the "<install-dir>/SUNWam/lib" directory. Alternatively, you can make a soft-link in that directory back to this class.
  4. Now it is required to register the Sample servlet. Insert these lines (as described below) in the file "<web-server-instance-dir>/is-web-apps/services/WEB-INF/web.xml". These lines should be put just after the last "</servlet>" tag.
  5. <servlet>
        <servlet-name>PAOSClientServlet</servlet-name>
        <description>PAOSClientServlet</description>
        <servlet-class>PAOSClientServlet</servlet-class>
    </servlet>

    These lines should be put just after the last </servlet-mapping> tag.

    <servlet-mapping>
        <servlet-name>PAOSClientServlet</servlet-name>
        <url-pattern>/PAOSClientServlet</url-pattern>
    </servlet-mapping>

  6. Restart the server.
  7. Modify the "run" script to reflect your particular installation.
  8. Type "run" on command line. This will actually run PAOSServer program.
You will see the output from the PAOSServer program. You can also see the output from PAOSClientServlet program in the web server's log file (for Sun Java System Web Server, it would be the "errors" file in logs/ subdirectory under the web server instance directory).