[Bug 827922] Re: On Tomcat6 shutdown web apps do not get shutdown

mdxyz 827922 at bugs.launchpad.net
Wed Aug 17 12:36:51 UTC 2011


Changed headline and description.

** Description changed:

- When shutting down tomcat6 by "/etc/init.d/tomcat6 stop" the contained web apps within tomcat do not get shut down. This is visible as the initialized Servlets within the web apps never have their destroy() method being called. This way a web app cannot shut down gracefully and save all the current data. 
- For examle when re- or undeploying a web app, it is shut down gracefully and the Servelet's destroy() method is being called.
+ When shutting down tomcat6 by "/etc/init.d/tomcat6 stop" the contained
+ web apps within tomcat do get shut down, but are not able to log
+ anything during that process.
  
- I remember the shutdown worked fine for tomcat5.5 on ubuntu 8.04.
- 
+ I remember logging during shutdown worked fine for tomcat5.5 on ubuntu
+ 8.04.
  
  lsb_release -rd
  Description:    Ubuntu 10.04.3 LTS
  Release:        10.04
  
- 
  apt-cache policy tomcat6
  tomcat6:
-   Installed: 6.0.24-2ubuntu1.7
-   Candidate: 6.0.24-2ubuntu1.7
-   Version table:
-  *** 6.0.24-2ubuntu1.7 0
-         500 http://de.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
-         500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
-         100 /var/lib/dpkg/status
-      6.0.24-2ubuntu1 0
-         500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
+   Installed: 6.0.24-2ubuntu1.7
+   Candidate: 6.0.24-2ubuntu1.7
+   Version table:
+  *** 6.0.24-2ubuntu1.7 0
+         500 http://de.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
+         500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
+         100 /var/lib/dpkg/status
+      6.0.24-2ubuntu1 0
+         500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: tomcat6 6.0.24-2ubuntu1.7
  ProcVersionSignature: Ubuntu 2.6.32-33.71-generic 2.6.32.41+drm33.18
  Uname: Linux 2.6.32-33-generic x86_64
  Architecture: amd64
  Date: Wed Aug 17 12:03:54 2011
  PackageArchitecture: all
  ProcEnviron:
-  PATH=(custom, no user)
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  PATH=(custom, no user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  SourcePackage: tomcat6

** Summary changed:

- On Tomcat6 shutdown web apps do not get shutdown
+ On Tomcat6 shutdown web apps are not able to log anything

** Description changed:

  When shutting down tomcat6 by "/etc/init.d/tomcat6 stop" the contained
  web apps within tomcat do get shut down, but are not able to log
- anything during that process.
+ anything during that process (e.g. in their Servlet's destroy()
+ methods).
  
  I remember logging during shutdown worked fine for tomcat5.5 on ubuntu
  8.04.
  
  lsb_release -rd
  Description:    Ubuntu 10.04.3 LTS
  Release:        10.04
  
  apt-cache policy tomcat6
  tomcat6:
    Installed: 6.0.24-2ubuntu1.7
    Candidate: 6.0.24-2ubuntu1.7
    Version table:
   *** 6.0.24-2ubuntu1.7 0
          500 http://de.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
          100 /var/lib/dpkg/status
       6.0.24-2ubuntu1 0
          500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: tomcat6 6.0.24-2ubuntu1.7
  ProcVersionSignature: Ubuntu 2.6.32-33.71-generic 2.6.32.41+drm33.18
  Uname: Linux 2.6.32-33-generic x86_64
  Architecture: amd64
  Date: Wed Aug 17 12:03:54 2011
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: tomcat6

** Description changed:

  When shutting down tomcat6 by "/etc/init.d/tomcat6 stop" the contained
  web apps within tomcat do get shut down, but are not able to log
  anything during that process (e.g. in their Servlet's destroy()
  methods).
+ 
+ The mentioned destroy method of a Servlet also gets called during an un- or redeploy and in that case 
+ everything is logged fine.
  
  I remember logging during shutdown worked fine for tomcat5.5 on ubuntu
  8.04.
  
  lsb_release -rd
  Description:    Ubuntu 10.04.3 LTS
  Release:        10.04
  
  apt-cache policy tomcat6
  tomcat6:
    Installed: 6.0.24-2ubuntu1.7
    Candidate: 6.0.24-2ubuntu1.7
    Version table:
   *** 6.0.24-2ubuntu1.7 0
          500 http://de.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
          100 /var/lib/dpkg/status
       6.0.24-2ubuntu1 0
          500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: tomcat6 6.0.24-2ubuntu1.7
  ProcVersionSignature: Ubuntu 2.6.32-33.71-generic 2.6.32.41+drm33.18
  Uname: Linux 2.6.32-33-generic x86_64
  Architecture: amd64
  Date: Wed Aug 17 12:03:54 2011
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: tomcat6

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in Ubuntu.
https://bugs.launchpad.net/bugs/827922

Title:
  On Tomcat6 shutdown web apps are not able to log anything

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/827922/+subscriptions



More information about the Ubuntu-server-bugs mailing list