tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabien Le Floc'h <...@operamail.com>
Subject Re: ApplicationContextFacade ClassCaseException
Date Wed, 23 May 2001 01:53:03 GMT
since tomcat 4.0 beta 5, ServletConfig is not a Wrapper anymore. To have access to the wrapper,
you need your servlet to implement the ContainerServlet (or extend, not sure about this detail).
Look at ManagerServlet for more information.

regards,

Fabien


Amy Roh <amyroh@apache.org> writes:

> I'm getting this ServletException with the following message after new
> cvs checkout.  The code was working fine before the cvs update.  Anyone
> has an idea on what's been changed internally to cause this Exception?
> 
> CGIServlet.java:355 contains these following lines.
>  Wrapper wrapper = (Wrapper) getServletConfig();
>  context = (Context) wrapper.getParent();
> 
> Root Cause:
> java.lang.ClassCastException:
> org.apache.catalina.core.ApplicationContextFacade
>  at org.apache.catalina.servlets.CGIServlet.init(CGIServlet.java:355)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833)
>  at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
> 
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252)
> 
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875)
> 
>  at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
> 
>  at java.lang.Thread.run(Thread.java:484)
> 
> Amy


Mime
View raw message