更改了web.xml文件的设置,没有重新发布应用,而是替换到了服务器对应的目录下面。
过了一段时间验证,没有反映出替换之后的效果。
检查了各节点,文件确实是替换过的,于是在服务器上搜索web.xml文件,看看哪里还有此文件,发现在
AppServer\profiles\AppSrv01\config\cells\DMSWEBCell01\applications\DmsProject_war.ear\deployments\DmsProject_war\DmsProject.war\WEB-INF目录下面存在一个web.xml文件,跟已经替换的文件不一样,于是将正确的文件拷过来,重启应用,问题解决。
过了一段时间,又出现了web.xml文件被替换回去的问题,发现只要重启node,这个文件就会被替换成原始的文件。
原因是在 AppServer\profiles\AppSrv01\config\cells\DMSWEBCell01\applications\DmsProject_war.ear文件夹下面存在着DmsProject_war.ear包,这个包是上次发布的版本,当重启node的时候,会将这个包解压到内存,将web.xml文件覆盖到目录下面。
得出结论:可以在服务器上替换文件快速的解决问题,但是像WEB-INF下面的一些配置文件,如果有更改,最好重新打包发布版本。不然会产生上述问题。
分享到:
相关推荐
websphere_plugin-cfg.xml文件内容解析.pdf
(Tomcat服务器)详细解读server.xml文件
ar.com.tadp.xml.rinzo_0.9.0.zip eclipse xml 插件
ws的webservice服务端,启动时报错“metro-default.xml not fund ”百度了很长时间,方案都不能解决问题,后来goole了一下,参考了一个网页,非常管用,考虑到google有些同学没法访问,特地上传一下相关配置文件。
Title: Node Patterns – Databases: Volume I – ... Node was originally designed with that intention in mind, but meanwhile it also has been successfully used to build traditional web applications: an ...
java发布wsdl部署到was 8.5报错的时候引入的jar包,比如如下情况: Caused by: java.lang.NoClassDefFoundError: com.sun.org.apache.xml.internal.resolver.CatalogManager at ...
使用weblogic12c发布jax-ws的webservice服务端,或升级weblogic到weblogic12.1.3,启动时报错“metro-default.xml not fund 错误的解决办法。
运用WAS进行Web负载测试.doc运用WAS进行Web负载测试.doc
进入安装包目录cd installManager,编辑install.xml文件,编辑后的文件内容如下: <?xml version="1.0" encoding="UTF-8"?> ‘true‘ temporary=‘true‘> ‘.‘/> ‘agent_core,agent_jre‘ id=...
At first, XML was a curiosity about which a few technological boffins were getting a little over-excited—an interesting technology looking for a place to happen. Gradually, however, developers came ...
可以生成梦幻、大话的WAs文件可以替换Tga文件。
网上找这个WebSphere(was)中间件或者应用服务器的相关资料还是挺少的。这里是一份关于was如何配置https证书,实现https访问的教程。
videojs播放rtmp流,测试代码,需要部署到服务器上(包括但不限于tomcat,iis),路径为test/tes2.html。
The first edition of Node.js in Action was about web development with a particular focus on the Connect and Express web frameworks. Node.js in Action, Second Edition has been updated to suit the ...
The first edition of Node.js in Action was about web development with a particular focus on the Connect and Express web frameworks. Node.js in Action, Second Edition has been updated to suit the ...
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'area'. One of '{MathWorksID, type}' is expected. 运行hosaver: Warning: Could not find an exact ...
The World Wide Web has been credited with bringing the Internet to the masses. The Internet was previously the stomping ground of academics and a small, elite group of computer professionals, mostly...
解决生成pdf文件第一页表头产生红色字体: Evaluation Warning : The document was created with Spire.PDF for Java
Websphere入门之一_WAS6[1].0安装.pdfWebsphere入门之一_WAS6[1].0安装.pdfWebsphere入门之一_WAS6[1].0安装.pdfWebsphere入门之一_WAS6[1].0安装.pdfWebsphere入门之一_WAS6[1].0安装.pdf
2 认识WAS..................................................................................................................................5 2.1单元:....................................................