Monday, November 18, 2013

ADF Managed Server Issue - java.lang.ClassNotFoundException

Applicable to 11g PS5(11.1.1.6.0)

After installing ADF runtime libraries on top of  Weblogic 10.3.6 base installation, extend the Weblogic domain to contain Admin Server and Managed Server (to deploy ADF applications).

Login to EM console --> Go to Weblogic Domain --> <Domain> --> Click on ADF Managed Server

To complete the ADF installation on Managed server, click on Apply JRF(Java Required Files) Template button.

The server must be restarted to for this operation to complete.

Create a simple ADF application and try to deploy it to ADF managed server. The managed server will throw following error.

<WebLogicServer> <BEA-000286> <Failed to invoke startup class "JRF Startup Class", java.lang.ClassNotFoundException: oracle.jrf.wls.JRFStartup

<Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1384433391426' for task '0'. Error is: 'weblogic.management.DeploymentException: '
Caused By: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener

Given class not found exceptions occurs when ADF libraries classpath did not set properly.

To avoid this error, nodemanager.properties file needs to be updated as mentioned below.

1. Stop ADF managed server and node manager
2. Open nodemanager.properties file located under <WLS_HOME>\wlserver_10.3\common\nodemanager directory

3. Set StartScriptEnabled to 'true'. This property will enable to start ADF managed server with start up parameters configured in start up scripts.
4. Restart the node manager and start the ADF managed server from Console.





1 comment:

Provide your thoughts !