将导入的mavenized应用程序部署到Myeclipse时失败

将导入的mavenized应用程序部署到Myeclipse时失败,maven,jakarta-ee,websphere,myeclipse,Maven,Jakarta Ee,Websphere,Myeclipse,我们最近将J2EE转换为一个maven项目。很好。能够创建EAR文件并将其直接安装到WebSphere8.5.5。经过充分测试 我们成功地将maven项目导入Myeclipse,并成功地构建了它 当我们尝试将应用程序从Myeclipse部署到WAS时,我们收到以下消息提示 ADMA5014E:应用程序belsize-ear-0.1-SNAPSHOT的安装失败 Trace看起来像这样 [5/15/21 17:15:42:590 UTC] 00000081 SystemErr R org.e

我们最近将J2EE转换为一个maven项目。很好。能够创建EAR文件并将其直接安装到WebSphere8.5.5。经过充分测试

我们成功地将maven项目导入Myeclipse,并成功地构建了它

当我们尝试将应用程序从Myeclipse部署到WAS时,我们收到以下消息提示

ADMA5014E:应用程序belsize-ear-0.1-SNAPSHOT的安装失败

Trace看起来像这样

[5/15/21 17:15:42:590 UTC] 00000081 SystemErr     R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ArchiveWrappedException
Stack trace of nested exception:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException: A file does not exist for module element having uri: com.cslucas.belsize-belsize-ejb-0.1-SNAPSHOT.jar
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.checkType(ModuleRefImpl.java:591)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:167)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:120)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getModuleFile(EARFileImpl.java:166)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:842)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:230)
    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:223)
    at com.ibm.ws.management.application.task.ConfigureTask.createEJBModuleDeployment(ConfigureTask.java:2092)
    at com.ibm.ws.management.application.task.ConfigureTask.createMD(ConfigureTask.java:2019)
    at com.ibm.ws.management.application.task.ConfigureTask.createMDsForModuleRefs(ConfigureTask.java:1225)
    at com.ibm.ws.management.application.task.ConfigureTask.createMDsIfNeeded(ConfigureTask.java:1093)
    at com.ibm.ws.management.application.task.ConfigureTask.reconcileModuleDeployment(ConfigureTask.java:992)
    at com.ibm.ws.management.application.task.ConfigureTask.performTask(ConfigureTask.java:373)
    at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:315)
    at java.lang.Thread.run(Thread.java:822)
Myeclipse中的跟踪显示了这一点

!ENTRY com.genuitec.eclipse.webclipse.livepreview 1 0 2021-05-15 17:15:43.340
!MESSAGE CodeLive instrumentation has contributed 17.8s into the total deployment time of 151.1s deploying to [WebSphere Application Server 8.5 at localhost]

!ENTRY org.eclipse.wst.server.core 4 0 2021-05-15 17:15:43.347
!MESSAGE Could not publish to the server.
!STACK 1
com.genuitec.eclipse.core.GenuitecCoreException: ADMA5014E: The installation of application belsize-ear-0.1-SNAPSHOT failed.
    at com.genuitec.eclipse.blue.websphere.admin.internal.WebSphereAdminClient.deployApplication(WebSphereAdminClient.java:194)
    at com.genuitec.eclipse.blue.websphere.deployment.LooseConfigDeploymentPublisher.publishDeployment(LooseConfigDeploymentPublisher.java:154)
    at com.genuitec.eclipse.blue.websphere.WebSphereServerBehaviour.internalPublishDeployment(WebSphereServerBehaviour.java:215)
    at com.genuitec.eclipse.server.core.GenuitecAppServerBehaviour.publishDeployment(GenuitecAppServerBehaviour.java:104)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.intPublishDeployment(ServerBehaviourDelegate.java:1290)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishDeployments(ServerBehaviourDelegate.java:1268)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish2(ServerBehaviourDelegate.java:1047)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:784)
    at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3375)
    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:372)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: com.genuitec.eclipse.blue.websphere.admin.proxy.DeploymentException: ADMA5014E: The installation of application belsize-ear-0.1-SNAPSHOT failed.
    at com.genuitec.eclipse.blue.websphere.admin.proxy.WebSphereAdminClientProxy.doAdminTask(WebSphereAdminClientProxy.java:593)
    at com.genuitec.eclipse.blue.websphere.admin.proxy.WebSphereAdminClientProxy.deployApplication(WebSphereAdminClientProxy.java:382)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdminFactory$PassThroughProxyHandler.invoke(WebsphereAdminFactory.java:169)
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdminFactory$PassThroughProxyHandler$1.run(WebsphereAdminFactory.java:134)
    at com.genuitec.eclipse.blue.websphere.admin.internal.WebSphereAdminThread.run(WebSphereAdminThread.java:55)
!SUBENTRY 1 com.genuitec.eclipse.blue.websphere.core 4 0 2021-05-15 17:15:43.347
!MESSAGE ADMA5014E: The installation of application belsize-ear-0.1-SNAPSHOT failed.
!STACK 0
com.genuitec.eclipse.blue.websphere.admin.proxy.DeploymentException: ADMA5014E: The installation of application belsize-ear-0.1-SNAPSHOT failed.
    at com.genuitec.eclipse.blue.websphere.admin.proxy.WebSphereAdminClientProxy.doAdminTask(WebSphereAdminClientProxy.java:593)
    at com.genuitec.eclipse.blue.websphere.admin.proxy.WebSphereAdminClientProxy.deployApplication(WebSphereAdminClientProxy.java:382)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdminFactory$PassThroughProxyHandler.invoke(WebsphereAdminFactory.java:169)
    at com.genuitec.eclipse.blue.websphere.admin.WebsphereAdminFactory$PassThroughProxyHandler$1.run(WebsphereAdminFactory.java:134)
    at com.genuitec.eclipse.blue.websphere.admin.internal.WebSphereAdminThread.run(WebSphereAdminThread.java:55)
我们在这里发现了一些东西

但不太确定它是否相关,因为我们能够将EAR从Maven直接部署到WAS。只有当我们尝试从Myeclipse部署它时,才会发生这种情况


期待有关此问题的指导。

只想提及我们在MyEclipse论坛上对您的问题添加了回复,我们将继续回复: