[All]
JBuilder 3.5 / 4 / 5 Enterprise: Remote Debugging: iPlanet Web Server
By: Josh Fletcher
Abstract: How to set up iPlanet Web Server for remote debugging with JBuilder.
Question:
|
How do I set up JBuilder and iPlanet Web Server to remote debug my Servlets and JSP's? I've tried to set the debug parameters in the "jvm.option" but it still doesn't work.
|
| |
Answer:
|
There seems to be a serious flaw in the way iPlanet handles the settings for "jvm.option" in the "jvm12.conf" file. If you wish to specify multiple options, then you can type them in through the web-based admin interface like this:
Options: -Xdebug,-Xnoagent,-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
Notice how they are comma separated. Also notice that the "runjdwp" parameters are comma separated. So it looks like iPlanet sees this as:
- -Xdebug
- -Xnoagent
- -Xrunjdwp:transport=dt_socket
- server=y
- suspend=n
- address=4000
In other words, 6 parameters where there should only be 3. To get around this you need to manually edit the "jvm12.conf" and make it look like this:
jvm.option=-Xdebug
jvm.option=-Xnoagent
jvm.option=-Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n
However, if you EVER modify the JVM settings in the Web interface it will change the "jvm12.conf" back to this:
jvm.option=-Xdebug,-Xnoagent,-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
at which point you will no longer be able to remote debug. So, remember to go back and change the file if you edit it with the Web interface.
To get the server to read this file after you've hand modified if you'll have to click the "Apply" link in the Web interface. After you have applied the changes be sure to turn the server Off and back On again. At this point you should be able to connect to the iPlanet JVM from JBuilder.
|
| |
Connect with Us