remote debugging on iPlanet 60sp5
I'm trying to get remote debugging working on iPlanet (Sun Web Server) version 60sp5 using jdk1.4.1. I think I've set all the setting correctly, but I get the error "Connection refused; Fatal error: Unable to attach to target VM."
Here are how things are set:
jvm12.conf for the server contains:
[JVMConfig]
jvm.enableDebug=1
jvm.compiler=NONE
jvm.option=-classic
jvm.option=-Xnoagent
jvm.option=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=3999
The the $ADMIN_SERV/start-jvm file contains:
# cat start-jvm
NSES_JDK=/usr/j2sdk1.4.1; export NSES_JDK
NSES_JRE=${NSES_JDK}/jre; export NSES_JRE
NSES_JRE_RUNTIME_LIBPATH=${NSES_JRE}/lib/sparc:${NSES_JRE}/lib/sparc/server:${NSES_JRE}/lib/sparc/classic:${NSES_JRE}/lib/sparc/native_threads:${NSES_JDK}/lib/sparc; export NSES_JRE_RUNTIME_LIBPATH
<snipped the rest>
I've stopped and restarted the admin server and the server instance I'm trying to debug.
When I run jdk 1.4 jdb, I get:
#/usr/j2sdk1.4.1/bin/jdb -attach 3999
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
<snip>
com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:346)
at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
at com.sun.tools.example.debug.tty.TTY.main(TTY.java:829)
Fatal error:
Unable to attach to target VM.
What detail am I missing? Or is JDK remote debugging not supported?
Thanks in advance.
Dave