【问题标题】:weblogic.j2ee.dd.xml.AnnotationProcessException ( weblogic 12c and spring5 java based config)weblogic.j2ee.dd.xml.AnnotationProcessException(基于 weblogic 12c 和 spring5 java 的配置)
【发布时间】:2018-11-21 13:37:19
【问题描述】:
Hi am new to spring mvc java based configuration,

i get this error when i run this app on weblogic 12c,

weblogic.j2ee.dd.xml.AnnotationProcessException: [HTTP:101396]Either the urlPatterns or the value attribute in the WebServlet annotation MUST be present.

但是,相同的项目在 tomcat 中按预期运行。那我做错了什么?

【问题讨论】:

    标签: java spring spring-mvc weblogic12c


    【解决方案1】:

    我找到了解决方案,我意识到这必须是一个基于 xml 的错误,我使用的 web.xml 版本是 3.1,我不得不将我的 web.xml 降级到 2.4,这是帮助我的线程 https://community.oracle.com/message/14757320#14757320,希望有人觉得这很有用。

    【讨论】:

      猜你喜欢
      • 2012-12-29
      • 1970-01-01
      • 2020-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-20
      • 1970-01-01
      • 2015-02-10
      相关资源
      最近更新 更多