Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

user651019May 28 2021 — edited May 28 2021

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(EJBComplianceChecker.java:340)
at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:280)
at weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:789)
at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:222)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:461)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:428)
at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:437)
at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:795)
at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:683)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1254)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:442)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:221)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Comments
Post Details
Added on May 28 2021
3 comments
361 views