Troubleshooting Servlet Installation

This chapter provides suggestions for resolving problems that may arise when installing the Oracle Configurator Servlet. This installation is described in Oracle Configurator Servlet Considerations.

This chapter covers the following topics:

Introduction

Oracle Configurator Developer and Oracle Configurator use the standard Oracle Applications methods of logging to analyze and debug both development and runtime issues. These methods include setting various profile options and Java system properties to enable logging and specify the desired level of detail you want to record.

For more information about logging, see:

Before You Begin

Before troubleshooting OC Servlet installation, be sure that:

Checking the Response of the UI Servlet

What you are checking

Does the UI Servlet respond to a test message?

The test

Invoke the following URL in a Web browser:

http://hostname:portnum/OA_HTML/configurator/UiServlet?test=version

where hostname is the name of your internet server and portnum is the port number for your Web listener. If the servlet is installed correctly and running, it should produce an HTML page that prints the current build version of Oracle Configurator and the expected version for the CZ schema.

For example:

http://www.mysite.com:8802/OA_HTML/configurator/UiServlet?test=version

If the UI servlet is running and installed correctly, entering this URL should produce a result similar to the following:

Using configuration software build: 12.0.27.2
Expecting schema: 27b

Note: The property cz.uiservlet.versionfuncsavail determines whether you can test the response of the servlet using the test=veresion string. For details, see cz.uiservlet.versionfuncsavail.

If the test fails

Checking Your Model in the Runtime Oracle Configurator

What you are checking

Does your configuration model behave as you expect in the runtime Oracle Configurator?

The test

You can launch a generated User Interface from Oracle Configurator Developer by clicking the Test Model button in the Structure, Rules, or User Interface area of the Workbench. For more information, see the chapter on unit testing in the Oracle Configurator Developer User’s Guide.

Alternatively, you can test the behavior of the runtime Oracle Configurator by creating a test page that substitutes for your host application.

To do this:

  1. Create an HTML test page that posts an initialization message to the UI Servlet.

    See the chapter on session initialization in the Oracle Configurator Implementation Guide for an explanation of the OC initialization message.

    See Test Page for Invoking the JRAD Runtime Oracle Configurator, and the Oracle Configurator Implementation Guide for examples of simple test pages.

Test Page for Invoking the JRAD Runtime Oracle Configurator

<html>
<head>
<title>Minimal Configurator Test</title>
</head>
<body>
<form action="http://www.mysite.com:8802/OA_HTML/CZInitialize.jsp" method="post">
<input type="hidden" name="XMLmsg" value=
'<initialize>
  <param name="database_id">serv01_sid02</param>
  <param name="user">operations</param>
  <param name="pwd">welcome</param>
  <param name="calling_application_id">708</param>
  <param name="responsibility_id">22713</param>
  <param name="ui_type">JRAD</param>
  <param name="ui_def_id">3120</param>
</initialize>'>
<p>Click the button to configure the model...
<input type="submit" value="Configure">
</form>
</body>
</html>
  1. Ensure that you have the necessary database connectivity, and that your UI Servlet is installed and configured correctly.

    For details, see Verifying Apache and OC4J Setup.

  2. Test the runtime Oracle Configurator by opening the test page.

    Your default Web browser should open and contain the specified configuration model and User Interface. If you used Test Page for Invoking the JRAD Runtime Oracle Configurator, click the button to display the specified User Interface.