Let me try to answer your question

jabber (jabber)
Under .../jakarta-tomcat/webapps/, there are several contexts there: 1) examples: 2) admin; 3)Root. You may add your application there. I think you have done that. Reminder:
In tomcat's terms, we call it a context, not an application. Of course, we need to add our
context in server.xml file.

If you want to get rid of your context(or application), you need to do 3 things:
1) delete or remove the directory under
.../jakarta-tomcat/webapps/; 2) delete entry
in server.xml; 3) restart the tomcat. IT IS IMPOSSIBLE to clear the things without restarting tomcat. Tomcat is only a lightweight development tool.

Even in Weblogic and Websphere, one needs to restart the servlet engine to
get rid of those unwanted Java servlets and jsp files. Actually, you are lucky because you use Tomcat... It takes you only a few minutes to restart tomcat. I am using Websphere now. It always takes me 10-30 minutes as we update a servlet.

Last but not least, the reason is: Load once, run forever!
2000-10-31 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: A servlet question

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论