To use Oracle's JVM debugging protocol, you need to change the JVM that Oracle9i Application Server (9iAS) uses, modify the parameters you send to the JVM, and modify the CLASSPATH for Apache JServ.
These changes must be made on the computer that is hosting 9iAS. You will need administrator or root permission to make these changes.
wrapper.bin=C:\Oracle\iAS\Apache\jdk\bin\java.exe
wrapper.bin.parameters=-XXdebugondemandquietport4000
The -XXdebug parameter options are the following:
ondemand
Start the java program right away and allow a debugger to connect any time. The default is the Java program stays halted until a debugger is connected.
port4000
Debugger must connect at the specified port. The default port is 4000.
quiet
Don't print connection messages. The default is connection messages are sent to standard error.
#ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
Then add a new ApJServAction .jsp entry:
ApJServAction .jsp /servlets/oracle.jsp.JspServlet
servlet.oracle.jsp.JspServlet.initArgs=emit_debuginfo=true servlet.oracle.jsp.JspServlet.initArgs=jspcompiler=oracle.jdeveloper.jsp.JspOjcCompiler servlet.oracle.jsp.JspServlet.initArgs=classpath=D:\Oracle\iAS\Apache\jdk\lib\tools.jar
wrapper.classpath=C:\Oracle\iAS\Apache\jdk\lib\tools.jar wrapper.classpath=C:\Oracle\iAS\Apache\Jsdk\lib\jsdk.jar wrapper.classpath=C:\Oracle\iAS\Apache\Jsdk\lib\ojsp.jar wrapper.classpath=C:\Oracle\iAS\Apache\Jsdk\lib\servlet.jar wrapper.classpath=C:\Oracle\iAS\Apache\Jsdk\lib\ojc.jar
wrapper.classpath=C:\Oracle\iAS\Apache\Jserv\ApacheJServ.jar