作为服务器运行 我收到以下错误 ===-6ren">
gpt4 book ai didi

java - ADMA5014E 将 Mavenized Java 应用程序安装到 WebSphere 时出错,并出现 NoModuleFileException : "A file does not exist for module element having uri"

转载 作者:行者123 更新时间:2023-12-02 10:08:18 25 4
gpt4 key购买 nike

在对现有的 java 应用程序进行 mavenizing 后,在运行该项目时出现以下错误。在构建 Maven 项目时,我没有收到任何错误,但只有 右键单击 -> 作为服务器运行 我收到以下错误

======== AppEAR========

Failed to add or remove the application from the server: appEAR
[3/15/19 11:49:50:857 IST] 00000076 InstallSchedu I ADMA5016I: Installation of appEAR started.
[3/15/19 11:49:52:572 IST] 00000076 wtp W org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl collectFilesFromLooseArchives Archive URI [ C:\UBS\Dev\Maven\ws45\appEAR ]: Loose archive URI [ app-1.0.war ] Loose Archive [ org.eclipse.jst.j2ee.commonarchivecore.looseconfig.internal.impl.LooseLibraryImpl@870e53f6 (uri: app-1.0.war, binariesPath: C:/UBS/Dev/Maven/ws45/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\app, resourcesPath: C:/UBS/Dev/Maven/ws45/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\app, archiveType: <unset>, otherArchiveType: null, archiveVersion: <unset>) ]: Already mapped to [ com.ibm.etools.commonarchive.impl.WARFileImpl@9278d82b (URI: app-1.0.war, lastModified: 0, size: 0, directoryEntry: <unset>, originalURI: app-1.0.war) (types: null) ]
[3/15/19 11:49:58:378 IST] 00000076 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Programs\IBM\WebSphere855\AppServer\profiles\AppSrv01\logs\ffdc\server1_618314b7_19.03.15_11.49.58.2754582458384981183218.txt com.ibm.ws.management.application.task.ConfigureTask.performTask 471
[3/15/19 11:49:58:570 IST] 00000076 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Programs\IBM\WebSphere855\AppServer\profiles\AppSrv01\logs\ffdc\server1_618314b7_19.03.15_11.49.58.5108999045291617931632.txt com.ibm.ws.management.application.task.ConfigureTask.performTask 484
[3/15/19 11:49:58:618 IST] 00000076 InstallSchedu I ADMA5014E: The installation of application appEAR failed.
[3/15/19 11:49:58:571 IST] 00000076 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: app.war
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.createWebModuleDeployment(ConfigureTask.java:2106)
at com.ibm.ws.management.application.task.ConfigureTask.createMD(ConfigureTask.java:2008)
at com.ibm.ws.management.application.task.ConfigureTask.createMDsForModuleRefs(ConfigureTask.java:1217)
at com.ibm.ws.management.application.task.ConfigureTask.createMDsIfNeeded(ConfigureTask.java:1085)
at com.ibm.ws.management.application.task.ConfigureTask.reconcileModuleDeployment(ConfigureTask.java:984)
at com.ibm.ws.management.application.task.ConfigureTask.performTask(ConfigureTask.java:370)
at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:315)
at java.lang.Thread.run(Thread.java:790)

[3/15/19 11:49:58:571 IST] 00000076 SystemErr R Stack trace of nested exception:
[3/15/19 11:49:58:572 IST] 00000076 SystemErr R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException: A file does not exist for module element having uri: app.war
[3/15/19 11:49:58:572 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.checkType(ModuleRefImpl.java:591)
[3/15/19 11:49:58:579 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:167)
[3/15/19 11:49:58:579 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:120)
[3/15/19 11:49:58:580 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getModuleFile(EARFileImpl.java:166)
[3/15/19 11:49:58:580 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:842)
[3/15/19 11:49:58:587 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:230)
[3/15/19 11:49:58:587 IST] 00000076 SystemErr R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:223)
[3/15/19 11:49:58:588 IST] 00000076 SystemErr R at com.ibm.ws.management.application.task.ConfigureTask.createWebModuleDeployment(ConfigureTask.java:2106)
[3/15/19 11:49:58:588 IST] 00000076 SystemErr R at com.ibm.ws.management.application.task.ConfigureTask.createMD(ConfigureTask.java:2008)
[3/15/19 11:49:58:588 IST] 00000076 SystemErr R at com.ibm.ws.management.application.task.ConfigureTask.createMDsForModuleRefs(ConfigureTask.java:1217)
[3/15/19 11:49:58:588 IST] 00000076 SystemErr R at com.ibm.ws.management.application.task.ConfigureTask.createMDsIfNeeded(ConfigureTask.java:1085)
[3/15/19 11:49:58:588 IST] 00000076 SystemErr R at com.ibm.ws.management.application.task.ConfigureTask.reconcileModuleDeployment(ConfigureTask.java:984)
[3/15/19 11:49:58:588 IST] 00000076 SystemErr R at com.ibm.ws.management.application.task.ConfigureTask.performTask(ConfigureTask.java:370)
[3/15/19 11:49:58:589 IST] 00000076 SystemErr R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:315)
[3/15/19 11:49:58:589 IST] 00000076 SystemErr R at java.lang.Thread.run(Thread.java:790)

最佳答案

好的..这是解决方案。这可能会帮助“如果有人遇到类似的错误”:)

我的项目有两个文件夹

  1. 应用程序 -> 创建 WAR 文件
  2. appEAR -> 创建 EAR 文件(此 ear 文件充当上述 war 文件的包装器)

application.xml(路径为appEAR -> META-INF -> application.xml)

从此更改标签 web-uri 内的值app.warapp-1.0.war 因为创建的 war 文件的名称是 app-1.0.war 而不是 app.war

更新项目并再次运行。有用。

知道解决方案后就很简单

关于java - ADMA5014E 将 Mavenized Java 应用程序安装到 WebSphere 时出错,并出现 NoModuleFileException : "A file does not exist for module element having uri",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55176829/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com