How to Produce Clean Log Files for Troubleshooting

Troubleshooting application errors is easiest with clean log files. The examples below are for a standard JasperReports Server installation on Tomcat. Use it as a guideline to locate the temporary, cache, and log files for your application server.

To Produce Clean Log Files
Step Comments and Examples
1. Shutdown the application server Shutdown Tomcat (or JBoss, Glassfish, WebSphere, WebLogic etc.)
2. Delete the application server's log files <tomcat_dir>/logs
3. Delete the application server's temp files <tomcat_dir>/temp
4. Delete the application server's cached JasperReports Server pages <tomcat_dir>/work/Catalina/localhost/jasperserver-pro
5. Delete the JasperReports Server logs <tomcat_dir>webapps/jasperserver-pro/WEB-INF/logs
6. Start the application server Startup Tomcat
(or JBoss, Glassfish, WebSphere, WebLogic, etc.)
7. Login to JasperReports Server and reproduce the error  
8. Logout of JasperReports Server  
9. Shutdown the application server Shutdown Tomcat
(or JBoss, Glassfish, WebSphere, WebLogic etc.)
10. Review/forward the application server log files <tomcat_dir>/logs
11. Review/forward the JasperReports Server log files <tomcat_dir>/webapps/jasperserver-pro/WEB-INF/logs

You can also configure the logging level. For example, you can log WARNings in addition to ERRORs. For instructions on how to increase the logging level, refer to the Log4j article.