Skip to main content

Problem:

  • Product Name: Borland Application Server
  • Product Version: All
  • Product Component: Web Container (Tomcat)
  • Platform/OS Version: All

Tomcat is not able to compile JSPs at runtime.

Following exception is thrown:

2008-04-24 14:39:00,265 ERROR [http-8210-Processor25] org.apache.catalina.core.ContainerBase.[HTTP].[localhost].[/compas].[action] - Servlet.service() for servlet action threw exceptionjava.io.IOException: tmpFile.renameTo(classFile) failed
at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:245)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:164)

Resolution:

The possible workarounds are:

  1. Clear the work folder of the web container.
  2. Change the "fork" parameter to true in the web.xml under jsp.
    When the JVM is forked into two processes, the problem of sharing files using a single JVM will no longer exist.
  3. Check whether the path of the work folder is too long. If it is, specify a smaller path for the workDir parameter in the server.xml.

Old KB# 15591

#Security
#VisiBroker
#WebContainer
#BorlandApplicationServer