Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7039115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:45:29+00:00 2026-05-28T01:45:29+00:00

How do I get the stack traces coming from compiled JSPs to include line

  • 0

How do I get the stack traces coming from compiled JSPs to include line numbers from the actual JSP file, not the intermediate Servlet java file?

I am using Jetty 8. I am currently taking up the Jetty instance programmatically.

(I use Eclipse for coding if that is of interest regarding the line number support stuff, I don’t quite get the JSR-45 SMAP logic – is it a “side car” file, or is this info put in the actual class files?)

Will debugging, breakpoints work, re. JSPs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:45:29+00:00Added an answer on May 28, 2026 at 1:45 am

    Update: June 2017

    Jetty 9 no longer uses Glassfish JSP.

    It uses Apache Jasper JSP, same rules apply as below.

    Original Answer

    Jetty uses the JspServlet from the Glassfish project to manage all of its JSP handling.

    There are 3 init-parameters on the JspServlet (see ${jetty.home}/etc/webdefault.xml contents) that might help.

    • “keepgenerated” (boolean) true
    • “development” (boolean) true
    • “classdebuginfo” (boolean) true

    Set all of these development time settings to true and you should see more information.
    As well as have the intermediate source file to reference. This generated source files contains a line of commented out jsp source, then the resulting java source file that you can also use to backreference which line of your jsp caused the exception.

    Also note that the JspServlet from Glassfish also uses java.util.logging as its underlying logging infrastructure. To see all the nitty details of the JspUsage (including jsp line numbers) try setting up java.util.logging for the “org.apache.jasper” package space at the FINEST level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get a stack frame of a function from any PDB (All
I am not a guru of stack traces, at all. I don't even know
I'm working in a large Perl application and would like to get stack traces
How would I get all stack traces for all threads in GDB? I need
How do I get stack traces in Perl?
How inefficient is it to get the stack trace for an exception? I know
I'm using this code, and I get the stack trace that is listed below.
How do I get the current stack trace in Java, like how in .NET
How do you get Perl to stop and give a stack trace when you
I want to get a detailed log about my stack trace. I can get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.