exception « Glassfish « JSP-Servlet Q&A

1. Adding a dynamic servlet using servlet 3.0 throws exception    stackoverflow.com

I need to create add servlets at runtime. When I run the following code.

protected void processRequest(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException 


2. Unhandled exception details in Glassfish    stackoverflow.com

I would like to see the exception details when an unhandled exception thrown in Glassfish (In the web page, not logs). This error page shows but there's no useful information. Is there ...