aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes newbie to Tomcat ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "newbie to Tomcat ??" Watch "newbie to Tomcat ??" New topic
Author

newbie to Tomcat ??

R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
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


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
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 ]

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
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 ]
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
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

Joined: Oct 15, 2001
Posts: 5371
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie to Tomcat ??