tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: "Gracefull" restart of tomcat
Date Tue, 01 Jun 2010 13:24:57 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petr,

On 6/1/2010 6:59 AM, Petr Hracek wrote:
> my context file foo.xml is:
> <?xml version='1.0' encoding='utf-8'?>
> <Context path="/foo" docBase="/opt/foo/servlet" allowLinking="true">

The "path" attribute is illegal in all versions of Tomcat when using an
external XML file: remove it.

Where does "foo.xml" reside on the filesystem? More specifically, into
what <Host> is it deployed?

>     <Engine name="Catalina" defaultHost="localhost">
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>              resourceName="UserDatabase"/>
>       <Host name="localhost" appBase="webapps"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
>      </Host>

With autoDeploy="true", you ought to just be able to update your .class
or .jar files and Tomcat will automatically restart the webapp. Note
that updating static content will not cause Tomcat to reload, and there
have been reports of some people having problems with cached copies of
files. It's always best to trigger an application restart one way or
another.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwFCikACgkQ9CaO5/Lv0PDTewCgs6RXpW/DT9MzYfUykr5qS22p
oRsAoJmNA7djnyJ6WkjFYgnnk35OrIdM
=IQSB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message