Tuesday, 15 March 2011

Where does tomcat6 hide its cache? -



Where does tomcat6 hide its cache? -

i have servlet abc.jar re-create $tomcat/webapps, , works fine. next, shutdown tomcat, delete folder abc , war file. when restart tomcat, comes error messages "cannot find folder .../abc", filenotfoundexception , on.

my question: how know should looking "abc"? deleted named directory "temp" , "work" folders, still remembers it. how clean artifacts? tomcat 6, java-1-6-37. tia.

if you've shut downwards tomcat, removed $catalina_home/temp/, $catalina_home/webapps/abc/ , $catalina_home/work/ folders, , removed $catalina_home/webapps/abc.war file; offending remaining reference may $catalina_home/conf/catalina/localhost/abc.xml (copied tomcat web application when deployed it).

this not "cache" such, may cause tomcat folders no longer exist.

there more detailed info @ http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#automatic%20application%20deployment. example:

any web application archive file within hosts's appbase directory not have corresponding context xml descriptor (with ".xml" extension rather ".war" extension) in $catalina_base/conf/[engine_name]/[host_name] scanned see if contains context xml descriptor (located @ /meta-inf/context.xml) , if 1 found descriptor copied $catalina_base/conf/[engine_name]/[host_name] directory , renamed.

tomcat6

No comments:

Post a Comment