【问题标题】:[HTTP:101401]The url-pattern Coordinator in web application Department.war is mapped to multiple Servlets?[HTTP:101401]Web应用Department.war中的url-pattern Coordinator映射到多个Servlet?
【发布时间】:2017-06-07 21:25:29
【问题描述】:

我需要禁用 HTTP 方法 OPTIONS 。我在 web.xml 中放置了下面的配置。它在 tomcat 中有效(不允许 OPTIONS 方法),但在错误时抛出以下错误 部署

<security-constraint>
    <web-resource-collection>
        <web-resource-name>Restricted HTTP methods.</web-resource-name>
        <url-pattern>/*</url-pattern>
        <http-method>OPTIONS</http-method>
    </web-resource-collection>
    <auth-constraint />
</security-constraint>

[HTTP:101401]The url-pattern Coordinator in web application Department.war is mapped to multiple Servlets

weblogic 需要不同的配置还是 weblogic 中的已知错误?

【问题讨论】:

标签: java tomcat servlets weblogic


【解决方案1】:

我在 WL 12.2.1.3.0 中遇到了这个错误,并通过删除下面的 maven 依赖项来解决:

<exclusions>
    <exclusion>
        <groupId>javax.xml</groupId>
        <artifactId>webservices-api</artifactId>
    </exclusion>
    <exclusion>
        <groupId>com.sun.xml.ws</groupId>
        <artifactId>webservices-rt</artifactId>
    </exclusion>
</exclusions>

【讨论】:

    猜你喜欢
    • 2016-09-05
    • 2011-09-21
    • 2011-05-21
    • 2015-09-13
    • 2015-02-24
    • 2020-04-11
    • 1970-01-01
    • 2012-05-09
    • 2015-04-03
    相关资源
    最近更新 更多