EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EZB-286
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Florent BENOIT
Reporter: John. H. Smith
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
EasyBeans

blocking shutdown on Tomcat 6

Created: 18/Jul/08 01:34 PM   Updated: 24/Jul/08 06:53 PM
Component/s: Integration/Tomcat
Affects Version/s: EasyBeans 1.0, EasyBeans 1.0.1
Fix Version/s: EasyBeans 1.1.0 M1, EasyBeans 1.0.2

File Attachments: 1. Text File tomcat-ezb-shutdown-bug.log (3 kb)
2. Text File tomcat-ezb-shutdown-threaddump.log (16 kb)

Environment:
Tomcat 6.0.16, Java SE 1.6.0.6
System: Debian GNU/Linux "etch", kernel 2.6.24.6 on 32-bits x86 dual-core


 Description  « Hide
Deployed the freshly downloaded EasyBeans war file in a near-stock Tomcat distribution (only modified a few logging configuration).
Start the Tomcat with the war inside... some deployment messages are logged, no error message, all seems fine.
Try to shutdown the Tomcat: some shutdown messages are logged from easybeans and tomcat, without apparent error, but...
the shutdown doesn't end, and I have to manually kill the java server process.
I repeated the procedure several times to ensure it wasn't a first-launch problem, and it is not.
I first saw this on version 1.0.0, then tried the new 1.0.1 and it shows the same behaviour.

I am considering EasyBeans as a candidate container for development and production of J2EE 5 applications, but this is cleary a show-stopper for production systems. I only rank it "critical" because it could be used for development anyway, if this issue is eventually solved.

 All   Comments   Change History   Related Builds   Subversion Commits      Sort Order:
Florent BENOIT - 18/Jul/08 02:03 PM
  Hi, Could you provide a dump of the threads that are still running in your configuration ?

Maybe this is linked to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4457683
but you've a JDK 6

John. H. Smith - 19/Jul/08 02:02 PM
I can't tell about the maybe-linked bug... however I've only got _JRE_ 6 not JDK, but I think I'm allowed to do this with tomcat 5 and later.

I don't know what the "thread dump" thing means... Can you tell how to get it ?

I've checked the OS process list and listening ports:
- some threads remain,
- and there's a listening TCP port (but a different one at each launch).
(Attaching the log file)

John. H. Smith - 19/Jul/08 02:03 PM
This is what I get after a simple startup-shutdown cycle.

Florent BENOIT - 19/Jul/08 03:49 PM
   Hi,

In order to get a thread dump, send a "kill -3" command on the process id of the java process.
This will show you a full dump of the JVM

Florent

John. H. Smith - 19/Jul/08 04:52 PM
Ok here it is.

Florent BENOIT - 23/Jul/08 09:28 AM
I'm now able to reproduce the problem. I will keep you informed

Florent BENOIT - 24/Jul/08 05:49 PM

John. H. Smith - 24/Jul/08 06:53 PM
Yes, the snapshot works fine now. Super!
Now I've got to find configuration documentation...


Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org