You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hawkins, Mark (ASPIRE)" <ma...@hmrcaspire.com> on 2006/11/09 14:47:36 UTC
Tomcat 5.5 Embedded + reloading and unpacking WAR files.
I'm using TC 5.5 Embedded and have been trying to understand if / how it is possible to deploy a WAR file - by dropping the file in to the container as you do with standalone, producing the same auto-extract - auto reload behaviour. I cannot find help in the documentation for this. Using the standalone server.xml configuration as a reference:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
should equate to:
host = embedded.createHost("localhost",getContainerPath()+"/webapps");
host.setAutoDeploy(true);
host.setXmlValidation(true);
// However, this method or similar does not exist ..
host.setUnpackWARS(true);
Am I missing the point here .. do I have to provide my own auto-unpack / reload mechanism? In Tomcat 4 and previous we had:
Deployer deploy = (Deployer) host;
deploy.install(contextPath,warFile);
but that is no longer provided in TC5.5 ... so what is the preferred approach?? Where does the auto-deploy / auto extract come from in Standalone versions?
.. Mark
===========================================================
Our e-mail domain has now changed from iraspire.com to hmrcaspire.com. Please update your address books.
===========================================================
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org