web项目转移was7遇到的问题

[12-11-20 19:51:24:609 CST] 00000024 wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl openNestedArchive - module An error occurred while opening a nested archive: IWAE0006E Archive is not a valid WAR File because the deployment descriptor can not be found (case sensitive): WEB-INF/web.xml
IWAE0006E Archive is not a valid WAR File because the deployment descriptor can not be found (case sensitive): WEB-INF/web.xml


[12-11-20 19:51:24:612 CST] 00000024 wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl openNestedArchive - loose An error occurred while opening a nested archive: IWAE0023E Unable to open module file "nx.war" in EAR file "F:\workspace\nxair"
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException: A file does not exist for module element having uri: nx.war
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.checkType(ModuleRefImpl.java:564)
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:166)
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:121)
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R at com.ibm.ws.management.application.task.ConfigureTask.setMetadataComplete(ConfigureTask.java:2510)
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R at com.ibm.ws.management.application.task.ConfigureTask.performTask(ConfigureTask.java:311)
[12-11-20 19:51:24:649 CST] 00000024 SystemErr     R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:284)

[12-11-20 19:51:24:650 CST] 00000024 SystemErr     R at java.lang.Thread.run(Thread.java:735)


按照IBM技术支持说明:


You can work around this by removing references to non-existing source folders from theorg.eclipse.wst.common.component file:

  1. Switch to the Resource perspective
  2. From the Navigator tab, open the file:

    MyProject/.settings/org.eclipse.wst.common.componen
    t

  3. Remove any lines of the form:

    <wb-resource deploy-path="/WEB-INF/classes" 
    source-path="/missingFolder"/>



    . . .which refer to source directories that no longer exist in the project. Take care not to remove the default source directory:


    <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>

  4. Save your changes
  5. Avoid recreating this situation in the future by removing source folders through projectProperties > Java Build Path > Source > Remove instead of right-clicking and selecting Delete from the Project Explorer tab. Using this procedure ensures thatorg.eclipse.wst.common.component is updated correctly:


结果错误依旧,百思不得其解,郁闷了!

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值