Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Troubleshooting Guide

- Previous: Cannot Find Log Files
- Next: Accessing Remote Server Fails

# Accessing Local Server Fails (`http://localhost:8080`)

Things to check for this error include the following:

- Did the Server Start?

- Was the Server Started at the Expected Port?

## Did the Server Start?

### Description

If the console window is still open, the expected message is:

    Domain domain Started

where domain is the name of the default domain. This indicates that the default domain was started successfully.

If the console window is already closed, check for messages in the log file:

    install_dir/domains/domain1/logs/server.log

If startup was successful, the expected message is similar to that on the console, and appears at the end of the log file:

    [INFO][...][..][date&time][Application server startup complete .]

## Was the Server Started at the Expected Port?

### Description

The server might be running at a different port number than expected, either because it was intentionally installed there, or because another server was already running on the default port when the server was installed.

#### To determine which port number the server is actually using

##### Steps

1. Examine the server's configuration file:

       install_dir/domains/domain1/config/domain.xml

2. Find the `http-listener` element.

3. Inspect the value of the `port` attribute.

   Be sure to enter the correct port number when invoking the server.

   Note –

   The `server's` default port number is `8080`, however, there are a number of ways in which the expected value can change:

   - A different port number was specified during installation.

   - A previous installation exists.

   - If the specified port number is already taken by another application when the server is started, the port number rolls forward to the next available number. For example, if a server is already running on the default `8080` port, the new Application Server instance uses port number `8081`. If two servers are running, the port number rolls to `8082`, and so on.

- Previous: Cannot Find Log Files
- Next: Accessing Remote Server Fails

- © 2010, Oracle Corporation and/or its affiliates