Mike,
I forward this email and attached shell script in response to your jde list query.
I got this to work with little trouble.
best of luck.
On Tue, 27 Jun 2000 11:08:11 Dave Wallace wrote:
I've used it quite successfully with RC4, I've attached a script that I use
to start jrun with debugging. It also runs tail on stderr and when it is
killed tries to kill the jrun server. It will require customization for your
system, or perhaps all you really want is to see what args I pass to Java.
Best of luck,
Dave.
Ben Speakmon wrote:
> quick question not related to FAQs:
>
> is anyone out there successfully using JRun (2.3.3) to debug servlets with
> JDEBug? My version (on Linux with Blackdown 1.2.2 RC4) absolutely HATES
> the JPDA arguments, throwing internal errors, JDWP errors, and lots of
> other ugly stuff. I can't launch it from the command line.
>
> Has anybody got this to work?
>
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> Benjamin A. Speakmon
> Associate Software Engineer, Web Products Division
> TeleCommunication Systems, Inc.
#!/bin/bash
killold ()
{
oldpid=`cat /home/dwallace/.jsmdebugpid`
if [ x$oldpid != 'x' ] ; then
echo "KILLING $oldpid"
kill $oldpid
rm /home/dwallace/.jsmdebugpid
fi
}
JLIB=/usr/local/java
CLASSPATH=/usr/local/jdk1.2/jre/lib/rt.jar:/usr/local/jrun/./lib/jrun.jar:/usr/local/jrun/./lib/servlet.jar:/usr/local/jrun/./lib/jsp.jar:/usr/local/jrun/./lib/xml4j.jar:/usr/local/jrun/./lib/xt.jar:/usr/local/jrun/./lib/fesi.jar:/usr/local/jrun/./lib/cfanywhere.jar:/usr/local/jrun/./lib/NetComponents.jar:/usr/local/jrun/./lib/OROMatcher.jar:/usr/local/jrun/./lib/jrunadmin/jrunadmin.jar:/usr/local/jrun/./classes:/usr/local/jrun/./jsm-default/classes:/usr/local/jrun/./instantdb/Classes:/usr/local/jrun/./lib/jrunadmin/swing.jar:/usr/local/jrun/./webl/WebL.jar:/usr/local/jrun/./examples/jni:/usr/local/jdk/bin/../lib/tools.jar:/usr/local/pgsql/lib/postgresql.jar::/usr/local/eas:/devel/collage2/classes:/u01/app/oracle/product/8.1.5/jdbc/lib/classes111.zip:/opt/eas/hr:/usr/local/jrun/lib/udel.jar:/usr/local/jrun/lib/dbgen.jar:/opt/jrun/lib/mail.jar:/opt/jrun/lib/activation.jar:/usr/local/jrun/lib/jdbcpool-0.95_mod.jar:$JLIB/log4j-full.jar
export CLASSPATH
killold
trap killold 0
export NS_JAVA=true
cd /opt/jrun/jsm-default
java -green -Djava.compiler=NONE -Xnoagent -Xdebug
-Xrunjdwp:transport=dt_socket,address=2112,server=y,suspend=n
com.livesoftware.jrun.service.ServiceManager /opt/jrun/jsm-default &
echo "$!" >/home/dwallace/.jsmdebugpid
tail -n20 -f /opt/jrun/jsm-default/logs/stderr.log