最近用myeclipse+tomcat开发了一套程序,打成war包时不能部署,打成ear包也不能部署,提示如下错误:
异常:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
java.rmi.RemoteException: ; nested exception is: 
java.rmi.RemoteException: ; nested exception is: 
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmljava.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
java.rmi.RemoteException: ; nested exception is: 
java.rmi.RemoteException: ; nested exception is: 
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmljava.rmi.RemoteException: ; nested exception is: 
java.rmi.RemoteException: ; nested exception is: 
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmljava.rmi.RemoteException: ; nested exception is: 
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmlcom.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmlStack trace of nested exception:com.ibm.etools.archive.exception.ResourceLoadException: Could not load resource: META-INF/application.xml in archive D:\projectWorkSpace\VIP_APP\VIP_APP.earStack trace of nested exception:com.ibm.etools.archive.exception.ArchiveRuntimeException: Failed to invoke the method named: parseStack trace of nested exception:com.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN;SYSTEM_ID=http://java.sun.com/dtd/application_1_3.dtd不知道WebSphere4有什么特殊的不同,该如何解决呢?

解决方案 »

  1.   

    查红宝书啊 我想文档上应该有简单的demo的部署在tomcat下正常?
      

  2.   

    在tomcat下是正常的,我已经查到原因,是由于web.xml的<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">造成的,改成<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">就不报错了,但是程序的代码会有些不支持,郁闷......