JSP编译期间的'tmpFile.renameTo(classFile)'的原因 [英] Cause of 'tmpFile.renameTo(classFile)' during JSP compilation
问题描述
我正在使用Jetty 6服务器,有时会出现此异常:
I'm using Jetty 6 server and sometimes this exception shows up:
java.io.IOException: tmpFile.renameTo(classFile) failed
at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:235)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:158)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:390)
at org.apache.jasper.compiler.Compiler.__compile(Compiler.java:437)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
可以通过更新Jetty来解决问题,还是存在其他方式吗?
Can this be solved by updating Jetty, or does exist any other way?
但不是为了码头问题:因为'tmpFile.renameTo(classFile )在JSP编译期间失败, http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02301.html
Similar but not-for-jetty questions: Cause of 'tmpFile.renameTo(classFile) failed' during JSP compilation, http://dev.eclipse.org/mhonarc/lists/jetty-users/msg02301.html .
谢谢。
推荐答案
在我的情况下,问题是通过再次加载页面来解决的。这个问题是第一次出现,但再次重新加载页面时,我看不到错误。
I was using eclipse and in my case the issue was resolved by just reloading the page once again. The issue occurs first time, but on reloading the page once again I do not see the error.
这篇关于JSP编译期间的'tmpFile.renameTo(classFile)'的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!