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

问题描述

我们最近将我们的 J2EE 转换为 Maven 项目。工作正常。能够创建 EAR 文件并将其直接安装到 Websphere 8.5.5。全面测试。

我们成功地将maven项目导入到我们的Myeclipse中并成功构建。

当我们尝试将应用程序从 Myeclipse 部署到 WAS 时,系统提示我们此消息...

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

跟踪看起来像这样

[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 installation fails on Websphere 8.5 但不太确定它是否相关,因为我们能够将 EAR 从 Maven 直接部署到 WAS。只有当我们尝试从 Myeclipse 部署它时才会发生这种情况。

期待有关此事的一些指导。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)