Hi,
Forte for Java Community Edition does not support debugging JSPs. This is a
feature which will be implemented in the Internet edition. But there are
people who already found a partial workaround for this, so this limitation
proved rather short-lived. So I might as well pass it on. You need to create
a class similar to the following:
public class StartServer extends Object {
public static void main (String args[]) {
com.sun.web.shell.Startup.main(new String[]
{"-config","n:\\java\\jsp\\webserver.xml"});
}
}
where you replace path to webserver.xml to the path that applies to you. See
Sun JSWDK 1.0.1 for the description on server.xml. Then debug this class.
An alternative (and parhaps even easier) way would be to run
com.netbeans.enterprise.modules.servlet.jswdk.ServletMain.main(String[])
instead of com.sun.web.shell.Startup.main(...).The arguments to ServletMain
are:
1) port - port on which the server is running
2) document root of your web app as a URL - so for example
file://c:/webapps/myapp
3) work directory of the server - in theory it could be anything, but it
will work better if this is the appropriate subdirectory of
$FORTE_HOME$/temp/jspwork - there is one subdirectory for each filesystem
mounted in Forte - so choose the right one. In that case the server will
pick up the compiled JSPs, if you compile them from the IDE.
In both these cases you will be able to set breakpoints in beans and they
will be hit. Not in JSPs, though.
I haven't tried it myself, so I am only hoping this will work for you.
Please feel free to write any feedback.
Thanks
Petr
> -----Original Message-----
> From: Miller Thomas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 04, 2000 4:53 PM
> To: [EMAIL PROTECTED]
> Subject: Debugging JSPs with FORTE for Java
>
>
> Hi,
>
> I scanned the jsp-interest archives about how to debug JSPs
> and found hints to Visual Age Professional and JDeveloper3.
> Has somebody tried the new FORTE for Java environment?
> It supports writing and executing of JSPs, but I didn`t get
> it to accept breakpoints - neither in the JSP page nor in the
> used bean.
>
> Yours
> Thomas
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets