Hi there
I've just finished going throught this process. I created a Debug class (below)
using the jsdk2.1 Startup class from server.jar. I then set break points in my
servlets and debug the Debug class with my IDE (JBuilder 3). Seems to work OK,
though I have to press the 'stop' button on the browser while I'm debugging else
it eats up cpu cycles. {NT wrkstn 4 svrpk 4, JWS 2.0, jdk1.2.2, JBuilder 3}
///////////////////////////////////////////////////////////////////////////
import com.sun.web.shell.*;
public class Debug{
public static void main(String[] args){
/*
Startup Flags:
-help This Message
-config [file|url] Read config from URL
-port [int] Listen on int port
-inet [inetaddr] Bind server to inet
-hostname [name] Use name as hostname
-docbase [file|url] Use URL as base of content
-noconfig Do not read config
*/
String[] str = {
"-config", "file:///f:/jsdk2.1/default.cfg"};
try{
Startup su = new Startup(str);
}catch(Exception se){
System.out.println("startup exception: " + se);
}
}
}
///////////////////////////////////////////////////////////////////////////
and my config file:
///////////////////////////////////////////////////////////////////////////
# $Id: default.cfg,v 1.8 1999/04/05 21:18:16 duncan Exp $
server.port=80
server.hostname=gumby
server.inet=
server.docbase=file://f:/host_html/finsource/www/
server.tempdir=tmp
///////////////////////////////////////////////////////////////////////////
I had the biggest problem with server.docbase, it doesn't recognize the 'host'
portion of the URL (f:), it seems to default to the directory the source file is
in!
The other odd one is the difference in the way I had to write the URL's -
file:/// in the code and file:// in the config file, haven't had the time to
have a look at it.
brian
___________________________________________________________________________
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