JSP debugging / exception handling obtaining JSP line number in stack trace
I am trying to get the line number in the JSP file in the log file when a ServletException or NullPointerException occurs.
I have tried setting the JSpServlet init paramers debug_mode, developer_mode, emit_debuginfo in global-web-application.xml in the internal j2ee container in JDeveloper 10.1.3.4 but I still get the line number in the translated java file instead.
How can I get the JSP file number instead in the log file?
09/01/20 16:01:56 javax.servlet.ServletException: / by zero
09/01/20 16:01:56 at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
09/01/20 16:01:56 at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
09/01/20 16:01:56 at admin.test__user._jspService(_test__user.java:254)
09/01/20 16:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
09/01/20 16:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
...
Note: I have simulated an exception on a JSP by dividing by zero just for testing above.