Warning "OC4J will not send ONS ProcReadyPort messages to opmn for service" when Starting OC4J after Changing the Format of Logging Using $cookie

(Doc ID 471455.1)

Last updated on DECEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevancy on 1-Feb-2013***


Symptoms

After changing the logformat in the OC4J instance, the OC4J instance refuses to start with following error:

07/12/17 18:14:06 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
07/12/17 18:14:06 WARNING: OC4J will not send ONS ProcReadyPort messages to opmn for service:
OC4JServiceInfo id: default-web-site protocol: ajp hostname: null port: 12501 description: null
07/12/17 18:14:06 default-web-site hostname was null



Steps To Reproduce:

  1. Change default logging format in file "default-web-site.xml"
    <access-log path="../log/default-web-access.log" split="day" format="$ip $request $status $size $time $cookie"/>


  2. Restart OC4J instance.

  3. Errors reported can be:
    Error initializing web-site at ./default-web-site.xml: Unknown log directive: 'cookie'

    or in case of OPMN start:
    07/12/17 18:14:06 WARNING: OC4J will not send ONS ProcReadyPort messages to opmn for service: OC4JServiceInfo id: default-web-site protocol: ajp hostname: null port: 12501 description: null


  4. After this error checking file "server.xml" and following line has disappeared:
    <web-site default="true" path="./default-web-site.xml"/>

Changes

Changing the logformat for the messages by adding $cookie and/or $header according to the Oracle® Containers for J2EE Configuration and Administration Guide 10g (10.1.3.1.0).

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms