0 Replies Latest reply on Jun 28, 2010 1:58 PM by 843804

    Encountering java.lang.NoClassDefFoundError

      Hi All,

      We have a scenario in our application that, we have a JAR and WAR file. The JAR contains an MDB. WAR contains a web application. Few of the common classes are required to be present in both the JAR and WAR files. When the JAR and WAR files were packaged as an EAR, the JAR file was getting loaded first, and therefore when the server was loading the WAR file, we encountered problems during loading the common classes by the Class Loader.

      Thus, we are currently deploying JAR and WAR files separately. Deployment has been successful. But, now the problem is that when the MDB is getting invoked, we are encountering java.lang.NoClassDefFoundError within the execution of the JAR file, even though the class file is present in the JAR file.

      Any ideas or advise please to overcome this error.