Re: More helpful reporting of exceptions in JSPs

2005-10-12 Thread Darryl L. Miles

Tim Fennell wrote:


I've posted my patch for Jasper/Tomcat at the following location:
http://www.tfenne.com/jasper/

The page has a brief overview, a download link and  before and  
after screenshots so you can get an idea for what exactly the patch  
does before you decide to patch your own environment.  If you give it  
a shot and have any problems and/or suggestions for improving it  
please let me know - but please read the readme first ;)



Excellent addition.  Maybe once you have got an initial around of 
feedback for users of the latest 5.0.x and 5.5.x you might like to post 
it up on Tomcat Bugzilla 
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205 and 
attach the patch.


Darryl


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



RE: More helpful reporting of exceptions in JSPs

2005-10-11 Thread GB Developer
regardless how the commiters feel about it, are you willing to release your
patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright for
distro, with a link to the page sent to tomcat-user  ?
 
I'd be giving it a try about 10 minutes after you send out your email, since
I've often wondered about this feature. Usually right after digging through
the work directory for a generated java file. 


 -Original Message-
 From: Tim Fennell [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 11, 2005 12:15 PM
 To: Tomcat Users List
 Subject: Fwd: More helpful reporting of exceptions in JSPs
 
 
 Apologies in advance for cross-posting this, but I sent this email  
 out to the tomcat-dev list a couple of days ago and have received no  
 replies at all...  I think this is quite  a useful feature, and I'm  
 wondering how best to go about contributing it.
 Thanks
 
 -Tim Fennell
 http://stripes.mc4j.org
 
 Begin forwarded message:
 
  From: Tim Fennell [EMAIL PROTECTED]
  Date: October 9, 2005 5:50:11 PM EDT
  To: tomcat-dev@jakarta.apache.org
  Subject: More helpful reporting of exceptions in JSPs
  Reply-To: Tomcat Developers List tomcat-dev@jakarta.apache.org

  At any rate, I have code that will do this now, and I think it'd be
  a great productivity boost for anyone else developing JSPs on  
  Tomcat.  It amounts to small patches to two files.  The first is  
  org.apache.jasper.compiler.Compiler to make it hang on to 
 the parse  
  tree (pageNodes) if in development mode, and a getter to make this  
  accessible.  The second is to  
  org.apache.jasper.servlet.JspServletWrapper to do the grunt 
 work of  
  mapping a stack frame from the exception back to the line in the  
  JSP that it came from.


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



Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Leon Rosenberg
could you post your patch for download anywhere? If you need webspace,
I can provide you some. I would find the patch extremely helpful, and
would love to have it in my development tomcat, as soon as possible.

thanx
leon

On 10/11/05, Tim Fennell [EMAIL PROTECTED] wrote:
 Apologies in advance for cross-posting this, but I sent this email
 out to the tomcat-dev list a couple of days ago and have received no
 replies at all...  I think this is quite  a useful feature, and I'm
 wondering how best to go about contributing it.
 Thanks

 -Tim Fennell
 http://stripes.mc4j.org

 Begin forwarded message:

  From: Tim Fennell [EMAIL PROTECTED]
  Date: October 9, 2005 5:50:11 PM EDT
  To: tomcat-dev@jakarta.apache.org
  Subject: More helpful reporting of exceptions in JSPs
  Reply-To: Tomcat Developers List tomcat-dev@jakarta.apache.org
 
 
  Hi,
 
  I'll apologize in advance if this is the wrong place to post this,
  or if this has been covered before.  I had a good read through the
  Tomcat docs and faqs, searched the bug database, and googled around
  on the topic, but could not really find anything.
 
  I've been using Tomcat for a while, and in general have found it as
  good a servlet/JSP container as any I've used.  With one exception
  (no pun intended).  A long time ago I started out using WebLogic,
  and the one thing that I loved about WebLogic, that is missing from
  Tomcat, is that when an Exception occurred in a JSP it would tell
  you what line number *in the JSP* generated the exception, and show
  you a snippet of code around the offending line.
 
  For quite a while I'd figured that the way Tomcat was built
  prevented this from being easy/possible, but I didn't look.  Well,
  I finally got around to looking, and it only took me a couple of
  hours to implement it.  Which makes me wonder if there is some
  other reason that this isn't done in Tomcat/Jasper?
 
  At any rate, I have code that will do this now, and I think it'd be
  a great productivity boost for anyone else developing JSPs on
  Tomcat.  It amounts to small patches to two files.  The first is
  org.apache.jasper.compiler.Compiler to make it hang on to the parse
  tree (pageNodes) if in development mode, and a getter to make this
  accessible.  The second is to
  org.apache.jasper.servlet.JspServletWrapper to do the grunt work of
  mapping a stack frame from the exception back to the line in the
  JSP that it came from.
 
  It's all coded up to function only when in development mode, and is
  reasonably well commented.  Would any of the committers be
  interested in taking a look at this if I put together a patch and
  posted it here?  Cheers,
 
  -Tim Fennell
  http://stripes.mc4j.org
 
  -
  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]



Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell
I certainly don't have a problem with that.  Obviously I'd rather  
have it in the main codebase - while I don't have a problem running a  
patched version of jasper, I'm sure that would freak out a good  
number of PHBs ;)  But since there is interest I'll clean up what I  
have, put it online and post a link here.  That should happen some  
time this evening.


-t

On Oct 11, 2005, at 2:01 PM, GB Developer wrote:

regardless how the commiters feel about it, are you willing to  
release your

patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright for
distro, with a link to the page sent to tomcat-user  ?

I'd be giving it a try about 10 minutes after you send out your  
email, since
I've often wondered about this feature. Usually right after digging  
through

the work directory for a generated java file.




-Original Message-
From: Tim Fennell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 12:15 PM
To: Tomcat Users List
Subject: Fwd: More helpful reporting of exceptions in JSPs


Apologies in advance for cross-posting this, but I sent this email
out to the tomcat-dev list a couple of days ago and have received no
replies at all...  I think this is quite  a useful feature, and I'm
wondering how best to go about contributing it.
Thanks

-Tim Fennell
http://stripes.mc4j.org

Begin forwarded message:



From: Tim Fennell [EMAIL PROTECTED]
Date: October 9, 2005 5:50:11 PM EDT
To: tomcat-dev@jakarta.apache.org
Subject: More helpful reporting of exceptions in JSPs
Reply-To: Tomcat Developers List tomcat-dev@jakarta.apache.org





At any rate, I have code that will do this now, and I think it'd be
a great productivity boost for anyone else developing JSPs on
Tomcat.  It amounts to small patches to two files.  The first is
org.apache.jasper.compiler.Compiler to make it hang on to


the parse


tree (pageNodes) if in development mode, and a getter to make this
accessible.  The second is to
org.apache.jasper.servlet.JspServletWrapper to do the grunt


work of


mapping a stack frame from the exception back to the line in the
JSP that it came from.




-
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]



Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell

Hi All,

I've posted my patch for Jasper/Tomcat at the following location:
http://www.tfenne.com/jasper/

The page has a brief overview, a download link and  before and  
after screenshots so you can get an idea for what exactly the patch  
does before you decide to patch your own environment.  If you give it  
a shot and have any problems and/or suggestions for improving it  
please let me know - but please read the readme first ;)


Happy bug hunting.

-Tim Fennell
http://stripes.mc4j.org

On Oct 11, 2005, at 3:40 PM, Tim Fennell wrote:

I certainly don't have a problem with that.  Obviously I'd rather  
have it in the main codebase - while I don't have a problem running  
a patched version of jasper, I'm sure that would freak out a good  
number of PHBs ;)  But since there is interest I'll clean up what I  
have, put it online and post a link here.  That should happen some  
time this evening.


-t

On Oct 11, 2005, at 2:01 PM, GB Developer wrote:


regardless how the commiters feel about it, are you willing to  
release your

patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright  
for

distro, with a link to the page sent to tomcat-user  ?

I'd be giving it a try about 10 minutes after you send out your  
email, since
I've often wondered about this feature. Usually right after  
digging through

the work directory for a generated java file.





-Original Message-
From: Tim Fennell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 12:15 PM
To: Tomcat Users List
Subject: Fwd: More helpful reporting of exceptions in JSPs


Apologies in advance for cross-posting this, but I sent this email
out to the tomcat-dev list a couple of days ago and have received no
replies at all...  I think this is quite  a useful feature, and I'm
wondering how best to go about contributing it.
Thanks

-Tim Fennell
http://stripes.mc4j.org

Begin forwarded message:




From: Tim Fennell [EMAIL PROTECTED]
Date: October 9, 2005 5:50:11 PM EDT
To: tomcat-dev@jakarta.apache.org
Subject: More helpful reporting of exceptions in JSPs
Reply-To: Tomcat Developers List tomcat-dev@jakarta.apache.org







At any rate, I have code that will do this now, and I think it'd be
a great productivity boost for anyone else developing JSPs on
Tomcat.  It amounts to small patches to two files.  The first is
org.apache.jasper.compiler.Compiler to make it hang on to



the parse



tree (pageNodes) if in development mode, and a getter to make this
accessible.  The second is to
org.apache.jasper.servlet.JspServletWrapper to do the grunt



work of



mapping a stack frame from the exception back to the line in the
JSP that it came from.





-
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]





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