Problem with Jasper-Need your help
Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: 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 Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:544) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Jasper-Need your help
%= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: 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 Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Jasper-Need your help
It didn't work again! I have almost the same problem with all my JSP pages(Servlets work ok). I think is a Tomcat problem;The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) I went to servlet code produced and I changed catch(Throwable t) with catch(Exception t) and the java file was compiled succesfully with javac. Thanks for help Panagiotis On 7/27/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: %= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: 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 Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Jasper-Need your help
So is there anybody that can help me? Please guys...I don't know what to do. On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote: It didn't work again! I have almost the same problem with all my JSP pages(Servlets work ok). I think is a Tomcat problem;The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) I went to servlet code produced and I changed catch(Throwable t) with catch(Exception t) and the java file was compiled succesfully with javac. Thanks for help Panagiotis On 7/27/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: %= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: 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 Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Jasper-Need your help
I found the solution; The method handlePage(Throwable) was introduced in JSP 2.0 The problem was that I had in my classpath a servlet.jar older where this method was not defined.I deleted it and everything works fine now. Thanks for support Panagiotis On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote: So is there anybody that can help me? Please guys...I don't know what to do. On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote: It didn't work again! I have almost the same problem with all my JSP pages(Servlets work ok). I think is a Tomcat problem;The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) I went to servlet code produced and I changed catch(Throwable t) with catch(Exception t) and the java file was compiled succesfully with javac. Thanks for help Panagiotis On 7/27/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: %= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: 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 Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]