On 2015-01-16 19:33, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUuVl6AAoJEBzwKT+lPKRYhIoQAJMzLhRpFFU5uERc4ssyxaVY
DE8GPVm2QNW38cqrJevYA6MlOExCAbWZDRnp1sCaMG28mFNTg5aIvz4/R1dKOZ6+
sSYc8TZgnJTDELry0n6TgHfJsaU0iFY4dtajOL9vuOjcqrn0i0uNQaVo+8ziffm6
5/RKk7HmbqX+XMyvTqWeoNXLfcF6t4WN4TQ47GSlyAgcRiyo46aWvwcEBaiWLXp/
dK4WZKzbhhsfm1b6kAg8WGwCIuwW1hEIGTyQPgyR+yxny9imIfsCYdTOmOX744Ll
VE+aaK2naSEqZcgN1D/C/479PJeorRNIgM46vzS8d36Cr6fB/jDUd8oOIGMpY5Rs
NmiB/YJwb7pjrzgRggwy/73EEL5WsyIO4D/RYKa5SZcChSMjqmAR7Z+nQau6nBks
jWC10kVJmUqAkVprzq7+0xnWHvk8BCxH16RTUmET3yDim/3F8/em2hLLpJLHROMd
e9B0mP4rlLeSnB6bbBAmQU9bYuZlqplDJlEpSEPX6L9Xmcdy1jKA8eQ5vgm1AVN6
CTemn/+R+o+p7bWu3TyoSnkr0pK9AWIAr/BIXf7AztnHOU0Cwwsa9dlDP6c922fU
Kb7fNZ1W6jJZcMRgR8otQf+HA9ypAsh+AmYZFgsLeaRUVXMmJcitMbELG3t95gEh
La5UcqT2xHt6zQjRYfRU
=I3ia
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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

Thanks,

Théo


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

Reply via email to