Tomcat 4.1.27 not updating servlets

From: Marcus Beyer (mb_at_stormlight.de)
Date: 11/12/03


Date: Wed, 12 Nov 2003 12:40:28 +0100


I doing my first J2EE steps using Tomcat 4.1.27
(embeded in JBoss 3.2.2).

I have put my exploded HelloWorld.war (i.e. it's
just a normal directory) that contains a JSP page
and a Servlet into the deploy directory.
I start the server and both JSP page and Servlet
work fine.

There is one thing I do not understand:
When I update the JSP page, I see the result
immediately (on a browser). But when I update
the servlet class file, nothing changes until
I restart Tomcat.

Why is that so? Can Tomcat be configured to
update servlets immediately? Must I really
restart the server? Does Tomcat 5 behave the
same or differently?

Thanx!
Marcus



Relevant Pages

  • prevent direct access to JSP
    ... Okay, so we're upgrading to Tomcat 6, and we've encountered a difficulty. ... JSP for the display, but only ever to have the servlet URL visible to the ... In Tomcat 6, however, the request URL is that of the ...
    (comp.lang.java.programmer)
  • Requested Resource is Not available - web.xml / servlet mapping looks perfect
    ... I am on a unix box running Tomcat 5.0.19. ... I recompiled my servlet on ... I can have one JSP forward to another JSP, but I cna not find my ...
    (comp.lang.java.programmer)
  • Re: PLEASE HELP at Java Servlet / Java Server Pages !!!!!
    ... I put ojdbc14.jar in in folder, where is my .jsp file. ... Generated servlet error: ... Syntax error on tokens, delete these tokens ... folder in tomcat. ...
    (comp.lang.java.programmer)
  • Re: Tomcat + java.io.FileNotFoundException
    ... Application Server executes servlet and JSP in their own context (both ... > experience configuring tomcat. ... > 1- the File class uses paths relative to the working directory. ... However, classA is ...
    (comp.lang.java.programmer)
  • Re: A2LL ist tot...
    ... | mit Tomcat als Servlet Container. ... | # Bugs - You think you have a bug or there is a difference in behavior with another servlet container. ... | # Database - Getting tomcat to talk to a database. ...
    (de.talk.tagesgeschehen)