Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / December 2003

Tip: Looking for answers? Try searching our database.

Tomcat 4.1.27 not updating servlets

Thread view: 
Marcus Beyer - 12 Nov 2003 11:40 GMT
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
Tobias Schierge - 12 Nov 2003 20:32 GMT
> 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.

You can either reload the webapp by clicking the reload link on the manager
page or declare the context in the server.xml and mark it as reloadable.

I think the reloadable feature is not available for auto-deployed
applications.

Regards,

Tobias
Signature

<http://www.schierge.de/tobias/

Andy Fish - 17 Nov 2003 18:50 GMT
note that there is a hotfix available to fix a bug with reloading on tomcat
4.1.27

I'm not sure if this same bug is the cause of the OP's problem though

> > There is one thing I do not understand:
> > When I update the JSP page, I see the result
[quoted text clipped - 11 lines]
>
> Tobias
Marcus Beyer - 08 Dec 2003 14:51 GMT
> note that there is a hotfix available to fix a bug with reloading on tomcat
> 4.1.27

Ah, fine! <http://forums.cookienest.com/viewtopic.php?t=7842>

> You can either reload the webapp by clicking the reload link on the
> manager page or declare the context in the server.xml and mark it as
> reloadable.

Which one is better?

Hmm, it seems that I don't have such a file (server.xml)
in my JBoss (3.2.2) installation, where Tomcat is embeded.

thanx!
Marcus


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.