JSP compilation IOException in JBoss and Tomcat
Lately I have been getting this error a lot (about 20% of the time) when a JSP page first gets compiled in tomcat 5.5 or JBoss 4.0.4:
java.io.IOException: tmpFile.renameTo(classFile) failed
What happens is I end up with a file named E.G. grade_jsp$grade_jspHelper.classtmp and the page will continue failing until I go into the work directory of JBoss or Tomcat and manually delete all the .class and .classtmp files.
Is there any reason for this? The only error I see in the logs is the one above, and generally the system will be able to compile the pages the second time. This is extremely annoying and seems like it has only been happening for about a month now.
This is with IDEA 5.1.2 build 4267.
请先登录再写评论。
My guess is that this should be posted to the JBoss forums.
Bradley Smith wrote:
>
>
>
>
My problem is that it never ever happens when the app server is run outside of IDEA, and Tomcat 5.5 does the exact same thing. Also, when this happens in Tomcat, the failure occurs under:
${user.home}/.IntelliJIdea50/system/tomcat_Tomcat_3e3b027d/work
This might actually be a tomcat/jboss problem, but it only ever happens inside of IDEA.
Hello Bradley,
Please post here full exception's stacktrace for Tomcat.
>> My guess is that this should be posted to the JBoss forums.
>>