File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBWEB000071: root cause   java.io.IOException: tmpFile.renameTo(classFile) failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBWEB000071: root cause   java.io.IOException: tmpFile.renameTo(classFile) failed" Watch "JBWEB000071: root cause   java.io.IOException: tmpFile.renameTo(classFile) failed" New topic
Author

JBWEB000071: root cause java.io.IOException: tmpFile.renameTo(classFile) failed

Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
Hi guys,
I use jboss eap 6.1 only without tomcat but when i try to login it shows this errors :

JBWEB000065: HTTP Status 500 - JBWEB004001: Unable to compile class for JSP

JBWEB000309: type JBWEB000066: Exception report

JBWEB000068: message JBWEB004001: Unable to compile class for JSP

JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.

JBWEB000070: exception

org.apache.jasper.JasperException: JBWEB004001: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:618)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

JBWEB000071: root cause

java.io.IOException: tmpFile.renameTo(classFile) failed
org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:243)
org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:162)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:462)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:606)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

JBWEB000072: note JBWEB000073: The full stack trace of the root cause is available in the JBoss Web/7.2.0.Final-redhat-1 logs.

thanks

Dora
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Obvious questions - What permissions are set on the JBOSS_HOME/standalone/tmp folder? Which operating system is this? Does this happen with every JSP or some specific JSP?

[My Blog] [JavaRanch Journal]
Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
I use windows 8 and it happens with login jsp.


Dora
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1030
    
    5

Could you post a snippet of the code around the line:

tmpFile.renameTo(classFile)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

James Boswell wrote:

tmpFile.renameTo(classFile)


It's the Apache Tomcat JSP compiler which is trying to write out the compiled version of the JSP to the disk. So the code belongs to the web container.

Dora, have you checked the permissions on the folder that I asked for? Under which user account is the server running?


Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
thank you Jaikiran Pai I solved the problem, I check my account from jboss console and so I changed my folder under folder Jboss-home/standalone/tmp with the same account and the permission, now it works.

Thanks so much.

Dora
Gaspare Fedele
Greenhorn

Joined: Nov 05, 2013
Posts: 3
Hi Dora,


I have the same problem, I did not understand how did you solve it, how did you change the privileges on the folders from the JBoss console.

Gaspare
Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
Hi Gaspare,
I change permission on the standalone folder.If you right click with the OS Windows 8 by mouse it shows the windows to change permission, you have to choose security label.
You see before which is the account to connect to server console and change the permission at him too.

Dora

Gaspare Fedele
Greenhorn

Joined: Nov 05, 2013
Posts: 3
Meanwhile, thank you for the answer. Unfortunately, I had already put all the privileges to the user jboss (which coincides with the windows user that I use), but the problem continues to give so occasionally, I do not understand what may depend


[Cattura.PNG]

Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
Ok it was the same for me, you try to change the permission on the jboss-home folder , ok ?

It works !!

Dora
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Gaspare Fedele wrote:Unfortunately, I had already put all the privileges to the user jboss (which coincides with the windows user that I use), but the problem continues to give so occasionally


The important part is the user which is configured to run the JBoss server instance. Is that configured as a Windows Service? If yes, what user is configured to run that service? That user should have the necessary permissions on that tmp folder.

Gaspare Fedele
Greenhorn

Joined: Nov 05, 2013
Posts: 3
hello Jaikiran Pai, I have not set jboss as windows service, launch JBoss with Eclipse ide and tried by command line, the user under which the launch is the user Gaspare. The strange thing is that it does not always but only a few times and for some JSP. I thank you for the answer.

Gaspare
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBWEB000071: root cause java.io.IOException: tmpFile.renameTo(classFile) failed