Clearing JSP cache in R12 (s_jsp_main_mode)

Posted on June 25, 2007. Filed under: R12 |

There is a change in the default behaviour of handling JSP cache
in R12 as opposed to 11i. Remember, 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.

So, in an 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.

To overcome this, as per Oracle, whenever JSP cache is cleared, we have to run
“ojspcompile.pl” 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.

Hope this tip was helpful.

Thanks,
Oracle Pitstop team

About these ads

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

5 Responses to “Clearing JSP cache in R12 (s_jsp_main_mode)”

RSS Feed for OraclePitStop – Lets share some knowledge Comments RSS Feed

Too Good

You have described in very simple terms..Kewl..

Hi,
This is really helpful. Recently i experienced the same, i cleared the _pages and released the instance. and i had a bad experienced from my client when they tried to login.
Is there any short way to clear cache…?

[...] Posted on November 11, 2008. Filed under: Apps Technology Stack, Configuration, DBA/Admin Tips, Diagnostics, R12, Technology, TroubleShooting | Tags: cache, component, function administrator, global cache, s_jsp_main_mode | 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. Click here for more info. [...]

This tip was very helpful. After a couple hours of frustration, I found your note and was up and running in less than 30 minutes.


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: