title: Getting "java.lang.NoClassDefFoundError: weblogic/application/ApplicationStateListener" while deploying application into Weblogic server
body: <p>Getting NoClassDefFoundError after adding listener "ADFApplicationStateListener" in weblogic-appliations.xml.</p>
  
  <p>Earlier weblogic-applications.xml has listener "ADFApplicationLifecycleListener". I am able to deploy the application with this listener.
  But as per the mandates specified in the section "<strong>Custom ADF application Deployment requirements</strong>" of JDeveloper documentation in the below link, I have configured with the "ADFApplicationStateListener" listener.<br/>
  <a href="http://www.oracle.com/technetwork/developer-tools/jdev/documentation/121200-rn-1917713.html" rel="nofollow">http://www.oracle.com/technetwork/developer-tools/jdev/documentation/121200-rn-1917713.html</a></p>
  
  <p>How can I resolve this error ?</p>
  
  <p>Thanks,<br/>
  Gopal.</p>
  
  <pre><code>Caused by: java.lang.NoClassDefFoundError: weblogic/application/ApplicationStateListener
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
          at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
          at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
          at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:101)
          at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
          at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:247)
          at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:140)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
          at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:104)
          at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
  </code></pre>