Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use windows 8 and it happens with login jsp.


Dora
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post a snippet of the code around the line:

tmpFile.renameTo(classFile)
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for Cattura.PNG]
 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic