Saturday 14 September 2013

How to compile individual JSP manually in R12?

How to compile individual JSP manually in R12?


For help use below cmd.
[applvision@apps comn]$  $FND_TOP/patch/115/bin/ojspCompile.pl
syntax: /apps/vision/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/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

[applvision@apps comn]$



STEP 1*:-All jsp's are located at OA_HTML.

cd $COMMON_TOP/_pages
Go to above location and move/delete any .class file and compile the same jsp file.

[applvision@apps _pages]$ cd $COMMON_TOP/_pages
[applvision@apps _pages]$ ls -tlrh _ibuiinsd.class
-rw-r--r-- 1 applvision applmgr 107K Mar 30  2009 _ibuiinsd.class
[applvision@apps _pages]$ mv _ibuiinsd.class _ibuiinsd.class_14sep2013
[applvision@apps _pages]$

Now go to cd $OA_HTML.

[applvision@apps html]$  cd $OA_HTML
[applvision@apps html]$ ls -ltrh ibuiinsd.jsp
-rw-r--r-- 1 applvision applmgr 3.9K Jan  3  2007 ibuiinsd.jsp
[applvision@apps html]$

sTEP 2*:- Now compile jsp.

[applvision@apps _pages]$ $FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'ibuiinsd.jsp' --flush
logfile set: /apps/vision/inst/apps/vision_apps/logs/appl/rgf/ojsp/ojspc_error.log
starting...(compiling all)
using 10i internal ojsp ver: 10
quick compile:
  files to compile...1
translating and compiling:
  translating jsps...1/1 in 2s
  compiling jsps...1/1 in 4s
Finished!

STEP 3*:-Check whether the respective class file has been created or not.
[applvision@apps _pages]$ ls -tlrh /apps/vision/apps/apps_st/comn/_pages/_ibuiinsd.class
-rw-r--r-- 1 applvision applmgr 107K Sep 15 04:56 /apps/vision/apps/apps_st/comn/_pages/_ibuiinsd.class
[applvision@apps _pages]$ date
Sun Sep 15 04:56:39 IST 2013
[applvision@apps _pages]$


STEP4:
Start the Apache services or Middle-ware services.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi Abdul.
    Its nice and useful info. Hope this may also useful here:

    Steps for compiling JSPs Manually

    Thanks,

    ReplyDelete
  3. The main motive of the Big data service providers is to spread the knowledge so that they can give more big data engineers to the world.

    ReplyDelete