Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » IOException resulting in JasperException: unable to compile class for JSP
IOException resulting in JasperException: unable to compile class for JSP [message #475704] Tue, 21 July 2009 19:54 Go to next message
Bill Blalock is currently offline Bill BlalockFriend
Messages: 118
Registered: July 2009
Location: Alabama
Senior Member
Has anyone run into this?

- Help throws an IOException:
java.io.IOException: tmpFile.renameTo(classFile) failed
- a lot of stack trace
- and then a JasperException or two
Jul 21, 2009 2:39:05 PM org.mortbay.jetty.servlet.ServletHandler
handle
WARNING: EXCEPTION
org.apache.jasper.JasperException: Unable to compile class for JSP
- and a lot more stack traces

I don't believe this is an Eclipse.ua problem. I think it is caused by
security software not getting out of the way quickly enough. To
agressively inspecting things on the system and having a lock on them
while Help tries to use them.

This pretty much happens whenever an Eclipse 3.4 starts Help ... in my
applications, in Eclipse SDK and in IBM RDi 7.5. And it is random.
Sometimes it works on the initial openning of the Help system.

Most of the time I get some form of failure on the first try, by the 3rd
or 4th Help access it will settle down.

Has anyone else run into something like this? If so I'd appreciate any
suggestion as to what to do with it. Are there any preferences which
effect this behavior? Any trick when writing my RCPs which use Help to
avoid this?

Again, I don't think this is an Eclipse problem ... more a question of
living with security.

Thanks all
Bill Blalock
Re: IOException resulting in JasperException: unable to compile class for JSP [message #555061 is a reply to message #475704] Wed, 25 August 2010 11:18 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I get the exact same problem.

I am using org.eclipse.help in my RCP.

I get the above mentioned effects when I open up the normal help view in my RCP app.

Any ideas how to fix this?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #555511 is a reply to message #475704] Thu, 26 August 2010 21:19 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Do you know which jps file it is trying to compile - is it one from org.eclipse.help.webapp or one in one of your own bundles?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #555630 is a reply to message #555511] Fri, 27 August 2010 12:33 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I don't have any custom JSPs.

Not sure which one it is, can you tell me how to debug the Jetty or Jasper
servers? Then maybe I could find out...

"Chris Goldthorpe" <cgold@us.ibm.com> wrote in message
news:i56loe$p8l$1@build.eclipse.org...
> Do you know which jps file it is trying to compile - is it one from
> org.eclipse.help.webapp or one in one of your own bundles?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #555973 is a reply to message #555630] Mon, 30 August 2010 12:44 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I get this:

Problem accessing /help/advanced/tocView.jsp. Reason:

Unable to compile class for JSP

Caused by:
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:572)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet .java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
Caused by: java.io.IOException: tmpFile.renameTo(classFile) failed
at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(Sma pUtil.java:245)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.jav a:164)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:429)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
... 25 more

Caused by:
java.io.IOException: tmpFile.renameTo(classFile) failed
at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(Sma pUtil.java:245)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.jav a:164)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:429)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet .java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)

Re: IOException resulting in JasperException: unable to compile class for JSP [message #556127 is a reply to message #555630] Mon, 30 August 2010 22:09 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
I see from your original description that Jasper is trying to compile /help/advanced/tocView.jsp from the bundle org.eclipse.help.webapp. This is strange because there is an ant script, buildJSPs.xml in org.eclipse.help.webapp which compiles the jsps at build time, i.e. they should not need to be rebuilt at run time. The intermittency is also puzzling since if the firewall was locking out Jasper it would always happen, I don't believe that it is a firewall causing the problem because a firewall usually only monitors traffic in and out and does not know about the internal resources being used by the server.

If it only happened in an RCP application I would have suggested making sure that the workspace and configuration areas point to writeable directories. Since it is happening in the Eclipse SDK that seems less likely but you may want to check to see if Eclipse was installed into a read only location.

I have not heard of this problem before, what OS are you running on?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #556202 is a reply to message #556127] Tue, 31 August 2010 10:49 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
Windows 7.

Bundle versions:

org.eclipse.help.webapp 3.5.0.v20100507

org.eclipse.help.ui 3.5.0.v20100517

org.eclipse.help 3.5.0.v20100524

Let me know if I can debug something.
Re: IOException resulting in JasperException: unable to compile class for JSP [message #624399 is a reply to message #475704] Wed, 25 August 2010 11:18 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I get the exact same problem.

I am using org.eclipse.help in my RCP.

I get the above mentioned effects when I open up the normal help view in my RCP app.

Any ideas how to fix this?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #624405 is a reply to message #475704] Thu, 26 August 2010 21:19 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Do you know which jps file it is trying to compile - is it one from org.eclipse.help.webapp or one in one of your own bundles?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #624409 is a reply to message #624405] Fri, 27 August 2010 12:33 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I don't have any custom JSPs.

Not sure which one it is, can you tell me how to debug the Jetty or Jasper
servers? Then maybe I could find out...

"Chris Goldthorpe" <cgold@us.ibm.com> wrote in message
news:i56loe$p8l$1@build.eclipse.org...
> Do you know which jps file it is trying to compile - is it one from
> org.eclipse.help.webapp or one in one of your own bundles?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #624410 is a reply to message #555630] Mon, 30 August 2010 12:44 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I get this:

Problem accessing /help/advanced/tocView.jsp. Reason:

Unable to compile class for JSP

Caused by:
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:572)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet .java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
Caused by: java.io.IOException: tmpFile.renameTo(classFile) failed
at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(Sma pUtil.java:245)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.jav a:164)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:429)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
... 25 more

Caused by:
java.io.IOException: tmpFile.renameTo(classFile) failed
at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(Sma pUtil.java:245)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.jav a:164)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:429)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet .java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
Re: IOException resulting in JasperException: unable to compile class for JSP [message #624474 is a reply to message #555630] Mon, 30 August 2010 22:09 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
I see from your original description that Jasper is trying to compile /help/advanced/tocView.jsp from the bundle org.eclipse.help.webapp. This is strange because there is an ant script, buildJSPs.xml in org.eclipse.help.webapp which compiles the jsps at build time, i.e. they should not need to be rebuilt at run time. The intermittency is also puzzling since if the firewall was locking out Jasper it would always happen, I don't believe that it is a firewall causing the problem because a firewall usually only monitors traffic in and out and does not know about the internal resources being used by the server.

If it only happened in an RCP application I would have suggested making sure that the workspace and configuration areas point to writeable directories. Since it is happening in the Eclipse SDK that seems less likely but you may want to check to see if Eclipse was installed into a read only location.

I have not heard of this problem before, what OS are you running on?
Re: IOException resulting in JasperException: unable to compile class for JSP [message #624477 is a reply to message #624474] Tue, 31 August 2010 10:49 Go to previous message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
Windows 7.

Bundle versions:

org.eclipse.help.webapp 3.5.0.v20100507

org.eclipse.help.ui 3.5.0.v20100517

org.eclipse.help 3.5.0.v20100524

Let me know if I can debug something.
Previous Topic:Removing Help book "Workbench User Guide" from help
Next Topic:Setting the default help home page
Goto Forum:
  


Current Time: Mon Nov 24 23:04:32 GMT 2014

Powered by FUDForum. Page generated in 0.02415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software