• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

newbie to Tomcat ??

 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have installed Tomcat ver 4.0.1
it is running perfectly...
Now the prob is this that ... I changed there example HelloWorldExample.java file, compiled it and again run that example. But it is executing the old servlet file. I read in book(Core java) that Tomcat doesn't reload servlet automatically so I restarted the server, even my m/c, but ....
Now right now I rename HelloWorldExample.class file to some other name ... but Tomcat does not showing me "File not found error"
So I think problem is with reloading.
I tried to go through documentation of Tomcat ... but still could not found any details about reloading of servlet.
How do we reload servlet in Tomcat?
TIA
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do we reload servlet in Tomcat?

Its possible that your browser is loading it from the cache itself and NOT talking to your server at all.
Try reload/refersh button on your browser by holding down the < shift > key on your keyboard. Most times (not guarenteed) this will force the browser to talk to the server.
The other option is to quit all browser windows and restart it.
Good luck.
- satya
[ February 20, 2002: Message edited by: Madhav Lakkapragada ]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I said it first...claiming all the kudos....
11:34 verses 11:35......
Axel:
What happened? Why did you delete your post?
Anyways, I am going to bed so the forum is all yours till the morning.....(GMT - 5.5 hrs)
- satya
[ February 20, 2002: Message edited by: Madhav Lakkapragada ]
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
west_of_atlantic_night_Satya caught east_of_atlantic_early_morning axel.
Deleted because I was not 100% sure. You can delete the browsercache in IE by extras/Internetoptions/first tab general/delete history (or something the like: have not-english IE).
Another way to do it programmatically (there are often situations, cause you dont want to cache dynamic pages):
at the beginning of the generated page!!!
response.setHeader("pragma","no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires",0);
Axel
 
R K Singh
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you guys ..
But I already tried these options of clearing IE cache/history..(sorry, I forgot to mention)
AW I got that solution ...
There are two folders creatde by Tomcat (or I have installed 2 times..)
1. C:\jakarta-tomcat-4.0.1\
2. C:\Program Files\Apache Tomcat 4.0\
I was making changes in 1. though 2. (Now I know) is Catalina_Home.
These two have almost same directory structure..
AW sorry for bothreing you guys... AND THANKS a lot for information and helping me out...
[ February 21, 2002: Message edited by: Ravish Kumar ]
Now I have deleted Jakatra one ... so now using apache ...
[ February 21, 2002: Message edited by: Ravish Kumar ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic