How to Compile jsp files at Application R12 at term?

本文介绍了如何在R12环境中手动编译JSP文件的方法,包括使用ojspCompile.pl脚本的不同参数选项,以及如何配置应用程序以便在页面被访问时立即编译已更改的JSP文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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-

转载于:https://www.cnblogs.com/ebs-blog/archive/2010/07/19/2167310.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值