-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Théo,

On 1/19/15 6:11 AM, Théo Chamley wrote:
> On 2015-01-16 19:33, Christopher Schultz wrote: Théo,
> 
> On 1/13/15 1:38 PM, Théo Chamley wrote:
>>>> I have setup a Tomcat cluster and I am now trying to get the 
>>>> FarmWarDeployer to work. However, it seems that the Deployer
>>>> never checks my watchDir and therefore never finds my new
>>>> wars to deploy.
>>>> 
>>>> When starting Tomcat, the logs indicate that the Deployer is 
>>>> started: 13-Jan-2015 19:21:43.942 INFO
>>>> [Catalina-startStop-1] 
>>>> org.apache.catalina.ha.deploy.FarmWarDeployer.start Cluster 
>>>> deployment is watching [/my/watch/dir/] for changes.
>>>> 13-Jan-2015 19:21:43.942 INFO [Catalina-startStop-1] 
>>>> org.apache.catalina.ha.deploy.FarmWarDeployer.start Cluster 
>>>> FarmWarDeployer started.
>>>> 
>>>> But nothing more, even for extended periods of time after
>>>> putting my ROOT.war inside my watchDir.
>>>> 
>>>> I checked the source code 
>>>> (https://github.com/apache/tomcat80/blob/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java),
>>>>
>>>>
>>>>
>
>>>> 
and it seems that the check must be done once every two
>>>> "backgroundProcess" calls, but I don't understand when this 
>>>> function is supposed to be called or if there is a way to
>>>> force the check.
> 
> Can you enable DEBUG logging for 
> org.apache.catalina.ha.deploy.WarWatcher?
> 
> The backgroundProcess method will be called by the background
> thread that is launched for the server. It's not something you will
> generally have to manage yourself.
> 
> -chris
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> Hello,
> 
> Thank you for your answer. The logs now show that the listen dir is
> checked, but nothing more, even if I repeatedly "touch" the
> ROOT.war file. And from the source code, I won't have more
> information from the logs… Could the mount options of the file
> system influence the result? My partition is mounted with 
> rw,nosuid,nodev,noexec,noatime,nodiratime,data=ordered.
> 
> 19-Jan-2015 12:04:27.956 FINE 
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
> org.apache.catalina.ha.deploy.WarWatcher.check check cluster wars
> at /my/watch/dir 19-Jan-2015 12:04:47.962 FINE 
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
> org.apache.catalina.ha.deploy.WarWatcher.check check cluster wars
> at /my/watch/dir 19-Jan-2015 12:05:07.967 FINE 
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
> org.apache.catalina.ha.deploy.WarWatcher.check check cluster wars
> at /my/watch/dir

It looks like WarWatcher looks for WAR files that end in ".war"
specifically: it must be all lower-case.

Would you be willing to build your own Tomcat from source if I send
you a source patch? I could add some logging and you can get more
information.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUvVgeAAoJEBzwKT+lPKRYn9YQAKk3yBdD0QE2I5R1OB/sl/5+
qb93Kj2mINoYn26HRF6mNpu/C02rcvX1A+pedcnz4FYhtaXhd5bPOI69GP8LBL6p
akswioN3ziw++bWL8aCALK3TrfXh3Iylnikm7HH7YJWLAe6lEemafGP1Dfj3UrIO
pmMgg+dWhFsknVTAL8FQJ3rrzFzRT4MJtndU2pIj0CsHAzVKRyr+4jEeQJPz0pnv
Qb6sziVr83SuIL73lPMPeEu+lKznUEuJPVi1Svlhr7xnJ4Nbka5EFjD4aS7SRW7/
ipppRwMdh9jGV1I8dQG6GUH5oT488j+BWsJQ2WJ7sa+rpZg/kRUor41FYpB+YD1T
kdIZ/xoBV5labbiTGYBpakgIcLyrAiZzvzlpUZOXWCPlDZmiwSzZNTBksHvTkALO
qxjdxxvt9FvqneEoWKpI3qc7vSMk9+6ZNBMvGP3Jfj9YWn4NxesocKGiWirVXtbb
xfoTL/OC4gKPjgLpDdHog8n3WkBJuPcaV9dwoFj18vM3evyH/n2J8b+ujMHLvwq4
Ks7NOyUCpQTGhz8+Hbn8OK/8zVQDj1W61LO/K0zV8QOqg0rla4mEGtoPkOE1DuMc
dI5Q7b5fbiCdH4ORb7vmdY1LwygfMy2fD4pSmK6hcLatwKOETWI8sSBQmAdMjxWv
1R2OrJsb03ezEiDYVedW
=nhqn
-----END PGP SIGNATURE-----

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

Reply via email to