【问题标题】:How to enable debug_mode for a JSP page in modern JDeveloper/Weblogic/ADF如何在现代 JDeveloper/Weblogic/ADF 中为 JSP 页面启用 debug_mode
【发布时间】:2012-12-21 01:04:09
【问题描述】:

由于某种原因,我遇到了错误,而不是目标 jspx 页面

OracleJSP error: java.io.FileNotFoundException:

Set the init-param debug_mode to "true" to see the complete exception message.

(就是这样,没有文件名)。

但我不知道在哪里设置这个初始化参数。

据我谷歌搜索,每个人都建议(嗯,早在 2001-2009 年)将其设置在 global-web-application.xml 文件中,但现代 JDeveloper 设置中似乎缺少它。

还有人建议在web.xml(存在)中添加init-param,但添加到不存在的部分:

<servlet>
  <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>

所以我很困惑。在现代(11.1.1.6.0+)JDeveloper 设置中,我应该在哪里添加这个 init-param?

【问题讨论】:

    标签: java weblogic oracle-adf jdeveloper


    【解决方案1】:

    最简单的做法是在 JDeveloper 中单击调试图标而不是运行图标 - 这将在调试模式下启动 WebLogic,您将能够调试 JSP。

    https://blogs.oracle.com/shay/entry/introduction_to_the_adf_debugger

    您还可以使用调试参数启动 WebLogic 本身 http://www.oracle.com/technetwork/developer-tools/jdev/remotedebugwls-086628.html

    【讨论】:

      【解决方案2】:

      正如 Shay 所提到的,您可以只调试项目而不是运行它。要设置调试参数,只需转到:

      project properties - run debug - launch settings - java options and add all your params
      

      【讨论】:

        【解决方案3】:

        另一种选择 - 在调试模式下启动 Weblogic,并使用来自 JDeveloper 的远程调试器连接到它。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2016-12-01
          • 1970-01-01
          • 2021-08-07
          • 1970-01-01
          • 2013-06-08
          • 1970-01-01
          相关资源
          最近更新 更多