GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Servlet is running after tomcat is stopped. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet is running after tomcat is stopped. " Watch "Servlet is running after tomcat is stopped. " New topic
Author

Servlet is running after tomcat is stopped.

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Dear Friend,

i am new to Servlet. i start running a simple Servlet

W/o running a Tomcat Server.( I am Sure that Tomcat is Stopped ).But,

i got the Result . by giving the path below

http://localhost:8080/examples/servlet/Hello

how can it possible...................


But i can't run a Servlet in a Deployment Servlet..........

help me ................
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Thennam Pandian:
Dear Friend,

i am new to Servlet. i start running a simple Servlet

W/o running a Tomcat Server.( I am Sure that Tomcat is Stopped ).But,

i got the Result . by giving the path below

http://localhost:8080/examples/servlet/Hello

how can it possible...................


But i can't run a Servlet in a Deployment Servlet..........

help me ................


Very less probablity but may be some other web server is running at port 8080...


Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
It might took the page from browser cache.
[ December 29, 2005: Message edited by: Adeel Ansari ]
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
But i can't run a Servlet in a Deployment Servlet..........
What do you mean by this?

Original question's Answer:

It may happen because your page is cached by browser...or otherwise server is not stopped....if you are sure that server is not running then clear history in browser..
for IE click on Tools-->Internet Options-->In General Tab Click on Clear History

Regards
Shrinivas
Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Dear Friends,

Even After Clearing the history also the Servlet can run.

And I Have other one Doubt in this catageory.


when i am using Internet Explorer 6 the Servlet is

Running after the Tomcat is Stopped.


when i am using Mozilla Firefox 6 the Servlet is not

Running after the Tomcat is Stopped. it show the message " The

Connection was Refused "...............


please clear my doubts.............
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
How are you stopping Tomcat?
Exactly how are you sure that Tomcat is stopped?
That may sound like a silly question, but Tomcat can take quite a while to shutdown, especially if you have a recent version. My Tomcat 5 server will occasionally fail to completely shutdown after I run shutdown.bat and I have to kill the process from the Windows Task Manager.
Bill
 
GeeCON Prague 2014
 
subject: Servlet is running after tomcat is stopped.