Andreas <[EMAIL PROTECTED]> wrote:
>Date:    Thu, 24 Feb 2000 15:59:07 +0200
>From:    Andreas <[EMAIL PROTECTED]>
>Subject: Re: mini servlet tester
>
>Hi there,
>
>thanks for the info but I have to say that debugging a servlet with
the
>JSWDK is not something clear neough to understand. I placed my
servlet(s) in
>the JSWDK folder as you suggested and saw them running as they would
in
>JWS2.0 . In J. Hunter's book it says that in order to debug a
servlet we can
>debug sun.servlet.http.HttpServer and then watch as HttpServer
executes
>servlets in response to HTTP requests we make from a browser.
Assuming the
>appropriate classes are located in the classpath what exactly do I
have to
>do in order to debug my servlets? I'd like to add here that I have
already
>included some System.out.println()s in my code so that output comes
out in
>the MS-DOS console. This is not enough though as I cannot see why my
>servlets are not running exactly like I want them to. What I mean is
that I
>can see where and when my DB connection takes place, I can see
information
>submitted in textfields, I can see when the servlets are loaded and
>destroyed etc..
>
>So, if I had a servlet called LoginServlet, how would I debug it via
>JSWDK-1.0?
>
>Let me know if you can please,
>
>Andreas
Around here we develop and debug everything in JBuilder.  JBuilder
doesn't know anything about debugging servlets under Apache JServ,
but it's fairly trivial to turn JServ into a Java application that it
can debug.  Like so:

public class runme
{
    public static void main(String args[])
    {
        // Change the string to point to your jserv.properties
        String[] s = {
                "c:/apache/jserv/conf/jserv.properties"
        };
       org.apache.jserv.JServ.main(s);
    }
}

The equivalent for JSWDK might look something like this:

public class runme
{
    public static void main(String args[])
    {
        String[] s = {
                // insert appropriate args here
        };
       com.sun.web.shell.Startup.main(s);
    }
}

+--------------------------------------------------------------------------+
| The coolest site for free home pages, email, chat, e-cards, movie info.. |
|               http://www.goplay.com - it's time to Go Play!              |
+--------------------------------------------------------------------------+

___________________________________________________________________________
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

Reply via email to