How to Compile jsp files at Application R12 at Windows?(zt)
1.Compile jsp files at windows using the manual method.
$su - applprod
$cd $FND_TOP/patch/115/bin/
$ojspCompile.pl --compile --fast --quiet
Usage of ojspCompile.pl
syntax: ojspCompile.pl COMMAND {ARGS}
COMMAND --compile update dependency, compile delta
--create rebuild entire dependency file
-delta.out <file> update dependency, list delta to file
-dep.out <xmlfile> update dependency, output heirarchy to file
ARGS -s <regex> matching condition for JSPs filenames
-p <procs> number of parallel compilations
-log <file> to override logfile from ojspCompile.conf
You are
recommended to set the log file location
outside of any network file system shared (NFS) area/drive.
-conf <file> to override ojspCompile.conf
--retry retry previously failed compilation attempts
--flush forces recompilation of all parent JSPs
--quiet do not provide an actively running progress meter
--fast instantly fail jsps that are *possibly* invalid
example1: ojspCompile.pl --compile -s 'jtf%' -p 20 --retry
example2: ojspCompile.pl --compile -s 'jtflogin.jsp,jtfavald.jsp' --flush
example3: ojspCompile.pl --compile --fast --quiet
2 In R12 jsp are not compiled on the fly anymore like 11i but will only be compiled when a patch is being Applied or using the method as explained above.
To compile the jsp as soon as you access the page or in case the jsp is being updated by a patch the following needs to be changed:
1 - change the context file, change “s_jsp_main_mode” in the <CONTEXT_NAME>.xml file used by autoconfig and change value from "justrun" to "recompile".
2 - Run Autoconfig to propagate the changes to the configuration files.
3 - Restart OPM
4 - Now when a jsp has been changed (or missing) it will be compile immediately when the page is being accessed
Reference doc:
Note 433386.1 - JSP Pages Hanging in R12 After Removing Cached Class Files in _pages
Note 783094.1 - Compile jsp files at Application R12 at Windows
-EOF-