With Tomcat/5.5.7, the example servlets are running correctly. But if I
edit the HelloWorldExample source
($catalina_home\webapps\servlets-examples\WEB-INF\classes\HelloWorldExample.java),
the HelloWorldExample servlet does not change. If I use the manager to
reload the context of /servlets-examples, then the manager reports the
msg, "OK - Reloaded application at context path /servlets-examples" but
the servlet is not changed. If I restart Tomcat completely, the servlet
is still not changed.
Why not?
> With Tomcat/5.5.7, the example servlets are running correctly. But if I
> edit the HelloWorldExample source
[quoted text clipped - 4 lines]
> the servlet is not changed. If I restart Tomcat completely, the servlet
> is still not changed.
In default setup at least Tomcat does not compile
servlets ever.
You edit the code, you compile, you deploy and
restart app.
Arne
bikemh - 12 Sep 2006 20:41 GMT
> In default setup at least Tomcat does not compile
> servlets ever.
>
> You edit the code, you compile, you deploy and
> restart app.
thanks, Arne. I am re-acquainting myself with servlets from a few years
ago and was mistaken about tomcat doing autocompiling. I believe,
though, that Resin might have done autocompiling.
Also, since I have now edited tomcat_home/conf/context.xml by changing:
<Context>
to:
<Context reloadable="true">
restarting is not necessary (for the development stage)