Dashboard > Community Wiki > ... > Troubleshooting > Debugging Magnolia
Debugging Magnolia Log In View a printable version of the current page.

Added by GrĂ©gory Joseph , last edited by Boris Kraft on Jun 23, 2008  (view change)
Labels: 

By default tomcat is set to verbose compiling..

So you should have error dump in catalina.out if JSP failed to compile.
If you really wanna show this stack trace on the browser screen you can
set error JSP page
and dump it there.

eg.

in web.xml

<error-page> 
<error-code>500</error-code> 
<location>/printStackTrace.jsp</location> 
</error-page>

in /printStackTrace.jsp

<%@ page isErrorPage="true" %> 
<html> 
<body> 
Server Error<br> 
<% 
exception.printStackTrace(new java.io.PrintWriter(out)); 
%> 
</body> 
</html>

in JSP's which needs to be traced

<%@ page errorPage="printStackTrace.jsp"%> 
<html> 
<body> 
What's happening here , hmmm? 
<% 
int x = 1/0; 
%> 
</body> 
</html>

In its previous incarnation on JspWiki, this page was last edited on Feb 9, 2007 10:11:27 AM by 61.145.233.118
Other known authors include :

  • 212.163.159.14
Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators