Jaspersoft 7.8 Error when configured as a Service in Windows
search cancel

Jaspersoft 7.8 Error when configured as a Service in Windows

book

Article ID: 223526

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

While configuring jaspersoft 7.8 as a service in Windows below error message is seen. 

SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet [jsp] threw exception
 java.io.IOException: Unable to rename class file from [E:\Tomcat\apache-tomcat-9.0.37\work\Catalina\localhost\reportservice\org\apache\jsp\WEB_002dINF\jsp\templates\nothingToDisplay_jsp.classtmp] to [E:\Tomcat\apache-tomcat-9.0.37\work\Catalina\localhost\reportservice\org\apache\jsp\WEB_002dINF\jsp\templates\nothingToDisplay_jsp.class]
  at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:184)
  at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:142)
  at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:543)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:392)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:362)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:346)
  at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:605)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:400)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)

Environment

Release : Clarity with Jaspersoft 7.8 

Component : Jaspersoft 

Cause

Post Tomcat 8.0.53, when Tomcat is installed as a service, it's installed with Log On as "Local Service". Due to this the service in Tomcat 9 is unable to make changes to files on the file system and ends up with errors.

Resolution

Command Line Instruction:

  1. Open "services.msc" as an administrator user. Stop the Jaspersoft service if it's running.
  2. Right click on the service that was created for Jasper, and click on properties.
  3. Change the Log on from "Local Service" to "Local System" account.

  4. Click on Apply.
  5. Start the service and now Jaspersoft as service will start