This post is in response to question on Oracle Apps Forum “In Oracle Apps R12 JSP’s are not compiled on the fly anymore (default in 11i is compile) but will only be compiled when a patch is being applied (adpatch) or manually as explained below (ojspCompile.pl)” . To change this behaviour on R12 development instance use below method
.
To compile the jsp as soon as you access jsp page :
1. Change s_jsp_main_mode in R12 context file (XML file)
<jsp_debug_parameters oa_var=”s_jsp_main_mode”>justrun</jsp_debug_parameters>
change it to
<jsp_debug_parameters oa_var=”s_jsp_main_mode”>recompile</jsp_debug_parameters>
2.Run Autoconfig (adautocfg.sh)
Autoconfig will update file
$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
<param-name>main_mode</param-name>
<param-value>justrun</param-value>
.
How to compile JSP manually
perl ojspCompile.pl –compile –flush (Unix)
or
perl ojspCompile.pl –compile –flush -p 2 (Unix where -p means parallel execution)
perl -x ojspCompile.pl –compile –flush (Windows)
ojspCompile.pl is under $FND_TOP/patch/115/bin/
Note* JSP’s are compiled automatically after patching (whenever patch updates one or more jsp it calls ojspCompile.pl to compile JSP)
.
JSP Compilation logs
In 11i, all jsp compilation errors are logged in $IAS_ORACLE_HOME/ Apache/ Jserv/ logs/ mod_jserv.log
In R12, all jsp compilation errors are logged in $LOG_HOME/ ora/ 10.1.3/ j2ee/ oacore/ oacore_default_group_1/ application.log
References