tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: Strange Error Tomcat 6
Date Mon, 04 Jun 2007 12:30:09 GMT
This comes up often and in Netbeans its easy to fix...
Tomcat will compile your page at "runtime"... so you get these weird errors 
the first time the page is hit.
But in Netbeans.... either right click on the page and force a compile... 
you will see the error, it will take you there and you can fix the syntax. 
Or if you right click on the project, in the properties compiler section you 
can tell Nerbeans to compile every single JSP... that way little gremlins 
wont slip thru into the production environment... have fun, no Tomcat is not 
broken ;)

----- Original Message ----- 
From: "Davide Manca" <davide.manca@matrix.it>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, June 04, 2007 11:53 AM
Subject: Strange Error Tomcat 6


>> HTTP Status 500 -
>
> ________________________________________________________________________
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 80 in the jsp file: /cgi/commons/listing.cgi
> Syntax error, insert "while ( Expression ) ;" to complete BlockStatements
> 77: <c:choose>
> 78: <c:when test="${sbean.totProgrammi>0}">
> 79: <table cellpadding="0" width="100%" cellspacing="0" 
> border="0"><tr><td><div id="box-tit"><div id="data">
> 80: <%=htgiorni.get(fmt3.format(new java.util.Date(yyyy+"/"+mm+"/"+gg)))%> 
> <%=fmt2.format(new java.util.Date(yyyy+"/"+mm+"/"+gg))%> 
> <%=htmesi.get(fmt4.format(new 
> java.util.Date(yyyy+"/"+mm+"/"+gg)))%></div><%if 
> (!oraCheck.equals("-2")){%><div id="box-ora">&nbsp; cambia fascia 
> oraria<table cellpadding="0" cellspacing="0" border="0" 
> id="cambia-ora"><tr><td><%if (Integer.parseInt(ora) >= 2) {%><a

> href="?day=<%=fmt.format(new 
> java.util.Date(yyyy+"/"+mm+"/"+gg))%>&hour=<%=Integer.parseInt(ora)-2%>&type=<%=request.getParameter("type")%>&chtype=<%=request.getParameter("chtype")%>&channel=<%=request.getParameter("channel")%>&tipo=2"><%}%><img

> src="/guida_tv/images/freccia_indietro.gif" alt="indietro" 
> border="0"/><%if (Integer.parseInt(ora) >= 2) 
> {%></a><%}%></td><td>&nbsp;<%=ora%>.00-<%=orapiudue%>.00&nbsp;</td><td><%if

> (Integer.parseInt(ora) < 22) {if (Integer.parseInt(ora) >= 21) {%><a 
> href="?day=<%=fmt.format(new 
> java.util.Date(yyyy+"/"+mm+"/"+gg))%>&hour=<%=Integer.parseInt(ora
> )+1%>&type=<%=request.getParameter("type")%>&chtype=<%=request.getParameter("chtype")%>&channel=<%=request.getParameter("channel")%>&tipo=2"><%}

> else {%><a href="?day=<%=fmt.format(new 
> java.util.Date(yyyy+"/"+mm+"/"+gg))%>&hour=<%=Integer.parseInt(ora)+2%>&type=<%=request.getParameter("type")%>&chtype=<%=request.getParameter("chtype")%>&channel=<%=request.getParameter("channel")%>&tipo=2"><%}%><%}%><img

> src="/guida_tv/images/freccia_avanti.gif" alt="avanti" border="0"/><%if 
> (Integer.parseInt(ora) < 22) 
> {%></a><%}%></td></tr></table></div></div><%}%></td></tr></table><br><!--/data

> e fascia oraria --><%}%>
> 81: </c:when>
> 82: </c:choose>
> 83: <%
>
>
>
> Stacktrace:
>        at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
>        at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
>        at
> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
>        at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
>        at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
>        at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
>        at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
>        at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
>        at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>        at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
>        at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
>        at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
>        at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
>        at
> org.apache.jsp.cgi.programmi.body_cgi._jspService(body_cgi.java:68)
>        at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
>        at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>        at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
>        at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
>        at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
>        at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
>        at org.apache.jsp.cgi.index_cgi._jspService(index_cgi.java:113)
>        at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
>        at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>        at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
>        at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>        at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>        at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>        at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>        at org.apache.jk.common.ChannelSocket
> $SocketConnection.runIt(ChannelSocket.java:889)
>        at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:686)
>        at java.lang.Thread.run(Thread.java:595)
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message