【问题标题】:The url-pattern WSATCoordinator in web application is mapped to multiple ServletsWeb 应用程序中的 url-pattern WSATCoordinator 映射到多个 Servlet
【发布时间】:2016-09-05 19:29:20
【问题描述】:

我安装了 weblogic 12.2.1。即最新版本并低于错误

<May 10, 2016 10:21:05 PM IST> <Error> <Deployer> <BEA-149205> <Failed to initia
lize the application "my-app-Snapshot" due to error web
logic.application.ModuleException: weblogic.management.DeploymentException: [HTT
P:101401]The url-pattern WSATCoordinator in web application my-app-Snapshot.war is mapped to multiple Servlets.
weblogic.application.ModuleException: weblogic.management.DeploymentException: [
HTTP:101401]The url-pattern WSATCoordinator in web application my-app-Snapshot.war is mapped to multiple Servlets.
        at weblogic.application.internal.ExtensibleModuleWrapper.prepare(Extensi
bleModuleWrapper.java:114)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:100)
        at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleSta
teDriver.java:196)
        at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleSta
teDriver.java:191)
        at weblogic.application.utils.StateMachineDriver$ParallelChange.run(Stat
eMachineDriver.java:83)
        Truncated. see log file for complete stacktrace
Caused By: weblogic.management.DeploymentException: [HTTP:101401]The url-pattern
 WSATCoordinator in web application my-app-Snapshot.war
 is mapped to multiple Servlets.
        at weblogic.servlet.internal.WebAppServletContext.logAndThrowDeploymentE
xception(WebAppServletContext.java:1299)
        at weblogic.servlet.internal.WebAppServletContext.registerServletMapping
(WebAppServletContext.java:1620)
        at weblogic.servlet.internal.WebAppServletContext.registerServletMapping
s(WebAppServletContext.java:1497)

我看到一个与之相关的问题,即https://bugster.forgerock.org/jira/si/jira.issueviews:issue-html/OPENAM-7947/OPENAM-7947.html,但它被标记为不可重现。知道是什么问题吗?

同样的war文件在tomcat上运行良好

【问题讨论】:

    标签: java weblogic12c


    【解决方案1】:

    如果在java代码中使用web注解,就不用再在web.xml文件中声明servlet了。

    你可以试试去掉web.xml中对应的“servlet”和“servlet-mapping”标签

    WebLogic 12.1.3 似乎可以处理双重声明(内联注释和 xml),但在 WebLogic 12.2 中不再适用。

    当我指定“serviceName”参数以及在 web.xml 文件中声明具有相同值的 servlet 时,@webservice 注释出现此错误。

    【讨论】:

      猜你喜欢
      • 2017-06-07
      • 2011-09-21
      • 2018-01-17
      • 2011-05-21
      • 2015-09-13
      • 1970-01-01
      • 2020-06-26
      • 2015-02-24
      • 2020-04-11
      相关资源
      最近更新 更多