Skip Headers

Oracle9i Application Server Administrator's Guide
Release 2 (9.0.2)

Part Number A92171-02
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

6
Configuring HTTP Server, OC4J, and Web Cache

This chapter provides an introduction to configuring these key components: Oracle HTTP Server, OC4J, and Oracle9iAS Web Cache.

It contains the following topics:

Introduction

This chapter provides an introduction to configuring components using the Oracle Enterprise Manager Web site. It discusses common configuration tasks associated with three key components: Oracle HTTP Server, Oracle9iAS Containers for J2EE, and Oracle9iAS Web Cache.

See Also:

Enterprise Manager Web site allows you to configure many other Oracle9iAS components. For more information, refer to the individual component guides and use the Enterprise Manager Web site online help.

About Manually Editing HTTP Server and OC4J Configuration Files

If you edit Oracle HTTP Server or OC4J configuration files manually, instead of using the Enterprise Manager Web site, you must use the DCM command-line utility dcmctl to notify the DCM repository of the changes. Otherwise, your changes will not go into effect and will not be reflected in the Enterprise Manager Web site. Table 6-1 lists the dcmctl commands. Note that the dcmctl tool is located in:

(UNIX) ORACLE_HOME/dcm/bin/dcmctl
(Windows) ORACLE_HOME\dcm/bin\dcmctl

Table 6-1 dcmctl Commands for Updating the DCM Repository
To notify DCM of changes made to: Use this command:

Oracle HTTP Server configuration files

dcmctl updateConfig -ct ohs

OC4J configuration files

dcmctl updateConfig -ct oc4j

All configuration files

dcmctl updateConfig

Before you change configuration parameters, manually or using the Enterprise Manager Web site, you can save the current state of your configuration files and installed J2EE applications with the following command:

dcmctl saveInstance -dir directory_name

You can then restore the state and back out of any subsequent changes that were made using the following command:

dcmctl restoreInstance [ -dir directory_name ]

See Also:

Appendix F, "DCM Command-Line Utility (dcmctl)" for more information

Configuring Oracle HTTP Server

You can configure Oracle HTTP Server using the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. You can perform tasks such as modifying directives, changing log properties, specifying a port for a listener, managing client requests, and editing server configuration files.

You can access the Oracle HTTP Server Home Page in the Name column of the System Components table on the Instance Home Page. Figure 6-1 displays the Oracle HTTP Server Home Page.

This section describes the following tasks:

Modifying the Document Root, Administrator E-mail, User, and Group Settings

After you start Oracle HTTP Server, the system is ready to listen for and respond to requests. You may need to make modifications to the document root, administrator e-mail, user, and group settings in order to process requests efficiently.

To modify these settings:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration section.

  2. Select Server Properties under the Administration section. This opens the Oracle HTTP Server Properties Page.

  3. Type a new path in the Document Root field to change the document root directory. The path should be relative to the Server Root Directory specified during initial configuration.

  4. Type the appropriate email address in the Administrator E-Mail field. Oracle HTTP Server uses this email address to issue notices and warnings. The administrator should have full privileges.

  5. Add or change the User identifier by typing a new user name in the fields provided.

  6. Add or change the Group identifier by typing a new group name in the fields provided.

  7. Click Apply at the bottom of the page to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  8. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Specifying a Port for a Listener

When you start Oracle HTTP Server, it connects to a port and awaits client requests. Oracle HTTP Server will automatically attempt to listen on port 7777.

To specify a listener port:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration section.

  2. Select Server Properties in the Administration section. This opens the Server Properties Page.

  3. Scroll down to the Listening Addresses/Ports table.

    The first row in the Listening Addresses/Ports table identifies the default listener port. To edit the default listener port, edit the number in the Listening Port column.

    To add port settings, click Add Another Row to add a new row to the table. Enter the IP address and/or port number to the new row.

  4. Scroll down to the end of the page and click Apply to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  5. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Changing the Error Log Properties

You can change Error Log properties from the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. The Error Log file is an important source of information for maintaining a well-performing server. The Error Log records all of the information about problem situations so that you can easily diagnose and fix the problems. The following directives allow you to customize how your error log is set up.

To customize the error log properties:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration section.

  2. Select Server Properties in the Administration section. This opens the Server Properties Page.

  3. Scroll to the Logging section of the Server Properties Page.

  4. Type the full path name of the directory where you want to keep the error log file in the Error Log Filename field. You can also type the relative path name. A relative path is assumed to be relative to the Server Root directory.

  5. Select the logging level from the Error Logging Level drop-down menu. The logging level indicates the severity of the error being reported.


    Note:

    Setting the log level to notice, info, or debug tends to flood the error log with informational messages. Use these options only if you need to perform a very detailed analysis or to debug a specific performance problem.


  6. Set the IP Address Translation type. This setting tells the server how to handle DNS lookups. Typically a single DNS lookup yields better performance than a double DNS lookup.

  7. Scroll to the end of the page and click Apply to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  8. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Adding an Access Log File

You can change Access Log properties from the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. The Access Log contains basic information about every HTTP transaction that the server handles. Specifically, the access log file contains: hostname, remote logname, remote user, time, request, response code, and bytes transferred. This information can be used to generate statistical reports about the server's usage patterns.


Note:

Access Log files are not automatically generated. You must first tell the server where and how to store access log information.


To create an access log file:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration section.

  2. Select Server Properties in the Administration section. This opens the Server Properties Page.

  3. Scroll to the Logging section of the Server Properties Page.

  4. Click Add Another Row in the Select Access Log table to add a new row. When the page reloads, scroll back to the Logging section.

  5. Type the full path and filename of the access log file you want to create in the empty field. For example, you can type the following location:

    (UNIX) /private2/ias/Apache/Apache/logs/access_log
    (Windows) C:\ias_home\Apache\Apache\logs\access_log
    

    You can also type the relative path and filename. A relative path is assumed to be relative to the Server Root directory:

    (UNIX) logs/access_log
    (Windows) logs\access_log
    
  6. Set the log format by typing a new format name. The default is common. For information on creating custom log formats, go to "Adding an Access Log File" from the online help for the Server Properties Page.


    Note:

    For a full description of the available log formats, click Help at the top of the Server Properties page.


  7. Scroll down to the end of the page and click Apply to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  8. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Changing the Access Log Properties

To change access log properties:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration section.

  2. Select Server Properties in the Administration section. This opens the Server Properties Page.

  3. Scroll to the Logging section of the Server Properties Page.

  4. Select the Client Access Log file you want to relocate in the Select Access Log section.

  5. Type the new destination in the Client Access Log Filename field. The destination can be the full path and filename or a relative path and filename. A relative path is assumed to be relative to the Server Root directory.

  6. Scroll to the end of the page and click Apply to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  7. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Managing the Client Request and Connection Handling

You can specify how the Child Processes and Connections should initialize resources during the server's processing phase through the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. The Child Process and Connection settings impact the ability of the server to process requests. You may need to modify these settings as the number of requests increases or decreases to maintain a well-performing server.


Note:

For more information on setting the client request and connection handling parameters, see the Oracle HTTP Server Administration Guide.


To modify child process and connection settings:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration section.

  2. Select Server Properties in the Administration section. This opens the Server Properties Page.

  3. Scroll to the Client Request Handling or Client Connection Handling sections of the Server Properties Page.

  4. Modify the Client Request Handling and Client Connections Handling directives by changing the default values in the appropriate fields.

    For help on individual settings, click Help at the top of the Server Properties page.

  5. Scroll down to the end of the page and click Apply to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  6. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Editing the Server Configuration Files

You can access the HTTP server configuration files directly through the Oracle HTTP Server Advanced Properties Page on the Oracle Enterprise Manager Web site. Use these files to customize the features of your server.

See Also:

For more information on using the HTTP server configuration files to customize your server settings, see the Oracle HTTP Server Administration Guide.

To edit a configuration file:

  1. Navigate to the Oracle HTTP Server Home Page on the Oracle Enterprise Manager Web site. Scroll to the Administration.

  2. Select Advanced Server Properties in the Administration section. This opens the Advanced Server Properties Page.

  3. Select the configuration file you want to edit. A text editor appears where you can make the appropriate changes.

  4. Scroll down to the end of the page and click Apply to accept the changes. If you do not click Apply, you will lose your changes. If you make a mistake or want to undo any changes, click Revert.

    Enterprise Manager displays a confirmation page, which confirms that the appropriate configuration files have been updated.

  5. Click Yes to restart the HTTP Server so the changes will take effect. Click No to restart the server later.

Creating a Database Access Descriptor (DAD) for mod_plsql

Oracle HTTP Server contains the mod_plsql module, which provide support for building PL/SQL-based applications on the Web. PL/SQL stored procedures retrieve data from a database and generate HTTP responses containing data and code to display in a Web browser.

In order to use mod_plsql you must install the PL/SQL Web Toolkit into a database and create a Database Access Descriptor (DAD) which provides mod_plsql with connection information for the database.

See Also:

"mod_plsql" for more information on installing the PL/SQL Web Toolkit into a database

You can create a DAD using the Enterprise Manager Web site:

  1. Navigate to the HTTP Server Home Page. Scroll to the Administration section.

  2. Select PL/SQL Properties. This opens the mod_plsql Services Page.

  3. On the mod_plsql Services Page, scroll to the DAD Status section. Click Create. This opens the DAD Type Page.

  4. If you intend to use mod_plsql with Oracle9iAS Portal or Oracle Login Server, select the Portal radio button. Otherwise, select the General radio button. The subsequent screens will be populated with default values based on your selection. Click Next. This opens the Database Connection Page.

  5. Type a unique name in the DAD Name field. Enter the database account, password, and connection information in the Database Connectivity Information section. In the Default Page field, type the name of the PL/SQL procedure that should be invoked when one is not specified. In the NLS Language field, type the Oracle Language and Character Set for the back-end database. Choose an Authentication Mode in the Authentication Mode section. Click Next. This opens the Document, Alias, and Session Page.

  6. On the Document, Alias, and Session Page, fill in the fields that are required for your DAD configuration. Refer to the online help for more information. Click Next. This opens the Advanced Page.

  7. On the Advanced Page, fill in the fields that are required for your DAD configuration. These fields are typically not configured. Refer to the online help for more information. Click Finish. This opens the Confirmation Page. Click OK.

  8. Restart Oracle HTTP Server.

    See Also:

    For more details on mod_plsql configuration parameters, refer to "mod_plsql" in Chapter 6 of Oracle HTTP Server Administration Guide

Deleting a Database Access Descriptor (DAD) for mod_plsql

You can delete a DAD using the Enterprise Manager Web site:

  1. Navigate to the HTTP Server Home Page. Scroll to the Administration section.

  2. Select PL/SQL Properties. This opens the mod_plsql Services Page.

  3. On the mod_plsql Services Page, scroll to the DAD Status section. Select the radio button in the Select column for the DAD you would like to delete. Click Delete.

  4. Restart Oracle HTTP Server.

Enabling JServ

It is recommended that you use the Oracle9iAS Containers for J2EE (OC4J) for your servlet environment; it is the default configuration for Oracle9iAS Release 2 (9.0.2). However, you may want or need to use JServ in your Oracle9iAS Release 2 installation. These instructions are provided to explain how to enable JServ, and, if necessary, use it for some applications and OC4J for others. The instructions assume a working familiarity with the Oracle HTTP Server and JServ configuration.

This section has the following topics:

Directives Reference

This section describes some JServ configuration directives that are related to using JServ with mod_oprocmgr. All directives are described thoroughly in the configuration files.

See Also:

Oracle HTTP Server Administration Guide

Directives in jserv.properties

This section describes directives in jserv.properties.

Port

Use this directive to specify the ports to which JServ will bind. For example:

port=8007

If no ports are specified, the JServ processes will choose their ports. The following port directive enables the JServ processes to choose their own ports (the default behavior):

port=

If you eliminate the port directive entirely, an error will occur.

You can specify multiple ports, and separate the values with commas. Note that a range of ports (9000-9010) is a valid value.

port=8007,9000-9010,8010

Directives in jserv.conf

This section describes directives in jserv.conf.

ApJServManual

This directive accepts a new mode, auto, which invokes the new infrastructure functionality (in which mod_oprocmgr manages processes). The syntax is:

ApJServManual auto 

You can set the mode to on or off to use standard JServ functionality.

ApJServGroup

This directive defines groups for the process manager to manage for mod_jserv. If you have worked with mod_jserv, you will note that this directive replaces the ApJServBalance, ApJServHost, ApJServRoute and ApJServShmFile directives.

All JServ processes to be managed must belong to a group, and each group has its own ApJServGroup directive. If you only have one JServ process, you must define a group with just that process in it. The processes in a group are identical except for their listening ports, so requests directed to the group are distributed evenly among the processes.

The ApJServGroup directive takes four arguments: groupname, number of processes, node weight, and properties file. In the following example, the groupname is mygroup, the number of processes is 1, the node weight is 1, and the full path of the properties file used to start the JServ processes is:

(UNIX) /private/ias/Apache/Jserv/etc/jserv.properties
(Windows) C:\iashome\Apache\Jserv\conf\jserv.properties

(UNIX) ApJServGroup mygroup 1 1 /private/ias/Apache/Jserv/etc/jserv.properties
(Windows) ApJServGroup mygroup 1 1 C:\iashome\Apache\Jserv\conf\jserv.properties
ApJServGroupMount

This directive defines a mount point and maps it to a process group and zone. In the following example, the mount point is /servlets, the group is mygroup, and the zone is root. Note that the balance protocol is in use for routing, as in the standard JServ configuration.

(UNIX) ApJServGroupMount /servlets balance://mygroup/root 
(Windows) ApJServGroupMount /servlets balance://mygroup/root 

Place this directive after the ApJServGroup directive in the configuration file.

ApJServGroupSecretKey

This directive specifies the secret key that JServ needs to authenticate clients. It can be disabled, as follows:

ApJServGroupSecretKey disabled

When activated, the directive takes one or two arguments. In the following example, with group and filename arguments, the filename mysecretkey applies to the group mygroup:

(UNIX) ApJServGroupSecretKey mygroup /usr/local/apache/jserv/mysecretkey
(Windows) ApJServGroupSecretKey mygroup C:\ias\apache\jserv\mysecretkey

You can supply only the filename argument. No group is named, so the secret key filename applies to all groups.

(UNIX) ApJServGroupSecretKey /usr/local/apache/jserv/mysecretkey
(Windows) ApJServGroupSecretKey C:\ias\apache\jserv\mysecretkey

You cannot combine directives using the one-argument syntax with directives using the two-argument syntax. If you use the two-argument syntax, the default for groups without a group-specific secret key is 'disabled'.

Place this directive after the ApJServGroup directive in the configuration file.


Warning:

The secret in the secret key file specified in ApJServSecretKey must be the same as that specified by the security.secretKey directive in the jserv.properties file. If the secrets are not the same, the death detection mechanism assumes that all the servlet engine processes are dead, eliminates them, and starts new processes to replace them (repeating the cycle endlessly).


Enabling JServ with mod_oprocmgr

This section explains how to implement process management and load balancing services for JServ processes with mod_oprocmgr. Terms used in this section to describe the module and its functions are defined inTable 6-2:

Table 6-2 mod_oprocmgr Terms and Definitions
Term Definition

mod_oprocmgr

A module that starts, stops, and detects death of processes (starting new processes to replace them), and provides load balancing services to the processes. mod_oprocmgr gets the topology management information via HTTP requests from internal servers such as JServ, and does its job based on this information.

group

A set of processes across which request traffic is distributed.

servlet engine process

A JVM instance that runs a servlet engine, such as JServ.

How mod_oprocmgr Works with mod_jserv

mod_oprocmgr provides infrastructure capabilities, such as automatic starting of processes, death detection and restart, and load balancing. These capabilities are enabled by a new mode, auto, for the ApJServManual directive.

Based on the configuration information provided by mod_jserv, mod_oprocmgr starts the specified number of JServ processes, managing them for the life of the servers.

Follow these steps to enable JServ with mod_oprocmgr:

  1. Uncomment the Include directive for the jserv.conf file in

    (UNIX) ORACLE_HOME/Apache/Apache/conf/httpd.conf 
    (Windows) ORACLE_HOME\Apache\Apache\conf\httpd.conf 
    

    by removing the initial '#' character in the line:

    (UNIX) include "/ORACLE_HOME/Apache/Jserv/etc/jserv.conf"
    (Windows) include "C:\ORACLE_HOME\Apache\Jserv\conf\jserv.conf"
    
  2. Configure directives in the following file, if needed:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.conf
    (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.conf
    
  3. Configure directives in the following file, if needed:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.properties
    (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.properties
    
  4. Configure directives in the following file, if needed:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/zone.properties
    (Windows) ORACLE_HOME\Apache\Jserv\conf\zone.properties
    
  5. Configure JServ using the Enterprise Manger Web site:

    1. Navigate to the Instance Home Page on the Enterprise Manager Web site. Scroll to the Administration section.

    2. Select Configure Components. This opens the Configure Components Page.

    3. Choose JServ in the Component drop-down menu, enter the ias_admin password, and click OK.

  6. Restart Oracle HTTP Server.

Enabling JServ in Automatic Mode

Follow these steps to enable JServ in automatic mode:

  1. Uncomment the Include directive for the jserv.conf file in

    (UNIX) ORACLE_HOME/Apache/Apache/conf/httpd.conf 
    (Windows) ORACLE_HOME\Apache\Apache\conf\httpd.conf 
    

    by removing the initial '#' character in the line:

    (UNIX) include "/ORACLE_HOME/Apache/Jserv/etc/jserv.conf"
    (Windows) include "C:\ORACLE_HOME\Apache\Jserv\conf\jserv.conf"
    
  2. Set the ApJServManual directive to off

    ApJServManual off
    

    in following file:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.conf
    (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.conf
    
  3. Configure other directives as needed in jserv.conf.

  4. Set the port directive in the following file:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.properties
    (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.properties
    

    to the same value as that specified in the ApJServDefaultPort directive.

  5. Configure directives in the following file, if needed:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/zone.properties
    (Windows) ORACLE_HOME\Apache\Jserv\conf\zone.properties
    
  6. Configure JServ using the Enterprise Manger Web site:

    1. Navigate to the Instance Home Page on the Enterprise Manager Web site. Scroll to the Administration section.

    2. Select Configure Components. This opens the Configure Components Page.

    3. Choose JServ in the Component drop-down menu, enter the ias_admin password, and click OK.

  7. Restart Oracle HTTP Server.

Enabling JServ in Manual Mode

Follow these steps to enable JServ in manual mode:

  1. Uncomment the Include directive for the jserv.conf file in

    (UNIX) ORACLE_HOME/Apache/Apache/conf/httpd.conf 
    (Windows) ORACLE_HOME\Apache\Apache\conf\httpd.conf 
    

    by removing the initial '#' character in the line:

    (UNIX) include "/ORACLE_HOME/Apache/Jserv/etc/jserv.conf"
    (Windows) include "C:\ORACLE_HOME\Apache\Jserv\conf\jserv.conf"
    
  2. Set the ApJServManual directive to on:

    ApJServManual on
    

    in following file:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.conf
    (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.conf
    
  3. Configure other directives as needed in jserv.conf.

  4. Configure directives in the following file, if needed:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.properties
    (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.properties
    
  5. Configure directives in the following file, if needed:

    (UNIX) ORACLE_HOME/Apache/Jserv/etc/zone.properties
    (Windows) ORACLE_HOME\Apache\Jserv\conf\zone.properties
    
  6. Start JServ:

    (UNIX) ORACLE_HOME/Apache/Apache/bin/startJServ.sh
    (Windows) ORACLE_HOME\Apache\Apache\bin\startJsv.bat
    
  7. Configure JServ using the Enterprise Manager Web site.

    1. Navigate to the Instance Home Page on the Enterprise Manager Web site. Scroll to the Administration section.

    2. Select Configure Components. This opens the Configure Components Page.

    3. Choose JServ in the Component drop-down menu, enter the ias_admin password, and click OK.

  8. Restart Oracle HTTP Server.

Using JServ and OC4J Together

Perform the following configuration steps to enable JServ and Oracle9iAS Containers for J2EE (OC4J) to coexist. This is important if you have the Portal and Wireless installation type, because of the Portal dependency on OC4J.

  1. Specify the engine on which applications should execute. Suppose you have these URLs:

    • /application1/file1.jsp to execute on JServ

    • /application2/file2.jsp to execute on OC4J

    You must rewrite the URL for application1.

    1. Edit the following file:

      (UNIX) ORACLE_HOME/Apache/Apache/conf/httpd.conf
      (Windows) ORACLE_HOME\Apache\Apache\conf\httpd.conf 
      

      and ensure that the following directives are active (uncommented) and present:

      LoadModule rewrite_module libexec/mod_rewrite.so
      AddModule mod_rewrite.c
      RewriteEngine on
      
    2. Edit the following file:

      (UNIX) ORACLE_HOME/Apache/jsp/conf/ojsp.conf
      (Windows) ORACLE_HOME\Apache\jsp\conf\ojsp.conf
      

      to add these directives:

      RewriteRule /application1/(.*)/(.*)\.jsp$ /application1/$1/$2.jsp1
      ApJServAction .jsp1 /servlets/oracle.jsp.JspServlet
      
    3. Remove this directive:

      ApJServAction .jsp /servlets/oracle.jsp.JspServlet
      
    4. Edit the following file:

      (UNIX) ORACLE_HOME/Apache/Jserv/etc/jserv.conf
      (Windows) ORACLE_HOME\Apache\Jserv\conf\jserv.conf
      

      and mount /servlets to the JVM that will service the JSP requests. Use the ApJServMount or ApJServGroupMount directive (depending on how the JServ processes are started).

  2. Configure JServ using the Enterprise Manger Web site:

    1. Navigate to the Instance Home Page on the Enterprise Manager Web site. Scroll to the Administration section.

    2. Select Configure Components. This opens the Configure Components Page.

    3. Choose JServ in the Component drop-down menu, enter the ias_admin password, and click OK.

  3. Restart Oracle HTTP Server.

Configuring Oracle9iAS Containers for J2EE

You can configure Oracle9iAS Containers for J2EE (OC4J) using the Enterprise Manager Web site. You can use the Instance Home Page to create and delete OC4J instances, each of which has its own OC4J Home Page. You can use each individual OC4J Home Page to configure the corresponding OC4J instance and its deployed applications.

This section provides instructions for creating and deleting OC4J instances and an overview of the configuration tasks you can perform on OC4J instances and applications.

See Also:

Oracle9iAS Containers for J2EE User's Guide for more detailed instructions on configuring OC4J instances and applications

Creating an OC4J Instance

Every application server instance has a default OC4J instance named OC4J_home. You can create additional instances, each with a unique name, within an application server instance.

To create a new OC4J instance:

  1. Navigate to the Instance Home Page on the Oracle Enterprise Manager Web site. Scroll to the System Components section.

  2. Click Create OC4J Instance. This opens the Create OC4J Instance Page.

  3. In the Create OC4J Instance Page, type a unique instance name in the OC4J instance name field. Click Create.

A new OC4J instance is created with the name you provided. This OC4J instance shows up on the Instance Home Page in the System Components section. The instance is initially in a stopped state and can be started any time after creation.

Deleting an OC4J Instance

To delete an OC4J instance:

  1. Navigate to the Oracle9iAS Instance Home Page on the Oracle Enterprise Manager Web site. Scroll to the System Components section.

  2. Select the radio button in the Select column for the OC4J instance you would like to delete.

  3. Click Delete.

Overview of OC4J Configuration Tasks

You can use the Enterprise Manager Web site to do the following types of configuration:

OC4J Instance Level Configuration

Each OC4J instance has its own OC4J Home Page which allows you to configure global services and deploy applications to that instance.

Some examples of the tasks you can perform from the OC4J Home Page are:

Application Level Configuration

Once you have deployed an application, it has its own Application Home Page, which is accessible from the OC4J Home Page. Using the Application Home Page, you can modify most of the application parameters. Some examples of the tasks you can perform from the Application Home Page are:

Configuring Oracle9iAS Web Cache

Oracle9iAS Web Cache is an example of a component that has integrated a pre-Oracle9iAS Release 2 configuration tool into the Enterprise Manager Web site. This simplifies administration by providing access to the management features of the Oracle9iAS Web Cache Manager and the management features of the Enterprise Manager Web site from a single Home Page.

To access Oracle9iAS Web Cache Manager:

  1. Navigate to the Instance Home Page.

  2. Select the Web Cache instance you want to configure in the Name column. This displays the Web Cache Home Page.

  3. From the Administration section, select Web Cache Administration.

    See Also:

    For information on using Oracle9iAS Web Cache Manager, refer to Oracle9iAS Web Cache Administration and Deployment Guide.


Go to previous page Go to next page
Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index