Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 56160 invoked from network); 22 Nov 2005 16:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Nov 2005 16:46:24 -0000 Received: (qmail 99576 invoked by uid 500); 22 Nov 2005 16:46:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 99494 invoked by uid 500); 22 Nov 2005 16:46:14 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 99461 invoked by uid 99); 22 Nov 2005 16:46:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 08:46:13 -0800 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.86.89.66] (HELO smtpauth06.mail.atl.earthlink.net) (209.86.89.66) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 08:47:42 -0800 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=M1pR6W16ioT3okI2LpZISYmrLb61Lk9zOTBmw9ymcGwK11DscJuhe7mDMBASFeO1; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [129.33.49.251] (helo=[9.37.214.129]) by smtpauth06.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EebHA-0005CX-Nf for dev@geronimo.apache.org; Tue, 22 Nov 2005 11:45:48 -0500 Message-ID: <43834B39.1000008@earthlink.net> Date: Tue, 22 Nov 2005 11:45:45 -0500 From: Joe Bohn User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Geronimo Dev Subject: Server Shutdown & Reboot issues Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: c408501814fc19611aa676d7e74259b7b3291a7d08dfec7939cd6f8e655a330c4be4c55d55a85472350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 129.33.49.251 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The console currently has a task to shutdown or reboot the server. Shutdown isn't a problem ... it just invokes kernel.shutdown() followed by a system exit. (Although the visual results to the user are slightly different depending upon the configuration most likely because of differences of synchronous/asynchronous variations during shutdown). However, for reboot it attempts to spawn a new thread and from that thread invoke kernel.shutdown() followed by an invocation of Daemon.main with no parameters. And this doesn't work very well at all. Should we invest the time now to resolve these problems? I think the resolution of these problems could get a bit sticky and would continue to be fragile if we don't integrate capabilities directly into the kernel for restart. It also makes me wonder if we should also provide a restart from the command line if we support it in the console. The failures from the reboot vary according to the configuration. I've only tried this with the default configuration, jetty only, and tomcat only ... but this is the results: Jetty only - Gets an error while starting G-Bean "geronimo:type=NetworkService,name=EJB" and indicates it is in the failed state. This was Caused by: java.net.BindException: Address already in use: JVM_Bind. In the error log it looks like the port was 4201. However, the things (at least for the console) appear to work normally after the restart. Tomcat only - Doesn't get any errors, but results in the JVM terminating without an attempt at restart. I haven't tracked down yet who is doing the system exit but there isn't much in the log to indicate a failure. Both Jetty & Tomcat (Jetty on 8080, Tomcat on 8090) - Gets a whole bunch of error on restart - starting with the same error as Jetty only above plus numerous errors from Tomcat in BaseModelMBean, Registry, Connector, JkMain. However, once again the console appears to function appropriately (of course it is running on Jetty). Joe -- Joe Bohn joe.bohn@earthlink.net "He is no fool who gives what he cannot keep, to gain what he cannot lose." -- Jim Elliot