I'm using Linux (Ubuntu 6). I've never used Tomcat before, so this is my first attempt at deploying a servlet. I got it up and running fairly smoothly, and deployed an example "HelloWorld" servlet. However, I noticed that when I modify the servlet class, and then recompile it, the changes I made do not actually take effect when I activate the servlet through a browser. So, I figured I need to restart Tomcat. (This is a bit annoying - do you really need to restart Tomcat everytime you make a modification to a servlet class?)
So, there is a daemon launcher script at /etc/init.d/tomcat5. However, I run into this odd problem where if I stop or restart Tomcat, I can't start it again. I type "tomcat5 start", and it says that Tomcat is started, but it doesn't actually start - (i.e. no PID is generated), and when I type "tomcat5 status" it tells me that tomcat is not running. So I need to actually reboot my machine in order to successfully start tomcat again.
Unfortunately, I can't find this problem documented anywhere. Does anyone have any idea why this might be happening? Is there another way I'm supposed to be starting/stopping tomcat5?