Tomcat won't recompile servlet

B

bikemh

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?
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

bikemh said:
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.

In default setup at least Tomcat does not compile
servlets ever.

You edit the code, you compile, you deploy and
restart app.

Arne
 
B

bikemh

Arne said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top