You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Gunther Schadow <gu...@aurora.rg.iupui.edu> on 2000/01/10 21:16:01 UTC
how to prevent tomcat server from detaching from terminal?
Hi,
I'm having trouble debugging JSP stuff on Windoze :-( because the
first stack trace printed from the inner-most catch clause will
be scrolled off the dumb windoze command terminal with just 25
lines and no buffer/scrollbars. Is there a simple answer to this
problem? Like redirecting the error output to a file? Or can I
prevent the tomcat startup from detaching itself and opening this
dumb terminal?
Thank you,
-Gunther
--
Gunther_Schadow-------------------------------http://aurora.rg.iupui.edu
Regenstrief Institute for Health Care
1050 Wishard Blvd., Indianapolis IN 46202, Phone: (317) 630 7960
schadow@aurora.rg.iupui.edu------------------#include <usual/disclaimer>
Re: how to prevent tomcat server from detaching from terminal?
Posted by Hans Bergsten <ha...@gefionsoftware.com>.
Gunther Schadow wrote:
>
> Hi,
>
> I'm having trouble debugging JSP stuff on Windoze :-( because the
> first stack trace printed from the inner-most catch clause will
> be scrolled off the dumb windoze command terminal with just 25
> lines and no buffer/scrollbars. Is there a simple answer to this
> problem? Like redirecting the error output to a file? Or can I
> prevent the tomcat startup from detaching itself and opening this
> dumb terminal?
Edit the tomcat.bat file so you use "java ..." instead of "start java ...".
Now startup.bat runs in the same command prompt window as you start it
in, so just make sure you have a large enough buffer there.
Hans
--
Hans Bergsten hans@gefionsoftware.com
Gefion Software http://www.gefionsoftware.com
Re: how to prevent tomcat server from detaching from terminal?
Posted by Rodrigo Zerlotti <Ro...@radian.com>.
You can also click on the "dos" icon (left-top-corner) and change the
buffer size (i hope you are not using win95,but winnt...). then, you can
scrool .. :)
Rod
Eugen Kuleshov wrote:
> Gunther Schadow wrote:
>
> > I'm having trouble debugging JSP stuff on Windoze :-( because the
> > first stack trace printed from the inner-most catch clause will
> > be scrolled off the dumb windoze command terminal with just 25
> > lines and no buffer/scrollbars. Is there a simple answer to this
> > problem? Like redirecting the error output to a file? Or can I
> > prevent the tomcat startup from detaching itself and opening this
> > dumb terminal?
>
> you just can put
>
> <%
> try {
> %>
>
> to start to your JSP
> and
>
> <%
> } catch( Exception e) {
> StringWriter sw = new StringWriter();
> PrintWriter pw = new PrintWriter( sw);
> e.printStackTrace( pw);
> out.println( e);
> out.println( "<pre>");
> out.println( pw.toString());
> out.println( "</pre>");
>
> }
> %>
>
> to end of your JSP.
>
> Then you will look all Exception's caughts in web browser.
>
> Eugen Kuleshov.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
Re: how to prevent tomcat server from detaching from terminal?
Posted by Eugen Kuleshov <an...@hco.kollegienet.dk>.
Gunther Schadow wrote:
> I'm having trouble debugging JSP stuff on Windoze :-( because the
> first stack trace printed from the inner-most catch clause will
> be scrolled off the dumb windoze command terminal with just 25
> lines and no buffer/scrollbars. Is there a simple answer to this
> problem? Like redirecting the error output to a file? Or can I
> prevent the tomcat startup from detaching itself and opening this
> dumb terminal?
you just can put
<%
try {
%>
to start to your JSP
and
<%
} catch( Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter( sw);
e.printStackTrace( pw);
out.println( e);
out.println( "<pre>");
out.println( pw.toString());
out.println( "</pre>");
}
%>
to end of your JSP.
Then you will look all Exception's caughts in web browser.
Eugen Kuleshov.
Re: how to prevent tomcat server from detaching from terminal?
Posted by Thor HW <th...@echidna.net>.
yeah
set the properties of the command terminal, i usual set my buffer size to
999, which should be enough to catch your error. (Hint: you can right
click on the icon, or choose the menu and select Properties...)
Thor HW
----- Original Message -----
From: Gunther Schadow <gu...@aurora.rg.iupui.edu>
To: <ge...@jakarta.apache.org>
Sent: Monday, January 10, 2000 12:16 PM
Subject: how to prevent tomcat server from detaching from terminal?
> Hi,
>
> I'm having trouble debugging JSP stuff on Windoze :-( because the
> first stack trace printed from the inner-most catch clause will
> be scrolled off the dumb windoze command terminal with just 25
> lines and no buffer/scrollbars. Is there a simple answer to this
> problem? Like redirecting the error output to a file? Or can I
> prevent the tomcat startup from detaching itself and opening this
> dumb terminal?
>
> Thank you,
> -Gunther
>
>
> --
> Gunther_Schadow-------------------------------http://aurora.rg.iupui.edu
> Regenstrief Institute for Health Care
> 1050 Wishard Blvd., Indianapolis IN 46202, Phone: (317) 630 7960
> schadow@aurora.rg.iupui.edu------------------#include <usual/disclaimer>
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org