Hello,

For various and sundry reasons, I need to wrap the original
HttpServletRequest with a facade of my own.  I know that the
HttpServletRequest exposed by Catalina is a RequestFacade object.  I simply
wrap my facade around this puppy.

And... when my jsp attempts to render... boom:

java.lang.ClassCastException: com.xxx.request.MyTestRequestFacade
at 
org.apache.catalina.core.ApplicationDispatcher.unwrapRequest(ApplicationDispatcher.java:814)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:401)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

I tried to extend the RequestFacade, but cannot because the constructor
requires a org.apache.catalina.connector.Request, and I cannot get a hold of
that.  Is there anything I can do to encourage tomcat to instantiate my
request facade instead its own?

Using Tomcat 5.5 at present.

Thanks,

Reply via email to