# Using JPDA with Oracle9i Application Server for JSP Debugging

To use JPDA debugging protocol, you'll need to modify the parameters you send to the JVM, tell the server how to find the JDPA library, and modify the `CLASSPATH` for Oracle9i Application Server (9iAS).

These changes must be made on the computer that is hosting 9iAS. You will need administrator or root permission to make these changes.

#### Setting parameters

- In `jserv.properties`, set the `wrapper.bin` parameter to:

  >     wrapper.bin.parameters=-classic
  >     wrapper.bin.parameters=-Xdebug
  >     wrapper.bin.parameters=-Xnoagent
  >     wrapper.bin.parameters=-Djava.compiler=NONE
  >     wrapper.bin.parameters=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000

  For the invocation options for JPDA, see the Sun VM Invocation Options.

  If you are running on Solaris, you may also need to include `stdalloc=y` as part of the `-Xrunjdwp` parameter, like the following:

  >     wrapper.bin.parameters=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000,stdalloc=y

#### Adding the JPDA library

- In `jserv.properties`, set `wrapper.path` to include the location of `jdwp.dll` (This file is is part of the Java Platform Debugging Architecture):

  >     wrapper.path=D:\jpda\bin

- If Apache JServ is running on Unix:

  >     setenv LD_LIBRARY_PATH /home/jpda/lib/sparc:$LD_LIBRARY_PATH
  >     setenv PATH /home/jpda/bin:$PATH

  where `home/jpda` is the path to your JPDA installation. In addition, you will have to pass that environment variable through Apache to the JVM. To do that, in `jserv.properties`, add the following line:

  >     wrapper.env.copy=LD_LIBRARY_PATH

#### Setting the CLASSPATH

1. In `jserv.properties`, set `wrapper.classpath` to:

>     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

2. Make sure that the location of `ApacheJServ.jar` is specified:

>     wrapper.classpath=C:\Oracle\iAS\Apache\Jserv\ApacheJServ.jar

Related Topics:
Configuring Oracle9i Application Server for Remote Debugging a JSP
Using Oracle's JVM with Oracle9i Application Server for JSP Debugging

External Links:
Sun VM Invocation Options