Issue description
On a fresh JasperReports Server installation by default the log files located under .../WEB-INF/logs/jasperserver.log file. This location is configured in /WEB-INF/log4j.properties file in the following line:
log4j.appender.fileout.File=${jasperserver-pro.root}/WEB-INF/logs/jasperserver.log
Sometimes the log file is not created though. There are two common reasons for that.
Folder permissions
The most common cause for a missing jasperserver.log file that a system user does not have sufficient permissions to write into .../WEB-INF/logs folder. The permission have to be configured for the user which is running the Tomcat service (or any other application server where JasperReports Server is deployed)
webAppRootKey configuration
Another possible cause is that the webAppRootKey value in .../WEB-INF/web.xml file has been changed from 'jasperserver-pro.root' to something else. This can happen when the file has been modified manually, or when you have a script to perform the deployment, and that script is used a web.xml file template with a different value. The bottom line is that the value of webAppRootKey from web.xml:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>jasperserver-pro.root</param-value>
</context-param>
should match the value used to configure the location of jasperserver.log file:
log4j.appender.fileout.File=${jasperserver-pro.root}/WEB-INF/logs/jasperserver.log
In this case the value is 'jasperserver-pro.root', which is default
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now