Re: Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Andrew Moore
Hi Chuck,

It seems you are correct about timestamps. I have no idea why but systemd
was interfering with the directory:

andrew@stbernard01:~$ ls -la /usr/local/tomcat7/webapps/
total 8
drwxr-xr-x 2 andrew   andrew 4096 Jul  5 11:23 .
drwxrwxr-x 8 systemd-timesync   1005 4096 Jul  4 13:38 ..

I have no idea what the real purpose of systemd-timesync is. But I've left
it to the Ubuntu experts and opted for their distribution instead and I
don't see the issue re-occurring.

FYI I had used a fairly generic init.d script that I know works on CentOS
linux and older Ubuntu disties. It simply invokes startup.sh and shutdown.sh

Maybe I need to get my head around some systemd concepts

Regards,
Andrew

On Tue, Jul 5, 2016 at 11:48 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Andrew Moore [mailto:andrew.mo...@petcircle.com.au]
> > Subject: Tomcat 7.0.70 War Redeployed every few minutes
>
> > We noticed that we were getting Connection Refused when trying to connect
> > to port 8080 remotely. And then we could see this was being caused by the
> > war redeploying automatically every few minutes.
>
> This can be caused by an inappropriate timestamp on the .war file - one
> that's in the future.  Another possibility is that something is doing a
> touch on .jar or .class files in the expanded directory.  Or maybe the
> timestamps on the files inside the .war are off.
>
> Might want to look at the deployment doc:
>
> http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#Deploying_on_a_running_Tomcat_server
> to see if this is similar to what you see going on.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 

*Andrew Moore*

*Pet Circle*

E: andrew.mo...@petcircle.com.au
A: 15 Maddox Street Alexandria NSW 2015
W: https://www.petcircle.com.au/


-- 



Re: Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Andrew Moore
It seems deleted the war from /webapps unloads the webapp entirely.

I'm going to use tomcat7 from Ubuntu
sudo apt policy tomcat7
tomcat7:
  Installed: 7.0.68-1
  Candidate: 7.0.68-1

I'll continue to monitor and update later.

On Tue, Jul 5, 2016 at 11:27 AM, Andrew Moore  wrote:

> Hi I've set up a new server with Ubuntu 16.04 and Tomcat 7.0.70 from
> Apache.org
>
> We noticed that we were getting Connection Refused when trying to connect
> to port 8080 remotely. And then we could see this was being caused by the
> war redeploying automatically every few minutes.
>
> I've deleted the .war from webapps and will continue to monitor for the
> time being. If it continues, I'll have no choice but to use the Ubuntu
> repositories (I think they have point release 68)
>
>
> Anybody else has seen this? We've being using the 68 point release
> normally with openjdk on Centos 6. This is the first time trying to use the
> latest Ubuntu with openjdk 8 and tomcat7.
>
>
>


-- 

*Andrew Moore*

*Pet Circle*

E: andrew.mo...@petcircle.com.au
A: 15 Maddox Street Alexandria NSW 2015
W: https://www.petcircle.com.au/


-- 



RE: Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Caldarale, Charles R
> From: Andrew Moore [mailto:andrew.mo...@petcircle.com.au] 
> Subject: Tomcat 7.0.70 War Redeployed every few minutes

> We noticed that we were getting Connection Refused when trying to connect
> to port 8080 remotely. And then we could see this was being caused by the
> war redeploying automatically every few minutes.

This can be caused by an inappropriate timestamp on the .war file - one that's 
in the future.  Another possibility is that something is doing a touch on .jar 
or .class files in the expanded directory.  Or maybe the timestamps on the 
files inside the .war are off.

Might want to look at the deployment doc:
http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#Deploying_on_a_running_Tomcat_server
to see if this is similar to what you see going on.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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