Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual do Utilizador Página 51

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 124
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 50
Generating a Stack Trace for Debugging
Chapter 5 Debugging Servlets and JSPs 51
3. To send exceptions to the client in addition to the log file, set the following
parameter. If the client is a browser, exceptions are displayed in the browser.
jvm.trace=7
Setting java.compiler=NONE includes line numbers of the Java source code in the
verbose output of the log files. Setting
jvm.trace=6 or jvm.trace=7 enables
verbose output from the JSP compiler and the servlet engine. Setting
nes.jsp.enabledebug=1 makes iPlanet Web Server 6.0 generate debuggable Java
servlets from the JSPs.
Generating a Stack Trace for Debugging
You can generate a Java stack trace for debugging as described here:
http://developer.java.sun.com/developer/technicalArticles/Programming/Stacktrace/
Comment out the jvm.option=-Xrs flag (for reduced signal usage) in the
jvm12.conf file before generating the stack trace. If the -Xrs flag is used, the server
may simply dump core and restart when you send the signal to generate the trace.
For more about the
jvm12.conf file and using jvm.option, see Appendix C, “JVM
Configuration.”
Using Forte for Java to Debug Servlets and JSPs
To set up iPlanet Web Server so you can use the Forte for Java debugger, follow
these steps:
1. If you have not already done so, install the JDK version 1.2.x that iPlanet Web
Server requires as described in “What Does the Server Need to Run JSP?,” on
page 37. The specific version you need depends on your platform.
2. Install the JDK version 1.3, available here:
http://java.sun.com/j2se/1.3/
Although iPlanet Web Server uses the JDK version 1.2.x, Forte for Java requires
version 1.3.
3. Install Forte for Java, Community Edition 1.0, available here:
http://www.sun.com/forte/ffj/ce/
Vista de página 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 123 124

Comentários a estes Manuais

Sem comentários