I am experiencing the error below when deploying an application on Weblogic server 12c.
weblogic.management.DeploymentException: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationStateListener
The full details of the deployment are as follows;
[08:29:19 PM] ---- Deployment started. ----
[08:29:19 PM] Target platform is (Weblogic 12.x).
[08:30:06 PM] Retrieving existing application information
[08:30:07 PM] Retrieving Shared Libraries Information from the server.
[08:30:07 PM] Running dependency analysis...
[08:30:07 PM] Building...
[08:30:13 PM] Deploying 2 profiles...
[08:30:14 PM] Wrote Web Application Module to D:\OracleJDeveloperProjects\IEKMembership\ViewController\deploy\IEKMembership_ViewController_webapp.war
[08:30:14 PM] Wrote Enterprise Application Module to D:\OracleJDeveloperProjects\IEKMembership\deploy\MembershipIEK.ear
[08:30:17 PM] Deploying 1 data source(s) to the server...
[08:30:19 PM] Deploying Application...
[08:30:44 PM] [Deployer:149193]Operation "deploy" on application "MembershipIEK" has failed on "AdminServer".
[08:30:44 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application MembershipIEK on AdminServer.: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationStateListener.
[08:30:45 PM] weblogic.management.DeploymentException: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationStateListener
[08:30:46 PM] Deployment cancelled.
[08:30:46 PM] ---- Deployment incomplete ----.
[08:30:46 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
My weblogic-application.xml file contents are below;
<?xml version = '1.0' encoding = 'windows-1252'?>
<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.6/weblogic-application.xsd"
xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">
<listener>
<listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationStateListener</listener-class>
</listener>
<listener>
<listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>
</listener>
<module>
<name>iek_db_connection</name>
<type>JDBC</type>
<path>META-INF/iek_db_connection-jdbc.xml</path>
</module>
<library-ref>
<library-name>adf.oracle.domain</library-name>
</library-ref>
</weblogic-application>