Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Tomcat 4.0 on NT - Does not reload newly compiled servlets

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am running APache Tomcat 4.0 on a WinNT machine. The problem I am facing is that Tomcat does not automatically reload newly compiled servlets. This forces me to shutdown and restart Tomcat everytime I make a change. I have the following line in my server.xml file.
<Context path="Auction" docBase="auction" debug="0" reloadable="true" />
The interesting part is that this reloading feature works absolutely fine on my Win98 box. Please advise me on the matter.
Thanks in advance,
Anoop
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have installed in Tomcat 4.0 on my WIN NT Machine not changed any xml file.
It reflect changes without restarting the server,and message also comes on the server,that a particular file has been changed.
Pls try to check with the simple examples,like System.out.println("...");
 
Ranch Hand
Posts: 2378
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yah Nair, Tomcat does not recognize the changed servlet's new bytecode, we have to explicitely shutdown and restart Tomcat to see the change effected... ...but you can use resim to avoid this restarting which is also a nice servlet engine!
Zoe i m using Tomcat4.0.1 under Windows 2000 Server but i had to always restart my Tomcat when i recompile the source code by modifying a slight and have the change effected. Would u plz confirm me trying again in ur machine....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,
I am facing the same problem Nair faced in Tomcat.That is,
I am using Tomcat4.0 as StandAlone but it is Not reloading my servlets or beans (but does for jsp/html) .I have my web-app context in server.xml like this.
<Context path="/test" docBase="examples" debug="0"
reloadable="true">
Why it is NOT working without RESTARTING the Tomcat.

Ashik,My doubt is..If the Tomcat can NOT reload automatically,why could be the reloadable property given in the web-app context tag ??Could it be it a bug?The problem is I have to use Tomcat only for our client.we can not use resim.
Can anybody help.
with regards
madhu
[This message has been edited by madhu gun (edited December 17, 2001).]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you all sure that your browser is not part of the problem?

If your browser cache settings are too agressive, it might look like Tomcat is the problem.

To be sure, the next time you see this problem, shut down all browser windows, manually delete the browser cache and then restart the browser.

I've never personally had a problem with Tomcat reloading classfiles.
 
madhu gun
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nair,
the problem is with Windows NT. I installed SP5.0 in place of SP4.0.Class Reloading is working fine .
regards
madhu
 
Yes, my master! Here is the tiny ad you asked for:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic