Forum Stats

  • 3,824,914 Users
  • 2,260,439 Discussions


NoClassDefFoundError when attempting to debug in Eclipse but packaged EAR file deploy without issue

user651019 Member Posts: 2 Blue Ribbon
edited May 28, 2021 5:33AM in Enterprise Pack for Eclipse

Hi, just inherited something and it seems like I have no issue with the "compilation" within Eclipse, as well as deploying the exported EAR file directly to WebLogic. However, when I attempted to deploy the EAR project to within Eclipse, it errored out with the following error. I tends to suspect there are some dependencies issue but again, since it complies without issue within eclipse, it is giving other signals... Any clue for me?

some additional points, ABC.jar is the product of another project within the same Eclipse workspace which gets build and I have already added that into the "EAR module assembly".


Module named 'XYZ' failed to deploy. See Error Log view for more detail.

weblogic.application.ModuleException: Exception preparing module: EJBModule(ABC.jar)

Unable to deploy EJB: ABC.jar from ABC.jar:

There are 1 nested errors:

java.lang.NoClassDefFoundError: Class not found: Lxx/yy/zz/MessagePublisher;

at weblogic.ejb.container.compliance.EJBComplianceChecker.check(

at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(

at weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(

at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(

at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(

at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(

at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(

at weblogic.ejb.container.deployer.EJBDeployer.compileJar(

at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(

at weblogic.ejb.container.deployer.EJBDeployer.prepare(

at weblogic.ejb.container.deployer.EJBModule.prepare(

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(

at weblogic.application.internal.flow.DeploymentCallbackFlow$

at weblogic.application.utils.StateMachineDriver.nextState(

at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(

at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(

at weblogic.application.internal.BaseDeployment$

at weblogic.application.utils.StateMachineDriver.nextState(

at weblogic.application.internal.BaseDeployment.prepare(

at weblogic.application.internal.EarDeployment.prepare(

at weblogic.application.internal.DeploymentStateChecker.prepare(

at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(

at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(

at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(

at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(

at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(

at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(

at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(

at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$






  • dvohra21
    dvohra21 Member Posts: 14,565 Gold Crown

    As indicated by error message a class is not found. Add the jar with the class to the runtime path of WebLogic.

    java.lang.NoClassDefFoundError: Class not found: Lxx/yy/zz/MessagePublisher;
  • user651019
    user651019 Member Posts: 2 Blue Ribbon

    @dvohra21, that would be what we would do as well if it is a 3rd party JAR. However, that JAR in question is actually part of the working set (see sample below) where it is in the "Utilities" project, and will be used by the rest of the EJB/WAR projects.

    We could of course export the JAR file from the Utilities project and put it into the APP-INF/lib folder under the EAR project but that is kind of counter productive since the Utilities project will need to be recompiled/exported for every tiny changes done.

    The tricky thing is that I do have other projects where it works perfect where any change to the "utilities" project will get picked up automatically.

  • dvohra21
    dvohra21 Member Posts: 14,565 Gold Crown

    I do have other projects where it works perfect where any change to the "utilities" project will get picked up automatically.

    What is different about the other projects as compared to the project that generates error message? Should identify the issue.