`
wenlongsust
  • 浏览: 66962 次
  • 性别: Icon_minigender_1
  • 来自: 西安
文章分类
社区版块
存档分类
最新评论

WAS部署war包报错:发生 IWAE0022E Exception异常

 
阅读更多

在用WAS部署应用程序的时候,通常先会打一个空的war包部署上,然后把程序覆盖到应用目录下就ok。要不然,包含各种程序的war包在部署的时候老是会出现war包异常,因为war包在部署的时候,WAS会对war包的内容格式进行严格校验。

之前,我一直也是这么做的,可是今天,又遇到了问题。

问题描述:部署war包是出现异常

发生 IWAE0022E Exception occurred loading deployment descriptor for module “demo.war” in EAR file “/home/was/was6/profiles/appsrv01/wstemp/714564614/upload/demo_war.ear” 异常。查看日志以获取详细信息。

查看SystemErr.log

Wrapped exception
org.xml.sax.SAXParseException: Attribute “version” must be declared for element type “web-app”.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)

问题解决:需修改web.xml文件

修改前


修改后

修改完web.xml之后,重新打war包,重新部署问题得到解决。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics