Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Unable to compile class for JSP(help)
Unable to compile class for JSP [message #641517] Thu, 25 November 2010 19:13
No real name is currently offline No real name
Messages: 3
Registered: November 2010
Junior Member
Hi everyone,

I'm getting this extremely frustrating error. It says:
HTTP ERROR 500

Problem accessing /gps.jsp. Reason:

Unable to compile class for JSP

Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: 'catch' without 'try'
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: ')' expected
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: not a statement
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: ';' expected
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:131: 'finally' without 'try'
[javac] } finally {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:37: 'try' without 'catch' or 'finally'
[javac] try {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:135: reached end of file while parsing
[javac] }
[javac] ^
[javac] 7 errors




Caused by:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: 'catch' without 'try'
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: ')' expected
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: not a statement
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:124: ';' expected
[javac] } catch (Throwable t) {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:131: 'finally' without 'try'
[javac] } finally {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:37: 'try' without 'catch' or 'finally'
[javac] try {
[javac] ^


Generated servlet error:
[javac] C:\Users\jhwang\AppData\Local\Temp\Jetty_127_0_0_1_8888_war_ ___.g0qk00\jsp\org\apache\jsp\gps_jsp.java:135: reached end of file while parsing
[javac] }
[javac] ^
[javac] 7 errors




at org.apache.jasper.compiler.DefaultErrorHandler.javacError(De faultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorD ispatcher.java:332)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:412)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
at com.google.appengine.tools.development.PrivilegedJspServlet. access$101(PrivilegedJspServlet.java:23)
at com.google.appengine.tools.development.PrivilegedJspServlet$ 2.run(PrivilegedJspServlet.java:59)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.PrivilegedJspServlet. service(PrivilegedJspServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilte r(ServletHandler.java:1166)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFil ter(ServeBlobFilter.java:58)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilte r(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter .doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilte r(ServletHandler.java:1157)
at com.google.appengine.tools.development.StaticFileFilter.doFi lter(StaticFileFilter.java:122)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilte r(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHa ndler.java:216)
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.webapp.WebAppContext.handle(WebAppContext. java:418)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext. handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349)
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:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
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)

I've already tried adding the JDK to my project build path and tools.jar to my lib but it still doesn't work. Can someone please help me?
Previous Topic:Build a project when another is closed
Next Topic:CNF: How can ContentProvider determine project of an object?
Goto Forum:
  


Current Time: Tue Sep 23 06:22:34 GMT 2014

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

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