I pass the request around quite a bit as well. Did you compile your classes
against the servlet.jar that is distributed with Tomcat?

        at org.apache.jsp.nav_jsp._jspService(nav_jsp.java:61)

what is on line 61 of jsp_nav.java? look in the tomcat\work directory to
find the java file for your jsp.

is it possible that your class is throwing an exception that you are not
catching in the JSP? 

Charlie

> -----Original Message-----
> From: Woodrich, Jason D (Jason) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 10:41 PM
> To: Tomcat Users List
> Subject: RE: ServletException
> 
> 
> My classes are using the HttpServletRequest.  I'm passing the 
> "request" variable because that's the only one I'm aware of 
> that is in use that implements the HttpServletRequest.  Is 
> there something else I should be using?
> 
> Thanks
> 
> Jason Woodrich
> - Avaya, Inc.
> - Knowledge Management & Tools Development
> 
> -----Original Message-----
> From: Yoav Shapira [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 7:28 PM
> To: Tomcat Users List
> Subject: RE: ServletException
> 
> 
> Howdy,
> Perhaps the fact that in 4.0.x your JSPs were package-less 
> and in 4.1.x they're
> in org.apache.jsp?  (Or vice versa, I can never remember).
> 
> Anyways, why are you using the tomcat-specific 
> HttpRequestFacade instead of the
> servlet specification's HttpServletRequest?
> 
> Yoav Shapira
> 
> --- "Woodrich, Jason D (Jason)" <[EMAIL PROTECTED]> wrote:
> > Ok, I tested this under standalone on 4.1 and on 4.0.6.  It 
> works fine under
> > 4.0.6 but has the ServletException under 4.1.  Anyone know 
> if anything
> > changed between the versions that would prevent 
> HttpRequestFacade methods
> > from being accessible from objects outside of the JSP?
> > 
> > Thanks
> > 
> > Jason Woodrich
> > - Avaya, Inc.
> > - Knowledge Management & Tools Development 
> > 
> > -----Original Message-----
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 25, 2003 7:03 AM
> > To: Tomcat Users List
> > Subject: RE: ServletException
> > 
> > 
> > 
> > Howdy,
> > First try to reproduce this problem using 
> tomcat-standalone, to take out
> > the apache variable.  That will make debugging easier.
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-----Original Message-----
> > >From: Woodrich, Jason D (Jason) [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, June 24, 2003 9:47 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: ServletException
> > >
> > >I'm getting a ServletException when I try to access methods in a
> > >HttpRequestFacade passed to one of my own classes.  It's 
> being casted
> > as a
> > >HttpServletRequest in hopes to maintain portability.  I'm able to
> > access
> > >the methods fine from the JSP that passes the request 
> variable, and the
> > >reference is exactly the same when compared ..  but for some reason
> > >whenever I call it from my class it freaks out and causes the
> > >ServletException which leads to the JasperException ..
> > >
> > >For example:
> > >
> > >jsp file:
> > >
> > ><[EMAIL PROTECTED] language="java" import="<my package>.*" %> -->
> > ><%
> > >    Cheese hi;
> > >    hi=new Cheese(request);
> > >%>
> > >
> > >part of the class:
> > >
> > >public class Cheese {
> > >  private HttpServletRequest _request;
> > >  public Cheese (HttpServletRequest req) {
> > >    System.out.println("uri: "+req.getRequestURI());
> > >    }
> > >  }
> > >
> > >Returned is:
> > >org.apache.jasper.JasperException:
> > javax/servlet/http/HttpServletRequest
> > >   at
> > 
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServle
> tWrapper.j
> > ava:
> > >254)
> > >   at
> > 
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
> t.java:295
> > )
> > >   at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >   at
> > 
> >org.apache.catalina.core.ApplicationFilterChain.internalDoFil
> ter(Applic
> > atio
> > >nFilterChain.java:247)
> > >   at
> > 
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
> icationFil
> > terC
> > >hain.java:193)
> > >   at
> > 
> >org.apache.catalina.core.StandardWrapperValve.invoke(Standard
> WrapperVal
> > ve.j
> > >ava:256)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardContextValve.invoke(Standard
> ContextVal
> > ve.j
> > >ava:191)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardContext.invoke(StandardConte
> xt.java:24
> > 15)
> > >   at
> > 
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHos
> tValve.jav
> > a:18
> > >0)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
> ispatcherV
> > alve
> > >.java:171)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:641)
> > >   at
> > 
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
> tValve.jav
> > a:17
> > >2)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:641)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardEngineValve.invoke(StandardE
> ngineValve
> > .jav
> > >a:174)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.valves.RequestDumperValve.invoke(RequestD
> umperValve
> > .jav
> > >a:221)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:641)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.
> java:466)
> > >   at
> > org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
> > >   at java.lang.Thread.run(Thread.java:536)
> > >
> > >
> > >root cause
> > >
> > >javax.servlet.ServletException: 
> javax/servlet/http/HttpServletRequest
> > >   at
> > 
> >org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageConte
> > xtIm
> > >pl.java:536)
> > >   at org.apache.jsp.nav_jsp._jspService(nav_jsp.java:61)
> > >   at
> > >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >   at
> > 
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServle
> tWrapper.j
> > ava:
> > >210)
> > >   at
> > 
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
> t.java:295
> > )
> > >   at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >   at
> > 
> >org.apache.catalina.core.ApplicationFilterChain.internalDoFil
> ter(Applic
> > atio
> > >nFilterChain.java:247)
> > >   at
> > 
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
> icationFil
> > terC
> > >hain.java:193)
> > >   at
> > 
> >org.apache.catalina.core.StandardWrapperValve.invoke(Standard
> WrapperVal
> > ve.j
> > >ava:256)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardContextValve.invoke(Standard
> ContextVal
> > ve.j
> > >ava:191)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardContext.invoke(StandardConte
> xt.java:24
> > 15)
> > >   at
> > 
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHos
> tValve.jav
> > a:18
> > >0)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
> ispatcherV
> > alve
> > >.java:171)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:641)
> > >   at
> > 
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
> tValve.jav
> > a:17
> > >2)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:641)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardEngineValve.invoke(StandardE
> ngineValve
> > .jav
> > >a:174)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.valves.RequestDumperValve.invoke(RequestD
> umperValve
> > .jav
> > >a:221)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:641)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.
> java:466)
> > >   at
> > org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
> > >   at java.lang.Thread.run(Thread.java:536)
> > >
> > >Anyone ever heard of anything like this?
> > >
> > >Thanks in advance
> > >
> > >Jason W
> > >- Avaya, Inc.
> > >- Knowledge Management & Tools Development
> > >
> > >
> > >
> > 
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > This e-mail, including any attachments, is a confidential business
> > communication, and may contain information that is 
> confidential, proprietary
> > and/or privileged.  This e-mail is intended only for the 
> individual(s) to
> > whom it is addressed, and may not be saved, copied, 
> printed, disclosed or
> > used by anyone else.  If you are not the(an) intended 
> recipient, please
> > immediately delete this e-mail from your computer system 
> and notify the
> > sender.  Thank you.
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> > 
> 
> 
> =====
> Yoav Shapira
> [EMAIL PROTECTED]
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to