在WebSphere7.0中安装Web应用时,出现下面的错误: 错误EAR 文件可能已损坏和/或不完整。确保应用程序处于 WebSphere(R) Application Server 当前版本的兼容 Java(TM) Platform, Enterprise Edition(Java EE)级别。 
com.ibm.websphere.management.application.client.AppDeploymentException: [Rootexception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: application.htm] 
好像WebSphere7.0不支持直接安装WAR格式的Web应用了,同一个文件在WebSphere6。1和5。0下都可以正常发布的。 请教如何解决?

解决方案 »

  1.   

    WebSphere7.0支持一下文件的部署:Enterprise archive (EAR) 
    Enterprise bean (EJB) 
    Web archive (WAR) 
    Session Initiation Protocol (SIP) module (SAR) 
    Resource adapter (connector or RAR) 
    Application client modules 从错误来看,好像是web.xml文件有问题,从WebSphere7.0的sample应用中找一个比较一下。
      

  2.   

    多谢回复,我的web.XML实际上只有一个节点:
    <?xml version="1.0" ?> 
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"><web-app> 
            <welcome-file-list> 
                    <welcome-file>index.html</welcome-file> 
            </welcome-file-list> 
    </web-app> 
    应该不会有什么问题啊?
      

  3.   

    已经解决了,原来WebSphere7.0要求 Web-App节点必须包括ID这个属性。