Testing the installation
This article describes how to test your installation and configuration of WebSphere Application Server.
These instructions assume that you have installed a supported Web server, database, and WebSphere Application Server.
Perform the following steps to test your WebSphere Application Server installation:
- Ensure that you are logged onto the host machine with superuser (root) privileges.
- Navigate to the directory containing the startupServer.sh script
(located by default in the /opt/WebSphere/AppServer/bin directory) by using the cd command, as follows:
# cd /opt/WebSphere/AppServer/bin
- Start the WebSphere Administrative Server by running the script startupServer.sh, as follows:
# ./startupServer.sh
Ensure that the server has started successfully by checking the file named tracefile located in the
/opt/WebSphere/AppServer/logs directory. Use the tail command to check the file, as follows:
# tail -f tracefile
The message ...open for e-business appears in this file
when the server has started successfully.
- Navigate to the directory containing the adminclient.sh script
(located by default in the /opt/WebSphere/AppServer/bin directory) by using the cd command, as follows:
# cd /opt/WebSphere/AppServer/bin
- Start the administrative console by running the script adminclient.sh, as follows:
# ./adminclient.sh
- When the console displays the message
Console Ready , administer
the application server by doing the following:
- When the administrative console opens, a tree view is displayed.
Click the plus sign (+) next to the WebSphere Administrative Domain entry to expand
the view.
- Click the plus sign (+) next to the Nodes entry to expand the view.
- Identify the name of your host machine and expand the view of that entry.
- Click the plus sign (+) next to the Application Servers entry to expand the view.
- Select the Default Server entry and click the Start icon on the toolbar. An information
window opens stating that the server has started. Click OK to close this window.
After the default server is started initially, it will start automatically
if it stops or if you restart the machine. Even if the
administrative server fails, the application server continues to run.
- Test the server by doing the following:
- Ensure that the Web Server is running. If it is not running, start it.
- Open a Web browser window and enter the URL for the snoop servlet, which is a standard sample servlet
installed by default, as follows:
http://machine_name/servlet/snoop
In this command, machine_name represents the name of the machine on which WebSphere Application Server is running.
Information on /servlet/snoop is displayed.
- To stop the Default Server, do the following:
- Highlight the entry Default Server and click the Stop icon on the tool bar. An information
window opens stating that the server has stopped.
- Click OK to close this window.
|
|