＜本文发表于: 相约加拿大:枫下论坛 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 ＞