IDependOn-Set: 1
IDependOn-Set: 119
IDependOn-Set: 2
IDependOn-Set: 276
IDependOn-Set: 283
IDependOn-Set: 291
LastModifiedSecs: 935522128
Parent: 119
SequenceNumber: 2
Title: Debugging Servlets with Visual J++
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 935522128
Type: monospaced
Lines: 36
----------
From: "James Cooper" <pixel@bitmechanic.com>
To: "Java Apache Users" <java-apache-users@list.working-dogs.com>
Subject: Re: Debugging with Visual J++
Date: Mon, Aug 23, 1999, 10:29 PM

> I have been using Visual J++ and Apache's servlet engine. So far, I
> have used sun's servletrunner with system.out to print errors on the
> console, but this is kind of pain. Is there a way of debugging the code
> from Visual J++ ?

you bet.  here are the overview of steps:

1) Install Apache 1.3.x and JServ 1.0 on your local NT box
2) Configure JServ to run in manual mode (edit mod_jserv.conf and set
   ApJServManual On) -- restart Apache after you do this
3) Add ApacheJServ.jar and JSDK 2.0 jar file to your project's classpath
4) edit your project's "launch" property; click the "custom" radio button,
and
   enter this as the argument:

   /p /cp:p "<JAVAPACKAGES>" org.apache.jserv.JServ
d:\JServ\jserv.properties

where d:\JServ\jserv.properties is the path to your jserv.properties

when you run your project inside J++ it will run JServ using jview.  you can
then set breakpoints and watches in the IDE like you would with any other
app.  it's pretty sweet.

I would suggest trying to run JServ from an NT command prompt by hand first
to make sure that everything is cool.  then try it from the IDE.

good luck

-- James
EndPart: 0
