WebSphere Application Server Samples


IBM WebSphere Samples Gallery

The Samples gallery offers a set of samples that show you how to perform common Web application tasks, provide reusable components and demonstrate handy techniques.

The gallery includes:

  • The YourCo intranet Web site, which integrates many of the small samples into one common application.
  • The Java Pet Store Application, which demonstrates J2EE technology via an online pet store.
  • A Trade application, which demonstrates an online brokerage.

Once installed on your local machine, the Samples are located at http://localhost/WSsamples/index.html .

Open the above URL in your Web browser, follow the database configuration instructions, and try the Samples.
On Windows 2000, it has been found that localhost is not always recognized. In such a case, use the actual host name.

The above links will not work if:

  • The Samples are not installed on the machine on which you are viewing this documentation ("localhost").
  • Your Web server is not running.
  • You are viewing this documentation from the IBM Web site instead of viewing locally installed documentation.

If you don't find the Samples on your localhost, confirm their installation. The Samples are an option in the product installation. See the installation documentation for a variety of case-specific installation steps.

Note: When using Domino Web Server, further configuration is required to access /WSsamples:

If you attempt to access http://<host name>/WSsamples/index.html when using a Domino Web Server, you receive the following error message:

Exception and or log files and location relevant to defect:
404 error in browser

To work around this problem, complete the following steps:

  1. Install Lotus Domino Administrator from Notes R5 client software.
  2. Open the server document for the server you plan to use as the Web server of WebSphere Application Server.
  3. Click Web > Create URL Mapping/Redirection.
  4. Navigate through the following options, entering appropriate information:
    1. Under Basic:
      What do you want to set up: URL > Directory
    2. Under Site Information:
      IP Address: the host name or IP address of your Web server
    3. Under Mapping:
      Incoming URL string: /WSsamples
      Target server directory: <install_root>/WSsamples
    4. Keep the default value for the other fields.
  5. Click Save and Close.
  6. Enter the following commands at the Domino Web Server console so that the settings take effect:
    tell http restart
    or
    tell http exit
    load http
  7. You should now be able to successfully access http://<hostname>/WSsamples.
See the Domino Help files for additional information about how to configure URL redirection.