Thx, Dave !
It works. I did put debug="true" in my ant javac task and recompiled the
whole thing.
Do you think debuglevel="lines" would work also ?

Regads,
Hans

----- Original Message ----- 
From: "David Rees" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 2:36 AM
Subject: Re: Losing line numbers in stracktraces


> Hans Verschoor wrote:
> >
> > I have a problem reading stacktrace info when Tomcat throws an exception
> > caused by a servlet or a class calld by a servlet
> > I have my classes compiled into in the ..... WEB-INF/classes directory
and
> > (so far) I use no war or jar.
> > When an exception is thrown the stacktrace does not show line numbers
but
> > "Unknown source", which is "not so handy".
> > The classes are compiled correctly, in other circumstances the line
> > numbers DO appear in stacktraces using the same classes.
> > I am a relative newbie, so my questions are:
> > 1. Do I need to configure the webapploader explicitly ?
> > 2. Do I need some switch on de java statement when starting tomcat ?
>
> Make sure you compile your classes with the -g flag to javac.  Otherwise,
> line numbers will be optimized out.
>
> -Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to