Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the actual jsp line number from a stack trace line number?

Here is the stacktrace:

... org.apache.jsp.showcustomer_jsp._jspService(showcustomer_jsp.java:128) org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) 

This is what I do:

  1. Get the line number from the stacktrace, in this case 128.
  2. Find the showcustomer_jsp.java file (and it isn't exactly obvious to look in /var/run/tomcat-6/Catalina/localhost/_/org/apache/jsp).
  3. Open it and go to line 128.
  4. Now, search the .jsp file for the whatever you found on line 128 in the _jsp.java file.
  5. Boom! You're done!

Please, is there a simpler way to do this?

like image 552
Arne Evertsson Avatar asked Aug 20 '09 08:08

Arne Evertsson


1 Answers

I have found this page on Eclipse WTP FAQ which explain how to configure Eclipse so that you can go to the generated java code clicking on the stacktrace.

like image 84
Jonathan Pasquier Avatar answered Sep 19 '22 08:09

Jonathan Pasquier