Failed to deploy to WLS 10 because of ADFApplicationLifecycleListener missing

By W.Zh Apr 15 2009

Issue: When I create a project in Jdev and test it, runs fine, then I deploy the project EAR to the standalone WLS 10. it failed to deploy, with Exception. Check the WLS log file will find that:

java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener

But project runs fine in the JDev 11g(version 11.1.1.01 build ***** 5188 )’s integrated WLS.

If you comment out the

<listener>

<listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>

</listener>

in the weblogic-application.xml file, then deploy and runs fine.

Reason:

This listener is a patch added in this version Jdev in fact to slove the Repeated start/stop or redeploy causes memory leak (7393267). See the link
http://www.oracle.com/technology/products/jdev/htdocs/11/knownissues.html?_template=/ocom/print

So the listener will be auto added to config file again and again even you comments it out.

When you install the ADF lib to the WLS, you will use the Jdev to intall it, even you use total same version Jdev(of coz you must use same version)

you will also get this error. Reason is because of install missing to add the adf-share-wls.jar.

Solution:

You can find this jar in the …/youdomain/config/deployments/, if not, get it from your Jdev install folders. Then copy this file to the WLS installed folder of  %JDEV_HOME%\modules\oracle.adf.share_11.1.1\adf-share-wls.jar

Restart your WLS to see it works

Advertisements