[appengine-java] Re: Regarding Error in Jsp Code
Hi, dunno if this helps, but... > <% > if(entries.isEmpty()) { > %> > is missing a " Might help. Ric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Regarding Error in Jsp Code
have you configured 'JRE System Library' to JDK ? if not have look at this http://groups.google.com/group/google-appengine-java/browse_thread/thread/2a4be3c1d4a0feed/1d55c317e54fa985?lnk=gst&q=jsp#1d55c317e54fa985 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Regarding Error in Jsp Code
* } ** }* You need to surround the ending curly-braces with <% and %>, like so: <% * } **}* *%> * On Mon, Sep 14, 2009 at 7:04 AM, anu wrote: > > hi i have developed a sample application by following apps given in > appengine sdk demos sample apps and when i send a request from > browser to that application then iam getting the following error on > jsp page > > HTTP ERROR: 500 > > Unable to compile class for JSP > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: 'catch' without 'try' >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: ')' expected >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: not a statement >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: ';' expected >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 165: 'finally' without 'try' >[javac] } finally { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 35: 'try' without 'catch' or 'finally' >[javac] try { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 169: reached end of file while parsing >[javac] } >[javac] ^ >[javac] 7 errors > > > > > RequestURI=/ex.jsp > Caused by: > > org.apache.jasper.JasperException: Unable to compile class for JSP > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: 'catch' without 'try' >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: ')' expected >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: not a statement >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 158: ';' expected >[javac] } catch (Throwable t) { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 165: 'finally' without 'try' >[javac] } finally { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 35: 'try' without 'catch' or 'finally' >[javac] try { >[javac] ^ > > > Generated servlet error: >[javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp > \Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java: > 169: reached end of file while parsing >[javac] } >[javac] ^ >[javac] 7 errors > > > > >at org.apache.jasper.compiler.DefaultErrorHandler.javacError > (DefaultErrorHandler.java:84) >at org.apache.jasper.compiler.ErrorDispatcher.javacError > (ErrorDispatcher.java:332) >at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java: > 412) >at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) >at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) >at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) >at org.apache.jasper.JspCompilationContext.compile > (JspCompilationContext.java:511) >at org.apache.jasper.servlet.JspServletWrapper.service > (JspServletWrapper.java:295) >at org.apache.jasper.servlet.JspServlet.serviceJspFile > (JspServlet.java:292) >at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) >at > com.google.appengine.tools.development.PrivilegedJspServlet.access > $101(PrivilegedJspServlet.java
[appengine-java] Re: Regarding Error in Jsp Code
Hi sreekanth, Nice to see your reply, I have checked it i have configured JRE Suystem Library to Jdk,But still iam getting this error.,all the servlets in my app are working properly,but only jsp page is not working since i was new in working with jsp i feel like i have written any wrong code in jsp,so please check it and let me know if any corrections Thanks in advance anu On Mon, Sep 14, 2009 at 6:39 PM, Sreekanth Raju wrote: > have you configured 'JRE System Library' to JDK ? if not have look at this > > > http://groups.google.com/group/google-appengine-java/browse_thread/thread/2a4be3c1d4a0feed/1d55c317e54fa985?lnk=gst&q=jsp#1d55c317e54fa985 > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Regarding Error in Jsp Code
Hi rajeev, Thanks for your reply, i have included <% %> between the curly braces and compiled it again then iam getiing following error. HTTP ERROR: 500 Unable to compile class for JSP Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: cannot find symbol [javac] symbol : class query [javac] location: package javax.jdo [javac] import javax.jdo.query; [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:116: cannot find symbol [javac] symbol : class Query [javac] location: class org.apache.jsp.ex_jsp [javac] Query query=pm.newQuery("SELECT * FROM" +exeEntry.class.getName()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: cannot find symbol [javac] symbol : method getContent() [javac] location: class exe.exeEntry [javac] out.print(e.getContent()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:147: cannot find symbol [javac] symbol : method getPoster() [javac] location: class exe.exeEntry [javac] out.print(e.getPoster()); [javac] ^ Generated servlet error: [javac] Note: C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java uses unchecked or unsafe operations. Generated servlet error: [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors RequestURI=/ex.jsp Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: cannot find symbol [javac] symbol : class query [javac] location: package javax.jdo [javac] import javax.jdo.query; [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:116: cannot find symbol [javac] symbol : class Query [javac] location: class org.apache.jsp.ex_jsp [javac] Query query=pm.newQuery("SELECT * FROM" +exeEntry.class.getName()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: cannot find symbol [javac] symbol : method getContent() [javac] location: class exe.exeEntry [javac] out.print(e.getContent()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:147: cannot find symbol [javac] symbol : method getPoster() [javac] location: class exe.exeEntry [javac] out.print(e.getPoster()); [javac] ^ Generated servlet error: [javac] Note: C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java uses unchecked or unsafe operations. Generated servlet error: [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.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:487) at org.mortbay.jetty.servlet.ServletHandler$Ca
[appengine-java] Re: Regarding Error in Jsp Code
Hi Richard, Thanks for ur reply.i have tried with ur suggestion and recompiled it then i am getting the following error.so plz check out this error and help me in rectifying the error. HTTP ERROR: 500 Unable to compile class for JSP Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: cannot find symbol [javac] symbol : class query [javac] location: package javax.jdo [javac] import javax.jdo.query; [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:116: cannot find symbol [javac] symbol : class Query [javac] location: class org.apache.jsp.ex_jsp [javac] Query query=pm.newQuery("SELECT * FROM" +exeEntry.class.getName()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: cannot find symbol [javac] symbol : method getContent() [javac] location: class exe.exeEntry [javac] out.print(e.getContent()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:147: cannot find symbol [javac] symbol : method getPoster() [javac] location: class exe.exeEntry [javac] out.print(e.getPoster()); [javac] ^ Generated servlet error: [javac] Note: C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java uses unchecked or unsafe operations. Generated servlet error: [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors RequestURI=/ex.jsp Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: cannot find symbol [javac] symbol : class query [javac] location: package javax.jdo [javac] import javax.jdo.query; [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:116: cannot find symbol [javac] symbol : class Query [javac] location: class org.apache.jsp.ex_jsp [javac] Query query=pm.newQuery("SELECT * FROM" +exeEntry.class.getName()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: cannot find symbol [javac] symbol : method getContent() [javac] location: class exe.exeEntry [javac] out.print(e.getContent()); [javac] ^ Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:147: cannot find symbol [javac] symbol : method getPoster() [javac] location: class exe.exeEntry [javac] out.print(e.getPoster()); [javac] ^ Generated servlet error: [javac] Note: C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java uses unchecked or unsafe operations. Generated servlet error: [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.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.j
[appengine-java] Re: Regarding Error in Jsp Code
It looks like there is a problem with your import statement: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: cannot find symbol [javac] symbol : class query [javac] location: package javax.jdo [javac] import javax.jdo.query; [javac] I think you want to import javax.jdo.Query here (note the difference in case). As for: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: cannot find symbol [javac] symbol : method getContent() [javac] location: class exe.exeEntry [javac] out.print(e.getContent()); [javac] ^ Your class exe.exeEntry does not have a method named getContent(), though it does have a field named content. You have to expose the getter/setter yourself. On Tue, Sep 15, 2009 at 3:14 AM, nimmala anukarthi < nimmala.anukar...@gmail.com> wrote: > Hi rajeev, > Thanks for your reply, i have included <% %> between the curly braces and > compiled it again > then iam getiing following error. > > HTTP ERROR: 500 > > Unable to compile class for JSP > > > Generated servlet error: > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: > cannot find symbol > [javac] symbol : class query > > [javac] location: package javax.jdo > > [javac] import javax.jdo.query; > [javac] ^ > > > Generated servlet error: > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:116: > cannot find symbol > > > [javac] symbol : class Query > [javac] location: class org.apache.jsp.ex_jsp > [javac] Query query=pm.newQuery("SELECT * FROM" > +exeEntry.class.getName()); > [javac] ^ > > > Generated servlet error: > > > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: > cannot find symbol > [javac] symbol : method getContent() > [javac] location: class exe.exeEntry > > > [javac] out.print(e.getContent()); > [javac] ^ > > > Generated servlet error: > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:147: > cannot find symbol > > > [javac] symbol : method getPoster() > [javac] location: class exe.exeEntry > [javac] out.print(e.getPoster()); > [javac] ^ > > > Generated servlet error: > [javac] Note: > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java > uses unchecked or unsafe operations. > > > > Generated servlet error: > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 4 errors > > > > RequestURI=/ex.jsp > Caused by: > > org.apache.jasper.JasperException: Unable to compile class for JSP > > Generated servlet error: > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: > cannot find symbol > > > [javac] symbol : class query > [javac] location: package javax.jdo > [javac] import javax.jdo.query; > [javac] ^ > > > Generated servlet error: > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:116: > cannot find symbol > > > [javac] symbol : class Query > [javac] location: class org.apache.jsp.ex_jsp > [javac] Query query=pm.newQuery("SELECT * FROM" > +exeEntry.class.getName()); > [javac] ^ > > > Generated servlet error: > > > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:144: > cannot find symbol > [javac] symbol : method getContent() > [javac] location: class exe.exeEntry > > > [javac] out.print(e.getContent()); > [javac] ^ > > > Generated servlet error: > [javac] > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:147: > cannot find symbol > > > [javac] symbol : method getPoster() > [javac] location: class exe.exeEntry > [javac] out.print(e.getPoster()); > [javac] ^ > > > Generated servlet error: > [javac] Note: > C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java > uses unchecked or unsafe operations. > > > > Generated servlet error: > [javac] Note: Recompile with -Xlint:unchecked for details. > > [javac] 4 errors > > > > > at > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) > > > at > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) >