在用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包,重新部署问题得到解决。
分享到:
相关推荐
项目启动后访问页面,页面显示Uncaught initialization Exception created by servlet这个错误.查看日志会报找不到index()的异常。
TypeError at /add_atr/ add_atr() takes 0 positional arguments but 1 was given Request Method: GET ...Django Version: 3.0.3 Exception Type: TypeError ...Exception Location: E:\env\django9\lib
今天在执行laravel migrate时出现异常,找了好半天才找到问题所在,所以这篇文章主要给大家介绍了关于Laravel 5.4中migrate报错: Specified key was too long error的解决方法,需要的朋友可以参考下。
关于NC应用was部署失败的处理 关于NC应用was部署失败的处理 关于NC应用was部署失败的处理
发生异常: OSError no library called "cairo-2" was found no library called "cairo" was found no library called "libcairo-2" was found cannot load library 'libcairo.so.2': error 0x7e cannot load library...
主要介绍了快速解决VS Code报错:Java 11 or more recent is required to run. Please download and install a recent JDK的相关资料,需要的朋友可以参考下
IBM WAS 自动部署脚本,方便实现无人值守部署J2EE应用
启动会报错:nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption....
建议使用 “keytool -importkeystore -srckeystore E:\lvchuang\lvchuang.jks -destkeystore E:\lvchuang\lvchuang.jks -deststoretype pkcs12” 迁移到行业标准格式 PKCS12。 谈出来的图片如图: 解决的方法其实很...
该文档用于解决在websphere application server 服务部署程序过程中会出现jar包冲突问题
第一次接触was,配置数据源时的操作过程及出现问题的总结
解决was7中部署axis2出错的问题: Caused by: org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing
网站优化必读:seo教程,能够让初学者快速了解网站优化排名。
NULL 博文链接:https://zzc1684.iteye.com/blog/2305849
文档包含was的详细部署步骤和一些技术手册,主要用于was的部署
was部署应用方法
was报错日志
深度好文,请下载学习备用。
xgboost4j报错:/lib/xgboost4j.dll was not found inside JAR xgboost4j版本:xgboost4j-spark-0.82 操作系统:win10 在用idea使用xgboost4j,在本地调试运行报错: failed to load xgboost4j library from jar /...