Wednesday, 19 April 2017

How To Compile JSP Manually in R12

Hi DBA-Mates,
We almost time face an issue such as EBS R12 Login Page showing a blank page. This case we face almost after cloning or refresh. As we open the URL of the R12, its loading for a while and goes to a blank page, after few continuous attempts, it may show the login page or it may not also.

Just, some days ago one of our friend asked me about JPS compile details in R12. He was not clear about compiling JSP pages as how to do and when to do but hope these points may clear here. This is also a type of clearing cache in application EBS R12.

Actually this issue is caused by either missing or corrupted class files under EBS Cache $COMMON_TOP/_pages.

We can check this error on the oacore application.log file
javax.servlet.ServletException: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: _AppsLocalLogin
Dependent class: oracle.jsp.runtimev2.JspPageInfo
Loader: oc4j:10.1.3
Code-Source: /ORA-DATA/apps/tech_st/10.1.3/j2ee/home/lib/ojsp.jar
Configuration: in META-INF/boot.xml in /ORA-DATA/apps/tech_st/10.1.3/j2ee/home/oc4j.jar

It was initiated at oacore.web.html.jspxxxxx:0.0.0 using the loadClass() method.
And the missing class is not available from any code-source or loader in the system.
html: Error initializing servlet java.lang.NoClassDefFoundError: Could not initialize class oracle.apps.fnd.profiles.Profiles

For this above issue or problem, we can try this below work-around which has worked in real time.

Please follow the below action plan steps:

1. We need to login to apps server and su to apps user (applmgr).

2. Then we need to Shutdown the application services.

3. Now, compile the jsp's manually by using the command as shown below:
$cd $COMMON_TOP/
$rm _pages   [here, either you can remove or take backup]
$mkdir _pages
$chmod 755 _pages  [this may be automatically]

$perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile --flush -p 2

4. Then check whether all the jsp's are getting compiled successfully.

5. Restart the application services.

6. Open IE or your web browser and clear the browser cache.


7. Then again retest the issue. 

How to check ojspCompile.pl version:
$ adident Header ojspCompile.pl
ojspCompile.pl:
$Header ojspCompile.pl 120.10 2007/11/16 04:50:02 sbandla ship $


Some more useful links:
R12.2 Concepts and Architecture
Jobs Tips
Real Time Experiences
I was busy a lots today but I promised for today to post, So I am doing this night time.
Hope above points may helpful and useful. For any kind information or suggestions, Please write to either in comment box or contact us @https://ora-data.blogspot.in/
Thanks,

7 comments:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Oracle DBA TECHNOLOGY, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor-led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ pieces of training in India, USA, UK, Australia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Pratik Shekhar
    MaxMunus
    E-mail: pratik@maxmunus.com
    Ph:(0) +91 9066268701
    http://www.maxmunus.com/

    ReplyDelete

  2. Dear users,

    Here we are can remove _pages under $COMMON_TOP and again make directory as _pages.
    $cd $COMMON_TOP/
    $rm _pages
    $mkdir _pages
    $chmod 755 _pages
    then follow next steps...

    Thanks,
    ora-data Team.

    ReplyDelete
  3. As the year 2013 knocks for your door, listed below are few things from your development world that will make your new year
    gay and delightful. After researching well about your Drupal
    Programmer, it is possible to ask with him for signing a legal contract about the Drupal Theme Customization Project.
    Further features include tailor-made fields or sections, workflow framework
    & facilities, user-obsessed workflow & approval,
    large communities backing, auditing, desktop friendliness, search &
    tag and multi-language support etc.

    ReplyDelete
  4. I had been a good idea this blog simply by my step-brother.
    I’m undecided whether or not this article is written with the pup just as no one realize those
    finely detailed around your problems. You’re awesome!
    Appreciate it!

    ReplyDelete
  5. esmtie,Your website seemed to be revealing and even useful with me.
    Many thanks for expressing.

    ReplyDelete
  6. I delight in, cause I discovered exactly what I used
    to be having a look for. You have ended my four day lengthy hunt!
    God Bless you man. Have a great day. Bye

    ReplyDelete
  7. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle ADF . Actually I was looking for the same information on internet for Oracle ADF and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more aboutOracle ADF . By attending Oracle ADF Training .

    ReplyDelete

Thank you for your comments and suggestions. It's good to talk you.