WebLogic 报 web.xml BEA-160197 错误

本文详细解析了在Web应用中出现重复MIME映射导致的问题,通过实例展示了如何识别和解决这类错误,确保Web资源正确加载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在网上查资料有的说是部署在 WebLogic 下面的 web.xml 中不能有空格什么的。

但我遇到的这个问题实际的原因是写了两个相同的 mime-mapping  extension ,就像下面这样。在 tomcat 下面运行时没问题的。

<mime-mapping>
<extension>txt</extension>
<mime-type>application/octet-stream</mime-type>
</mime-mapping>  

<mime-mapping>
<extension>txt</extension>
<mime-type>application/octet-stream</mime-type>
</mime-mapping>  



]. The system is vulnerable to security attacks, since it trusts certificates signed by the demo trusted CA.> <Mar 17, 2025 5:13:50,408 PM CST> <Warning> <HTTP> <BEA-101403> <For security constraint with url-pattern /* in web application rtgsMOP.war, only the http methods "TRACE HEAD PURGE LOCK PROPFIND UNLINK COPY OPTIONS VIEW PUT PATCH DELETE LINK UNLOCK " are covered.> <Mar 17, 2025 5:13:51,500 PM CST> <Warning> <HTTP> <BEA-101403> <For security constraint with url-pattern /* in web application bankMOP.war, only the http methods "TRACE HEAD PURGE LOCK PROPFIND UNLINK COPY OPTIONS VIEW PUT PATCH DELETE LINK UNLOCK " are covered.> <Mar 17, 2025 5:13:52,098 PM CST> <Critical> <HTTP> <BEA-101024> <[ServletContext@1374383048[app:bankMOP module:bankMOP.war path:null spec-version:4.0]] Unsupported error status code for the error-page element in web.xml. java.lang.ArrayIndexOutOfBoundsException: -99 at weblogic.servlet.internal.ErrorManager.registerError(ErrorManager.java:51) at weblogic.servlet.internal.ErrorManager.registerErrorPages(ErrorManager.java:87) at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptors(WebAppServletContext.java:1199) at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:3241) at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1879) Truncated. > <Mar 17, 2025 5:13:52,099 PM CST> <Critical> <HTTP> <BEA-101024> <[ServletContext@1150367507[app:rtgsMOP module:rtgsMOP.war path:null spec-version:4.0]] Unsupported error status code for the error-page element in web.xml. java.lang.ArrayIndexOutOfBoundsException: -99 at weblogic.servlet.internal.ErrorManager.registerError(ErrorManager.java:51) at weblogic.servlet.internal.ErrorManager.registerErrorPages(ErrorManager.java:87) at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptors(WebAppServletContext.java:1199) at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:3241) at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1879) Truncated. > <Mar 17, 2025 5:13:53,098 PM CST> <Warning> <HTTP> <BEA-101403> <For security constraint with url-pattern /* in web application rtgsMOP.war, only the http methods "TRACE HEAD PURGE LOCK PROPFIND UNLINK COPY OPTIONS VIEW PUT PATCH DELETE LINK UNLOCK " are covered.> <Mar 17, 2025 5:13:53,157 PM CST> <Warning> <HTTP> <BEA-101403> <For security constraint with url-pattern /* in web application bankMOP.war, only the http methods "TRACE HEAD PURGE LOCK PROPFIND UNLINK COPY OPTIONS VIEW PUT PATCH DELETE LINK UNLOCK " are covered.> 帮我分析一下这个weblogic server 启动日志
最新发布
03-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值