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)
Release : Clarity with Jaspersoft 7.8
Component : Jaspersoft
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.
Command Line Instruction: