> On 19 Jan 2015, at 20:16, Christopher Schultz <ch...@christopherschultz.net> 
> wrote:
> 
> Signed PGP part
> 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

Hello,

Yes, absolutely.
Also, I just verified: the name of my file is exactly “ROOT.war”, with this 
case.

Best,

Théo

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to