500 Internal Server Error - java.lang.NoClassDefFoundError on Login



In R12, when accessing the  E-Bussiness Suite (EBS) Login page using HTTP://HOST.DOMAIN:PORT/


ERROR:
500 Internal Server Error
java.lang.NoClassDefFoundError at
oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:126) at
oracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:170) at com.evermind[Oracle
Containers for J2EE 10g (10.1.3.0.0)

CAUSE:

The issue is caused by the following setup:
  Incorrect set-up of the Distributed Caching, port:12328 is not available.


Since Port 12328 is not available, Distributed Caching is unable to copy the class across to
other jvm's and you get the error "500 Internal Server Error java.lang.NoClassDefFoundError"


Solution


1. Disable the use of the Distributed JVM cache by changing the line in

 $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties 

LONG_RUNNING_JVM=true to LONG_RUNNING_JVM=false.

Restart opmn services


OR


1. Assign an available port for the Distributed JVM cache by using the following steps:

a. Set the correct port in your Context File -> parameter "s_java_object_cache_port".

2. Run Autoconfig on all Middle Tiers.

3. Make sure your System Profile "JTF_DIST_CACHE_PORT" has the same port specified.

4. Retest the issue.





If you like please follow and comment