由于某种原因,我遇到了错误,而不是目标 jspx 页面
OracleJSP error: java.io.FileNotFoundException:
Set the init-param debug_mode to "true" to see the complete exception message.
(就是这样,没有文件名)。
但我不知道在哪里设置这个初始化参数。
据我在 google 上搜索,每个人都建议(好吧,早在 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?
最简单的方法是单击 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
正如 Shay 提到的,您可以只调试项目而不是运行它。要设置调试参数,只需转到:
project properties - run debug - launch settings - java options and add all your params
另一个选项 - 在调试模式下启动 Weblogic 并使用 JDeveloper 的远程调试器连接到它。