To set break points and debug JSPs in Eclipse using the OC4J app server, you have to configure OC4J.
Edit the file c:\oracle\oc4j\j2ee\home\config\global-web-application.xml and change the configuration for the OC4J JSP servlet handler to:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
<!-- you can set main_mode to "justrun" to speed up
JSP dispatching, if you don't need to recompile
your JSP anymore. You can always switch your
main_mode. Please see our doc for details -->
<!--
<init-param>
<param-name>main_mode</param-name>
<param-value>justrun</param-value>
</init-param>
-->
<!-- Add these parms to debug JSPs -->
<init-param>
<param-name>debug</param-name>
<param-value>class</param-value>
</init-param>
<init-param>
<param-name>debug_mode</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>developer_mode</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>encode_to_java</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>emit_debuginfo</param-name>
<param-value>true</param-value>
</init-param>
<!-- End of debug parms -->
<load-on-startup>0</load-on-startup>
</servlet>
After changing the configuration file and restarting the OC4J server in debug mode, I was able to stop execution in JSPs.
参见 http://www.xinotes.org/notes/note/204/
分享到:
相关推荐
Debugging Pentaho 2.0 with Eclipse
A Debugging Tool for Application using Multiple DLLs使用多个dll的调试工具
Debugging Heap Corruption in Visual C++ Using Microsoft Debugging Tools for Windows
Debugging using DWARF.pdf
Adtributo: Revenue Debugging in Advertising Systems(PPT)
Creating And Debugging Your First Web Application In Eclipse For BlackBerry SmartPhones.
Adtributo: Revenue Debugging in Advertising Systems(论文)
Fundamentals_in_debugging_nRF5x_systems - Hard Fault on nRF52.pdfFundamentals_in_debugging_nRF5x_systems - Hard Fault on nRF52.pdfFundamentals_in_debugging_nRF5x_systems - Hard Fault on nRF52....
Developing and Debugging CICS Programs Using Rational Developer for System z(RDz)
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all. Installation Download JD-Eclipse ZIP ...
Through a combination of best ...Dissect software behavior on Windows using tracing and debugging tools * Apply the above strategies to enhance knowledge of a few key fundamental topics in Windows
The Art of Debugging illustrates the use of three of the most popular debugging tools on Linux/Unix platforms: GDB, DDD, and Eclipse. In addition to offering specific advice for debugging with each ...
This article will use a sample MFC/C++ application to demonstrate the capabilities of the new Visual Studio 2008 debugger, specifically, debugging threads.
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
R语言的调试重要性不言而喻,视频为RStudio中的调试方法说明
In this chapter, you’ll explore how to inspect your LLDB Python scripts using the Python pdb module, which is used for debugging Python scripts. 19. Script Bridging Classes and Hierarchy You’ve ...
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
In Effective Debugging, Diomidis Spinellis helps experienced programmers accelerate their journey to mastery, by systematically categorizing, explaining, and illustrating the most useful debugging ...
Real-Time Debugging and Testing a Control System Using Matlab.pdf
The First In-Depth, Real-World, Insider’s Guide to Powerful Windows Debugging For Windows developers, few tasks are more challenging than debugging—-or more crucial. Reliable and realistic ...