Getting "JBWEB000236: Servlet.service() for servlet jsp threw exception: java.io.IOException: tmpFile.renameTo(classFile) failed" when JSP pages are being compiled on JBoss EAP 6/7

Solution Verified - Updated -

Issue

  • Web Application stops working and an error is shown:
JBWEB000236: Servlet.service() for servlet jsp threw exception: java.io.IOException: tmpFile.renameTo(classFile) failed
    at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:243) [jbossweb-7.5.27.Final-redhat-1.jar:7.5.27.Final-redhat-1]
    at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:162) [jbossweb-7.5.27.Final-redhat-1.jar:7.5.27.Final-redhat-1]
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:484) [jbossweb-7.5.27.Final-redhat-1.jar:7.5.27.Final-redhat-1]
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361) [jbossweb-7.5.27.Final-redhat-1.jar:7.5.27.Final-redhat-1]
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:339) [jbossweb-7.5.27.Final-redhat-1.jar:7.5.27.Final-redhat-1]
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326) [jbossweb-7.5.27.Final-redhat-1.jar:7.5.27.Final-redhat-1]

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content