Andreas Joseph Krogh wrote:
> Hi.
> When trying to dynamicly reload a servlet, I get a "ClassCastException".
> I use Tomcat-3.2.1 and jakarta-struts-1.0 from
> jakarta-struts-src-20010110.tar.gz.
> Here is the exception from the logs:
> ==> logs/jasper.log <==
> 2001-01-15 10:52:20 - Classpath according to the Servlet Engine is:
>
>/export/home/andreak/jakarta-tomcat-3.2.1/webapps/struts-example/WEB-INF/classes:/export/home/andreak/jakarta-tomcat-3.2.1/webapps/struts-example/WEB-INF/lib/struts.jar
>
You are currently going to have problems using the auto-reload feature like this :-(.
The reason is that Tomcat 3.2 does *not* completely restart the current web app when
it reloads the servlet classes, so the servlet context attributes are the ones from
the "old" classloader. This is a fundamental problem with the way that reloading works
in 3.2.
Tomcat 4.0 does this correctly, because it completely reloads the web app when a
reload is performed.
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]