If you install the Samples feature when you install the product,
you can install the samples in the WebSphere Application Server Samples Gallery.
The samples are included with the WebSphere Application Server on your iSeries
server.
Before you begin
The Samples feature is not installed with the product by
default. Use this procedure only if you changed the default and installed
the Samples feature.
Procedure
- Create a standalone application server profile or use the default
application server profile.
See the description of
the manageprofiles command for information about creating
a profile.
By default, only the Samples Gallery and the Plants by WebSphere
application are installed on the application server.
The samples are
in the profile_root/installedApps/cell_name directory.
The cell_name variable is the name of your WebSphere
Application Server - Express cell.
- Start the application server.
- Access the Samples Gallery.
Go to http://your.server.name:port/WSsamples.
The your.server.name variable is the name of your iSeries server and port is the port
number for the internal HTTP transport of the application server.
- Optional: Install additional samples.
Additional
samples are initially listed as installable samples in the Samples Gallery.
For further instructions on installing each sample, refer to the Installable
Samples section of the Samples Gallery in your Web browser.
To installing
additional samples on non-default profiles, you must specify the -server myServer parameter.
Additional information about the -server parameter and other script values
is in the Installable Samples section of the Samples Gallery, in the Samples
install help section.
Results
If you can access the Samples Gallery, you installed them successfully.
If you are unable to access the Samples Gallery, verify the following items:
- Verify that the application server is running.
On the CL command line,
run the following command:
Look for
the name of your application server profile.
- Verify that the Samples are installed.
In the administrative console,
expand Applications and click Enterprise applications. Confirm
that the Samples Gallery is listed as an installed application.
- Verify the port number.
The default port for the default application
server profile is 9080. To verify or change the port number, follow these
steps:
- In the administrative console navigation frame, expand Servers and
click Application servers.
- Click the name of the application server. For the default application
server profile, the server name is server1.
- Click Ports.
- Verify the WC_defaulthost port number.
- If you need to change the port number, click WC_defaulthost.
- Type the new port number in the Port field.
- Click OK.
- To save the configuration changes, click Save.
For more information about this port number
setting, see HTTP transport channel settings.
What to do next
Go to Accessing Samples to
learn about the samples that are available.