【问题标题】:Could not find the WLServlet Jar找不到 WLServlet Jar
【发布时间】:2014-05-14 06:58:39
【问题描述】:

下面的代码在 apache 中运行良好

@WebServlet("/myservlet")

当我在 weblogic 中部署相同的内容时,它不起作用。互联网搜索后,我知道我应该使用类似:@WLServlet (name = "LoginServlet", mapping = {"/LoginServlet"})

我也必须使用这个导入语句import weblogic.servlet.annotation.WLServlet;

但我不知道哪个 jar 包含这些类..谁能帮我识别 jar..我已经尝试谷歌搜索它并没有帮助..

问候,

里努

【问题讨论】:

  • 您使用的是什么 weblogic 版本?此注释 @WLServlet 在 WLS 12 中已弃用,但在其中支持 @WebServlet
  • Weblogic版本为10.3.6.0
  • 试试 $WL_HOME/modules/com.bea.core.weblogic.web.api_1.4.0.0.jar

标签: spring jakarta-ee servlets weblogic weblogic11g


【解决方案1】:

正如@JoseK 建议的那样, 使用 $WL_HOME/modules/com.bea.core.weblogic.web.api_1.4.0.0.jar

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-14
    • 2017-12-04
    • 2021-03-19
    • 1970-01-01
    • 2014-03-22
    • 2019-03-02
    相关资源
    最近更新 更多