问题主要原因: J2EE版本过高.
环境:
Red Hat Enterprise Linux AS release 4 (Nahant)
Name IBM WebSphere Application Server – ND
Version 6.1.0.0
ID ND
Build Level b0620.14
Build Date 5/16/06
问题描述:
部署war包时,
发生 IWAE0022E Exception occurred loading deployment descriptor for module “test.war” in EAR file “/home/was/was6/profiles/appsrv01/wstemp/514564614/upload/test_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)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
问题解决:
需修改web.xml文件
修改前
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app version=”2.5″
xmlns=”http://java.sun.com/xml/ns/javaee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd”>
修改后
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app id=”WebApp_ID” version=”2.4″
xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
重新打包后部署成功
相关推荐
Eclipse+WebSphere部署WAR应用
(完整版)Eclipse+WebSphere部署WAR应用.doc
WebSphere 6.1000下MyEclipse 6.0.0.M1 Struts2+Spring2+Hibernate3 集成环境配置 ---------------------------------------------------------------------------------------------------------------------- 一 ...
系统WebSphere部署手册
NULL 博文链接:https://fangsystem.iteye.com/blog/1423421
\websphere部署EJB3.docx \websphere部署EJB3.docx \websphere部署EJB3.docx 使用的是 office2007
Websphere部署发布步骤
websphere常见问题及解决办法 如 Error 404: SRVE0190E JSPG0049E
Websphere部署与配置手册,websphere搭建
websphere java 部署websphere java 部署
通过详细的图文,手把手教你如何用WebSphere部署工程
WebSphere安装部署手册十分详细,屡试不爽。kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
一个例子,已经打包为WAR文件,内涵DDL文件
很全的IBM WebSphere MQ 错误码大全
IBM WebSphere Portal Server V6的英文原版教程。
基于websphere部署ims,发布wms ppt 1、简介websphere结构 2、安装websphere 3、安装ims 4、部署,发布
websphere本地部署手顺websphere本地部署手顺
WebSphere 部署,如何起动服务,发布服务。数据源配置
websphere安装配置,项目部署说明