Since this question is relevant for most of us, I post my answer to the
mailing list as well.

Does it run in normal automatic mode?
You should turn on manual mode in the mod_jserv.conf (or jserv.conf) file.
Start SJerv manually. I use a series of batch files for that.

- one for normal mode where I use javaw so that I don't see the terminal
window.

- one with console window for easy System.out.println type of debugging.
the file is like this:
SET CP="D:\java\jsdk2.0\lib\jsdk.jar";
rem SET CP="F:\java\servlets\lib\servlet-2.1.jar";
SET CP=%CP%"F:\java\servlets\lib\servlet-2.0-plus.jar";
SET CP=%CP%"D:\Apache Group\Apache JServ\ApacheJserv.jar";
SET CP=%CP%"F:\java\classes";
SET CP=%CP%"D:\java\jdk1.2.2\lib\tools.jar";
SET CP=%CP%"F:\java\servlets\lib\jsp.jar";
SET CP=%CP%"F:\java\servlets\lib\gnujsp10.jar";
D:\java\jdk1.2.2\bin\java -Djava.compiler=NONE -classpath %CP%
org.apache.jserv.JServ "D:\Apache Group\Apache JServ\conf\jserv.properties"

- the real debugging mode. File is same as console mode exept for the last
line.
D:\java\jdk1.2.2\bin\java -Xdebug -Djava.compiler=NONE -Xbootclasspath:D:\ja
va\jdk1.2.2\jre\lib\rt.jar;D:\java\jdk1.2.2\lib\tools.jar   -classpath %CP%
org.apache.jserv.JServ "D:\Apache Group\Apache JServ\conf\jserv.properties"

when I start this I get a password. I can use that password to start jdb
manually and connect to the running JServ JVM.
Normally I use JPadPro. This has a wrapper around JDB which makes it a lot
easier.
I just do "debug class" and when the program prompts me for the class I
enter
-password xxxxx
I put some breakpoints, start the browser, call the page, switch back to
JPadPro and can use all debug options.
Of course you should tell JPadPro (or JDB) where it can find the JSP source
files. It's easier to debug stuff in a bean that's called by a JSP page than
the page itself, because that's system generated code of course.

Hope this helps

Geert 'Darling' Van Damme


>Hi Geert ,
>
>    Coulsd you please tell me step by step details of how to debug JSP's by
running
>Apache JServ in manual mode and using JDB.Coz i am neither able to run my
>ApacheJServ in manual mode nor i am able to use JDB.
>
>Thanks in advance !!!
>
>Vaibhav

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to