Getting Set with J2EE - Starting the J2EE Server
(Page 4 of 4 )
The next step to verifying that your installation is working correctly is to start the J2EE server. The server is launched from menus that are automatically created during installation, so choose the following option from the Start menu:
Start | All Programs | Sun Microsystems | J2EE 1.4 SDK | Start Default Domain
A command window should open with messages similar to the following, the last one prompting you to Press any key to continue as shown below:
Starting Domain domain1, please wait.
Log redirected to C:\Sun\AppServer\ domains\domain1\logs\server.log.
Domain domain1 started.
Press any key to continue . . .
At this point the J2EE server is started. Go ahead and press any key as requested, open a browser, and go to the following URL:
http://localhost:8080
The web browser should display the default J2EE web page:

Pat yourself on the back for a job well done. Let's go shred a little code for a final test.
Problems and SolutionsHere is a possible problem you might come up against when running through the previous steps to test your J2EE 1.4 SDK installation:
Problem | Solution |
The web browser reports "Page cannot be displayed" when trying to open the URL http://localhost:8080 | Make certain that there weren't any errors reported when starting hte J2EE server. If you see messages indicating that the server couldn't start because TCP ports were in use by other processes, you may either have another web server using port 8080, or have another instance of the J2EE server running. Also, make certain that you've specified the port "8080" in the URL (this is the default port used by the J2EE server). |
| |