Let me try to answer your question

jabber (jabber)
<本文发表于: 相约加拿大:枫下论坛 www.rolia.net/f >
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!
<本文发表于: 相约加拿大:枫下论坛 www.rolia.net/f >

2000-10-31 -04:00

回到话题: A servlet question

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论