zoukankan      html  css  js  c++  java
  • 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包,重新部署问题得到解决。

  • 相关阅读:
    Linux crontab定时执行任务 命令格式与详细例子
    git的color configura
    Linux不用使用软件把纯文本文档转换成PDF文件的方法
    linux sar命令详细说明相关参数
    linux下sar tool command note
    Linux see 网卡当前流量
    安装调试Installing Odoo
    寻找[nginx] 由Lua 粘合的Nginx生态环境-- agentzh
    git检查与放弃本地的代码修改情况
    发现linux shell中$0,$?,$!等的特殊用法
  • 原文地址:https://www.cnblogs.com/wenlong/p/2415221.html
Copyright © 2011-2022 走看看