BEHAVIOUR of JSP Cache in R12
There is a change in the default behaviour of handling JSP cache
in R12 as opposed to 11i.
JSPs were handled by Apache Jserv engine in 11i and is being
handled by OC4J (10.1.3 AS) in R12.
In 11i,
when we clear cache ($COMMON_TOP/_pages) and try to access JSP
pages,
it gets automatically recompiled. However, this is not the case in R12 by default.
it gets automatically recompiled. However, this is not the case in R12 by default.
In R12
instance, if you clear _pages and restart apache,you will only get a blank
screen
since AppsLocalLogin.jsp wouldn’t get compiled by default. You will not even see a new _pages directory.
since AppsLocalLogin.jsp wouldn’t get compiled by default. You will not even see a new _pages directory.
As per
Oracle, whenever JSP cache is cleared, we have to run “ojspCompile.pl –compile
–flush -p 2”
to recompile ALL jsp pages in the Application. This will take roughly around 15 to 20 mts.
However, in the real world (atleast in the pre-production stage) this is not affordable.
to recompile ALL jsp pages in the Application. This will take roughly around 15 to 20 mts.
However, in the real world (atleast in the pre-production stage) this is not affordable.
The
solution to this is to change the XML file parameter “s_jsp_main_mode” to a
value of “recompile”
from the default value of “justrun” and run autoconfig. JSP pages will be recompiled automatically
after this change.
from the default value of “justrun” and run autoconfig. JSP pages will be recompiled automatically
after this change.
Note: 742107.1 – How To Clear Caches
(Apache/iAS, Cabo, Modplsql, Browser, Jinitiator, Java, Portal, WebADI)
for E-Business Suite
for E-Business Suite
Clearing
Cache(compile all jsps) in R12 instance
1-
Stop Apache --- adapcctl.sh stopall
2-
2- Clear cache
cd $COMMON_TOP/-----remove _pages
and create _pages
3-
mkdir _pages
4-
chmod 777 _pages
5-
cd $FND_TOP/patch/115/bin
6-
$ ./ojspCompile.pl --compile --flush -p 2
logfile set:
/test/mtlog/test_localhost/logs/appl/rgf/ojsp/ojspc_error.log
starting...(compiling all)
using 10i internal ojsp ver: 10
synchronizing dependency file:
enumerating jsps...8001
parsing jsp...8001
writing deplist...8001
initializing compilation:
eliminating children...5912 (-2089)
translating and compiling:
translating jsps...5912/5912 in 4m39s
compiling jsps...5912/5912 in 17m30s
Finished!
7- Start Apache -- adapcctl.sh
startall
Compiling
single jsp
ojspCompile.pl
--compile -s 'fnd%' -p 20
How to clear
cache for a specific component in R12
As we all know the normal tendency for clearing cache in
Oracle Apps is to delete the $COMMON_TOP/_pages directory.In 11i, after
deleting we dont have to recompile the jsps but in R12 we have to recompile the
pages since s_jsp_main_mode is set to justrun by default which is in turn
updated in orion-web.xml
How can i clear cache for a specific component of Oracle Apps
R12 viz., iprocurement, istore etc.,
Is this even possible ? Yes it is and this option comes handy
when somebody modifies a jsp page which is part of say istore,then it makes
sense to clear cache for istore and not for the whole server.
Clearing
cache for specific Component/Application in R12
Login as sysadmin
Select Functional Administrator responsibility
Go to Core Services ==> Caching Framework ==> Tuning
Query the application (for example iStore) or by Name or
code.
Select the component and clear the cache.
Note: For some specific configuration changes, we need to
bounce Apache also.
Clearing
Global Cache in R12
a) Go to Functional Administrator Responsibility
b) Go to Core Services ==> Caching Framework
c) Go to Global configuration and clear all the cache from
there.(Only If you want to clear all the
cache)