Installing and Configuring Sun's J2EE Reference Implementation


by jGuru

[Help | API Docs | Short Course| Exercises]

This exercise steps you through the process of downloading and installing Sun's Java™ 2 Enterprise Edition Reference Implementation application server on your machine. This exercises is specific to the J2EE™ RI - if you wish do use a different application server for the remainder of these exercises then you should ensure it is EJB 1.1 compliant and install it now.

Prerequisites

    None

Tasks


  1. Check your system requirements to make sure you have an adequate hardware and software platform for installing and running J2EE RI.

  2. Ensure you have the Java 2 SDK version 1.2.2 or higher installed on your machine.

  3. Download the J2EE RI server and documentation from Sun's J2EE download site. The software distribution and the documentation site include installation instructions.

  4. Run the installer for both the J2EE and the documentation.

  5. Set the J2EE_HOME environment variable to point to the base directory where you installed the J2EE RI.

  6. Put J2EE_HOME/bin into your PATH environment variable.

  7. Start the Cloudscape database via the command-line command cloudscape -start.

  8. Start the J2EE RI via the command-line command j2ee -verbose.

  9. J2EE is now installed and running. Explore the J2EE Reference Implementation documentation within the documentation site to familiarize yourself more with J2EE.

Where help exists, the task numbers above are linked to the step-by-step help page.

Solution Source

There is no solution to this exercise. When the tasks in this exercise have been completed, the J2EE RI will be installed, running, and available for the subsequent exercises.

Demonstration

When the tasks in this exercise have been completed, the J2EE RI will be installed, running, and available for the subsequent exercises.

Running the J2EE RI via the command-line command j2ee -verbose should produce output similar to the following:

myhost> j2ee -verbose

Naming service started: :1050
Published the configuration object ...
Binding DataSource, name = jdbc/Cloudscape,
    url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Configuring web service using "default"
Web service started: :9191
Web service started: :7000
Configuring web service using "default"
Configuring web service using 
  "file:/D:/j2sdkee1.2/public_html/WEB-INF/web.xml"
Web service started: :8000
Endpoint [SSL: 
  ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=7000]]
    shutdown due to exception:
    javax.net.ssl.SSLException: No available certificate corresponds
        to the SSL cipher suites which are enabled.
endpoint down: :7000
J2EE server startup complete.

The deploytool utility, which will be used in the exercise Creating EJB Clients, will be able to connect to the running J2EE RI application server if you have successfully started it.

Next Magercise

Exercises

Short Course

Copyright 1996-2000 jGuru.com. All Rights Reserved.