Way to success...

--"Running Away From Any PROBLEM Only Increases The DISTANCE From The SOLUTION"--.....--"Your Thoughts Create Your FUTURE"--.....--"EXCELLENCE is not ACT but a HABIT"--.....--"EXPECT nothing and APPRECIATE everything"--.....

Thursday, October 27, 2016

Enable Automatic Compilation of JSP pages in R12 Environment

Release 12.0 and 12.1 using OC4J:

In Release 12 the (automatic) compilation of a JSP is disabled and, at runtime,
only the pre-compiled JSP's are picked up.

In cases where development activities are done and JSP pages are changing often this default setting makes things more complicated. Each time a JSP is deployed a manual compilation using the ojspCompile.pl is needed and the OC4J running the oacore needs a restart to pick up the changes.
This will also affect other people working on the same environment.

This can be achieved by performing the following:
  • Login into E-Business suite and select System Administrator responsibility
  • Select function AutoConfig (under Oracle Applications Manager) (*)
  • For each web tier server perform the following: 
    •  Click on pencil icon under Edit Parameters
    •  Select tab System
    •  Expand section jtff_server
    •  Change value for the entry s_jsp_main_mode from justrun to recompile
    •  Confirm the change by clicking Save button
  • Run AutoConfig to propagate the changes to the configuration files
  • Verify that the $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml  has the following:
                 <init-param>
                 <param-name>main_mode</param-name>
                 <param-value>recompile</param-value>
                 </init-param>

  • Restart the web tier services
  • Request a JSP in the browser which is compiled. See that a new _<jspname>.class is created in _pages
  • Make a change in the JSP file
  • Request it again in the browser. See that _<jspname>.class is 'refreshed' in _pages and the change is seen in the browser



Release 12.2 using WLS:

  • In Release 12.2 it's currently not possible to enable automatic recompilation of JSP pages.



Checking Socket and Servlet Mode for Oracle EBS Application


Oracle Applications Release 12:

Note Oracle Application Release 12 is, by default, configured to run in servlet mode.
Use the following command:
$ grep connectMode FORMS_WEB_CONFIG_FILE
The current connection mode is reported:
connectMode=servlet
Alternatively, use the following command:
$ grep_frmConnectMode CONTEXT_FILE
The current connection mode is reported:
<forms_connect oa_var="s_frmConnectMode">servlet</forms_conr....


Oracle Applications Release 11:

Note Oracle Application Release 11 is, by default, configured to run in socket mode.
Use the following command:
$ grep connectMode FORMS60_WEB_CONFIG_FILE
The current connection mode is reported:
connectMode=socket
Alternatively, use the following command:
$ grep socket CONTEXT_FILE
The current connection mode is reported:
<forms_connect oa_var="s_frmConnectMode">socket</forms_conr....