Skip to main content

Posts

Showing posts with the label Servlet

TCWiki: How to make Tomcat know updated servlet

Hi all, I recently noticed that every time I make a single change to a servlet, I have to stop Tomcat and start it again so that the change is applied. I tried clearing the browser's cache but it didn't work. Well, I have just had Tomcat running with Apache for a few weeks but I don't remember Tomcat behaved like this before. Does anyone have any idea what is going on? I appreciate any help or suggestion. Thanks  Answer: Set reloadable to be true in context.xml "<"Context path="/tcwiki" docBase="tcwiki"    crossContext="true" reloadable="true" debug="1"">"     "<"!-- Default set of monitored resources --">"     "<"WatchedResource">"WEB-INF/web.xml"<"/WatchedResource">" "<"/Context">" or you can reload manually running http://localhost:8080/manager/reload?path=/tcwiki

Servlet: War file

WAR = Web ARchive Sun WAR (file format) , a JAR file used to distribute a collection of files that together constitute a Web application How do we use WAR file on Tomcat - Stop tomcat service - copy war file into webapp folder - Restart tomcat