在websphere上部署应用遇到的问题
来源:互联网 发布:批量样本数据生成工具 编辑:程序博客网 时间:2024/05/01 22:19
我相信客户的变化是随心情的, 我突然接到通知, 系统要在webshpere上运行, 哈哈哈... -_-
webshpere长什么样???
用jar命令将应用打成war包, 部署到webshpere时显示web.xml错误, shit! 由于不确认出错的具体原因, 我将web.xml文件中的内容全部清空, 只留下
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/webapp_2_3.dtd">
<web-app>
</web-app>
这次部署通过, 问题可以确定是出在web.xml文件上.
web.xml文件有一大堆servlet之类的标签, 上网搜了一下"web.xml 顺序", 找到一篇文章
Problem(Abstract)
Enterprise application fails to deploy and throws the following exception:
AppDeploymentException:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
Symptom
Cause
The EAR file might be corrupt and/or incomplete.The enterprise application web.xml file must follow the web-app_2_3.dtd standard. In this case, the filter tag is placed after the servlet tag. The filter tag must be placed before the servlet tag.
Resolving the problem
The web.xml file must follow the web-app_2_3.dtd order:
<!ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>
If the application fails to deploy during the upload operation, check the order of elements in the web.xml file and place the tag in the order shown above to avoid the deployment issue.
看来websphere对web.xml的校验比较严. 我调整了web.xml的顺序, 部署, shit! 还是没通过! 删除了所有注释和空行, 再部署, 依然没有通过. 这次可把我整没招了. 找来高手一起检查, 发现其中一个servlet标签中带有"description"属性, 把这个属性删除, 部署, 这次成功了.我晕, websphere, 真强啊!!
- 在websphere上部署应用遇到的问题
- Struts2部署在Websphere上的问题
- osgi应用使用桥接的方式打成war包部署在websphere上时遇到的与cxf相关的问题
- 部署应用到websphere上发现的问题
- SPING框架部署在websphere上碰到的问题
- 调用部署在websphere上的EJB
- # 在Linux下的was服务器上部署web应用遇到问题
- ANT脚本编译成功的WAR包在部署WebSphere的时候遇到问题
- 在新的主机上部署网站遇到的问题
- websphere 部署到eclipse中间遇到的问题
- 在iis上部署django时遇到的问题
- [AWS] 记录在AWS上部署WordPress遇到的问题
- 在websphere6中部署应用遇到的struts问题
- jstl 在tomcat5以及webSphere上的部署
- 在MyEclipse中调试部署到Websphere上的程序
- 关于 WebSphere 的应用部署
- 关于 WebSphere 的应用部署
- 关于 WebSphere 的应用部署
- DirectShow 学习(三) CBaseFilter类源代码解析(转载)
- 一个老程序员的心理话
- 新旧版本的DI-624+A
- Nutch Crawler工作流程
- DirectShow 学习(四) 部分Helper Classes类源代码分析(转载)
- 在websphere上部署应用遇到的问题
- DirectShow 学习(五) CSource类和其一个具体实现例子的源代码分析(转载)
- Qzone中竟然不能使用“抵制”这个词
- 活动共享:写日志,免费参加精品系列课程
- 超高速互联网:几秒下载完《黑客帝国》
- MFC 运行过程(摘录)
- DirectShow 学习(六): CTransfromFilter及相关联Pin类的源代码解析(转载)
- MFC中闪烁的处理
- DirectShow 学习(七): CTransInPlaceFilter及相关联Pin类的源代码解析(转载)