Logo Background

Solve java.lang.NoClassDefFoundError

  • By on April 18, 2009 | 1 Comment

    Oracle Applications login page sometimes will have the Exception: java.lang.NoClassDefFoundError.

    Request URI:/OA_HTML/AppsLocalLogin.jsp
    Exception:
    java.lang.NoClassDefFoundError

    The workaround used to solve this Exception: java.lang.NoClassDefFoundError was to rebounce the Apache server in Oracle Applications. Aside from rebounce the Apache server in Oracle Applications, you have to remove the server side cache as well.

    Stop the Apache Web Listener

    $ cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
    $ ./adapcctl.sh stop

    Rename the Apache server side cache _pages folder to another name

    $ mv $COMMON_TOP/_pages $COMMON_TOP/_pages_backup

    Start the Apache Web Listener

    $ cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME
    $ ./adapcctl.sh stop

    For a permanent solution to solve java.lang.NoClassDefFoundError:
    This error was caused by the Distributed JVM Cache was enabled and it can be solve by disabling Distributed JVM Cache is achieved by changing “LONG_RUNNING_JVM=” from “true” to “false” in the jserv.properties.

    This is controlled by AutoConfig parameter “s_long_running_jvm”. You can change the setting “s_long_running_jvm” in $CONTEXT_FILE and run the Autoconfig to reflect the setting. Please do refer Metalink for the changes you going to make and please test it before apply it to any Production server. Monitor the frequency of java.lang.NoClassDefFoundError after deploying the solution.

    Previous
    Next
    » Rapid Clone adcfgclone.pl Error
  1. #1 hari
    July 10, 2010 11:34 am

    May I know what is the referred meta link for the permanent solution.

    Post ReplyPost Reply
Leave a Comment