Problem with Jasper-Need your help

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Jasper-Need your help

Pani-3
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>
<TITLE>JSP Expressions</TITLE>
</HEAD>
<BODY>
<H2>JSP Expressions</H2>
<UL>
<LI>Current time: <%= new java.util.Date() %>
<LI>Your hostname: <%= request.getRemoteHost() %>
<LI>Your session ID: <%= session.getId() %>
<LI>The <CODE>testParam</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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Problem with Jasper-Need your help

Raghupathy,Gurumoorthy
<%= 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:[hidden email]]
Sent: 27 July 2005 13:23
To: [hidden email]
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>
<TITLE>JSP Expressions</TITLE>
</HEAD>
<BODY>
<H2>JSP Expressions</H2>
<UL>
<LI>Current time: <%= new java.util.Date() %>
<LI>Your hostname: <%= request.getRemoteHost() %>
<LI>Your session ID: <%= session.getId() %>
<LI>The <CODE>testParam</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: [hidden email]
For additional commands, e-mail: [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with Jasper-Need your help

Pani-3
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
<[hidden email]> 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:[hidden email]]
> Sent: 27 July 2005 13:23
> To: [hidden email]
> 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>
> <TITLE>JSP Expressions</TITLE>
> </HEAD>
> <BODY>
> <H2>JSP Expressions</H2>
> <UL>
> <LI>Current time: <%= new java.util.Date() %>
> <LI>Your hostname: <%= request.getRemoteHost() %>
> <LI>Your session ID: <%= session.getId() %>
> <LI>The <CODE>testParam</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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with Jasper-Need your help

Pani-3
So is there anybody that can help me?

Please guys...I don't know what to do.

On 7/27/05, Panagiotis Karvounis <[hidden email]> 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
> <[hidden email]> 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:[hidden email]]
> > Sent: 27 July 2005 13:23
> > To: [hidden email]
> > 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>
> > <TITLE>JSP Expressions</TITLE>
> > </HEAD>
> > <BODY>
> > <H2>JSP Expressions</H2>
> > <UL>
> > <LI>Current time: <%= new java.util.Date() %>
> > <LI>Your hostname: <%= request.getRemoteHost() %>
> > <LI>Your session ID: <%= session.getId() %>
> > <LI>The <CODE>testParam</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: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with Jasper-Need your help

Pani-3
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 <[hidden email]> wrote:

> So is there anybody that can help me?
>
> Please guys...I don't know what to do.
>
> On 7/27/05, Panagiotis Karvounis <[hidden email]> 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
> > <[hidden email]> 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:[hidden email]]
> > > Sent: 27 July 2005 13:23
> > > To: [hidden email]
> > > 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>
> > > <TITLE>JSP Expressions</TITLE>
> > > </HEAD>
> > > <BODY>
> > > <H2>JSP Expressions</H2>
> > > <UL>
> > > <LI>Current time: <%= new java.util.Date() %>
> > > <LI>Your hostname: <%= request.getRemoteHost() %>
> > > <LI>Your session ID: <%= session.getId() %>
> > > <LI>The <CODE>testParam</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: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]