This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I set up my context in <Tomcat root>/conf\Catalina\localhost to point to
Based on the documentation (and a colleague's comments), I thought docBase would be the root of my war. That way when i change class files or html files, they automatically get noticed. However, when I edit HTML files, Tomcat ignores them. I noticed Tomcat created a directory in <Tomcat root>\temp which has a copy of the web app each time I start Tomcat.
I tried adding another flag, but the caching still occurs.
I just tried deleting that directory along with the temp directory. After restarting the server, it created "<tomcat root>\temp\0-jforum". Which Tomcat then reads from instead of the desired directory in my Eclipse workspace.
I think it's pretty clear that the temp directory is storing a copy of what the exploded ear looks like on server startup. The same (caching) problem occurs if I try changing a .sql file. The question is why is there a temp directory with a copy of the exploded ear.