Weblogic deployment exception: java.lang.ClassNotFoundException
<p>When I am deploying an EAR file in weblogic 12.1.1, I am getting <code>java.lang.ClassNotFoundException</code> but strangely deployment is getting successful and I am able to access the application.</p>

<p>But, when the same ear is deployed in our production environment, the below exception is returned and deployment is failed with below error  </p>

<pre><code>&lt;Unable to set the activation state to true for the application "xyz-scheduler".
weblogic.management.DeploymentException: java.lang.ClassNotFoundException: abc.xyz.ModelCI
            at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
            at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
            at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
            at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
            Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: abc.xyz.ModelCI
            at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:335)
            at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:302)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            at weblogic.utils.classloaders.GenericClassLoader.
</code></pre>

<p>The version of weblogic in production is 12.1.2 and I dont have access to view production weblogic settings. </p>

<p>Can anyone help me understand why my deployment is being successful in my local even though it threw an exception?</p>