============================================= Oracle Application Server Containers for J2EE ============================================= Standalone Distribution Readme Contents -------- * Introduction * Pre-Requisites * Basic Installation * Documentation * Starting OC4J * Stopping OC4J * Testing the OC4J Installation * Using the Command Line Utility * Using the OC4J demonstration management console * Release Notes and More Information Introduction ------------ The Oracle Application Server Containers for J2EE (OC4J) standalone distribution provides a complete J2EE server environment, distributed as a simple zip file. The OC4J standalone distribution includes an HTTP(S) server, the required J2EE services, and Web Services capabilities all of which are executed from one Java process. Pre-Requisites -------------- In order to use OC4J standalone, you must have a Java2 Standard Edition (J2SE) version 1.4.1 or later installed on your system. Basic Installation ------------------ To install, unzip the oc4j_extended.zip file using the archive utility of your choice. The jar utility in your J2SE installation can also be used. The following directory structure has been created for you: /bin /j2ee /javacache /javavm /jdbc /jdk /jlib /lib /rdbms /soap /sqlj /toplink /webservices Where is the directory in which you unzipped the oc4j_extended.zip file. To complete the installation of OC4J change to the j2ee/home directory, and issue the following command: > cd /j2ee/home > java -jar oc4j.jar -install The /j2ee/home directory is referred to as . The installation prompts you to enter and verify an administration password, which is used for the administration console command-line tool. The administration username defaults to "admin". Enter any administration password. OC4J is installed with a default configuration that includes a default Web site and a default application. These are provided so that you can start and use OC4J immediately. Documentation ------------- There is no official documentation available for this early release of OC4J. Please check the OC4J page on the Oracle Techology Network -- http://otn.oracle.com/tech/java/oc4j -- for the latest information and other supporting material for this release. Starting OC4J ------------- Start OC4J server by changing to the J2EE_HOME directory and issuing one of the following commands: 1. Start OC4J using the default configuration files, which are located in the j2ee/home/config directory. > cd > java -jar oc4j.jar 2. Start OC4J using the server.xml file located in /mypath. > cd > java -jar oc4j.jar -config /mypath/server.xml The server outputs an initialization string with the version number when it is ready to accept requests. For example: Oracle Application Server Containers for J2EE 10g (10.0.3.0.0) initalized Stopping OC4J ------------- Stop OC4J by pressing ^c (Ctrl+c) in the window where the process was started, or by using the shutdown command in the admin.jar command-line utility (described below), or by using the process termination command (for example "kill" on Unix/Linux) for your operating system. Testing the OC4J Installation ----------------------------- Test the server by starting the OC4J process and accessing the URL http://localhost:8888 from a Web browser. There are a couple of sample links at the bottom of the page that run JSP and Servlet sample applications. If you changed the default port number in the http-web-site.xml file, access the Web server using http://localhost: where is the value you specified for the element. Using the Command-Line Utility ------------------------------ OC4J provides a command-line utility called admin.jar that can be used to perform operations on a running OC4J instance. Among other things, you can use admin.jar to restart and stop OC4J, deploy applications, and gather information on current resource usage. The admin.jar utility uses RMI to connect to a running OC4J process. This means OC4J must be started before using admin.jar. OC4J can't be started using admin.jar. The admin.jar utility is exercised using the following command: > java -jar admin.jar ormi://: Where: - The oc4j_ormi_port defaults to 23791 and can be omitted if not changed. - The admin_id defaults to admin (configurable in principals.xml). - The admin_password is the password you configured during the basic installation section. To see all of the available options, use the -help option. Example usages of admin.jar --------------------------- To restart OC4J using admin.jar execute the following command from the directory: > java -jar admin.jar ormi://: -restart To shut down OC4J using admin.jar execute the following command: > java -jar admin.jar ormi://: -shutdown This command provides a graceful shutdown of the container. If it does not shut down the container, you can force a rapid shutdown by passing the -force argument, as follows: > java -jar admin.jar ormi://: -shutdown force Using the OC4J demonstration management console ----------------------------------------------- As part of this OC4J 10g (10.0.3) - Developer Preview you will also find a lightweight, web based JMX, JSR-77, and JSR-88 demonstration management console. The demonstration console provides an easy to use interface to the JMX, JSR-77, and JSR-88 server implementation in this preview release. Note that this demonstration console is only for demonstration purposes and will be replaced by a more comprehensive management console in the production release of OC4J 10g (10.0.3). Also note that the functionality provided by this preview demonstration console is not meant to expose a complete set of all the JMX, JSR-77, and JSR-88 features implemented by the server. You can access the OC4J demonstration management console at: http://:/adminoc4j Please use the admin user and password you assigned to the admin user during the install process to access the OC4J demonstration management console. Copyright 2003 Oracle Corporation. All Rights Reserved.