Sunday, 19 August 2012

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

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 solutio

No comments:

Post a Comment

Number of Visitors