John,
I have not loaded jswdk into VA. I have however loaded both JRun and
WebSphere into VA Pro 2.0 and VA Enterprise. In order to run the servlets,
in each of those cases, I had my servlets in their own project. I located
the "main" that starts up the web server and hence the servlet engine. You
want to "right click" on the class that starts up the whole mess, pick its
"properties" and add your servlet project to its "project classpath". This
should let the servlet engine find your servlets in the "system classpath".
While you are running within VA, the "system classloader" is VA itself. You
should be able to set your breakpoints within your doGet(), etc...
John Zerbe - Mellon Bank
IM&R - Middleware Team
Phone: 412-234-1048 E-Mail:[EMAIL PROTECTED]
> -----Original Message-----
> From: John Deviney [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 01, 1999 12:44 PM
> To: [EMAIL PROTECTED]
> Subject: Debugging (jswdk-1.0 and Visual Age Pro 2.0)
>
> I realize there have been many posts regarding servlet debugging.
> I've scanned through many of them and I believe my questions remain
> unanswered.
>
> I'm using jswdk-1.0 and Visual Age 2.0 Pro. I have imported the jswdk
> jars and resources (html, properties, xml) into VA. I understand how to
> start the web server within VA and set breakpoints within the
> jswdk-1.0 source.
>
> My problem: I have not been able to successfully set (and execute)
> breakpoints
> anywhere within my own servlet classes.
>
> I've tried:
>
> 1) exporting my servlet classes (and source) to the file system
> and setting breakpoints within VA for external dynamically loaded classes
> -
> this works for breaking on entry points for methods but I still cannot set
> breakpoints within each method; also the VA IDE debugger appears to behave
> differently for
> dynamically loaded external classes - you are not allowed to step through
> the code line by line.
>
> 2) putting my servlet classes in the same VA IDE project as jswdk-1.0.
> This gets
> me nowhere because the web server is still looking on the file system (via
> settings in the webserver.xml file) for the servlet(s).
>
> Questions:
>
> 1) do my servlets have to reside on the file system for the web server
> to be able to find them - even if they are in the same VA project?
>
> 2) Is it possible to configure the web server so that it will look in the
> local
> classpath (within VA IDE) to locate my servlets instead of the file
> system?
>
> 3) Is it possible to initiate servlet execution/debugging without using
> a web browser to invoke the servlet (i.e. command line arg to Startup)?
>
> 4) In general, should I be able to load and debug servlets entirely within
> the VA IDE without accessing the file system AND be able to set/execute
> break
> points anywhere within my servlets (as opposed to method entry points
> only)?
>
>
> Any help is appreciated.
>
>
> John Deviney
> Software Engineer
> Austin Information Systems
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html