One-stop shop to Compile JSPs in 11i, r12.1 and r12.2


Introduction –

Seasoned DBAs are already aware about architectural changes in 11i, r12 and r12.2. Likewise, there are some significant changes when you compile jsp pages in these versions. This article will cover important aspects when performing same action in different versions. We will start with 11i until r12.2 followed by a summary on differences and similarities.

JSP Cache

-          It is compiled version of JSP files.
-          They have extension .class.
-          They are stored in folder - _pages.



Compilation process of jsp file

JSP file ---conversion---> .java file ---compilation---> .class file


Differences when storing compiled .class files

In 11i, Apache JServe was responsible to compile jsp and convert the same into .class file while in r12, we have oc4j handling jsps.

Default location of compiled .class files
Release
Location
Prior 11i
$OA_HTML/_pages
11i
$COMMON_TOP/_pages
12.1
$COMMON_TOP/_pages
12.2
$EBS_APPS_DEPLOYMENT_DIR/oacore/html/WEB-INF/classes/_pages

Differences when locating perl script ojspCompile.pl

Default location of perl script ojspCompile.pl
Release
Location
11i
$JTF_TOP/admin/scripts
12.1
$FND_TOP/patch/115/bin
12.2
$FND_TOP/patch/115/bin

Differences when locating source jsp files

Default location of jsp source files
Release
Location
11i
$COMMON_TOP/html
12.1
$COMMON_TOP/webapps/oacore/html
12.2
$EBS_APPS_DEPLOYMENT_DIR/oacore/html 


Differences in nomenclature for .class files

Difference in naming convention for .class files
Release
JSP file
Class file
11i
AppsLocalLogin.jsp
_AppsLocalLogin.class
12.1
AppsLocalLogin.jsp
_AppsLocalLogin.class
12.2
AppsLocalLogin.jsp
__appslocallogin.class


One more significant change from r12.1 to r12.2 is Oracle 10g Application Server in 12.1.x has now been replaced by Oracle Fusion Middleware 11g.
We have WebLogic Admin manager and node manager that will now be managing oacore, forms and oafm as managed servers.
Prior to r12.2 they were part of opmn(Oracle Process Manager).
Above factors will play vital role in understanding steps to compile jsps in 3 versions later discussed in this article.

Steps to compile jsps

We use same script - ojspCompile.pl to compile jsps in all versions. However, location has changed, and steps have been summarized below.
I follow BBYM approach when performing any activity that involves files being modified manually or being modified by scripts.
Obviously, BBYM simply stands for 'Backup Before You Modify' :)


                                                   Oracle EBS 11i

                                             Compile Single JSP in Oracle ebs 11i
                                             Compile all JSP files in Oracle ebs 11i

                                                  Oracle EBS r12.1

                                             Compile Single JSP in Oracle ebs r12.1
                                             Compile all JSP files in Oracle ebs r12.1

                                                  Oracle EBS r12.2

                                             Compile Single JSP in Oracle ebs r12.2
                                             Compile all JSP files in Oracle ebs r12.2



References -

- 12.2 E-Business Suite JSP Page Handling, File Locations, Manual Compilation, And The Allowed JSP Features (Doc ID 1928874.1)
- Pythian Blogs


No comments:

Post a Comment