web项目转移was7遇到的问题

来源:互联网 发布:达梦数据库6.0下载 编辑:程序博客网 时间:2024/06/05 03:28
[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:


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