Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 63018 invoked from network); 18 Dec 2008 01:49:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2008 01:49:10 -0000 Received: (qmail 54789 invoked by uid 500); 18 Dec 2008 01:49:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 54746 invoked by uid 500); 18 Dec 2008 01:49:22 -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 54737 invoked by uid 99); 18 Dec 2008 01:49:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2008 17:49:22 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2008 01:49:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 48526234C431 for ; Wed, 17 Dec 2008 17:48:46 -0800 (PST) Message-ID: <786769223.1229564926282.JavaMail.jira@brutus> Date: Wed, 17 Dec 2008 17:48:46 -0800 (PST) From: "Shawn Jiang (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-4442) Unable to configure IP address for many listening ports In-Reply-To: <1075035861.1228315784612.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657646#action_12657646 ] Shawn Jiang commented on GERONIMO-4442: --------------------------------------- It seems as the server can't be shutdown when the host is localhost/127.0.0.1 or the real IP. I got following error when trying to shutdown the server: {code} Username: system Password: ******* Locating server on port 1099... Could not communicate with the server. The server may not be running or the por t number may be incorrect (Failed to retrieve RMIServer stub: javax.naming.Servi ceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect]) {code} guess it's caused by the limited RMI or JMX address. > Unable to configure IP address for many listening ports > ------------------------------------------------------- > > Key: GERONIMO-4442 > URL: https://issues.apache.org/jira/browse/GERONIMO-4442 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Affects Versions: 2.0.2, 2.1.3 > Reporter: Kevan Miller > Assignee: Kevan Miller > Priority: Critical > Fix For: 2.1.4, 2.2 > > Attachments: G4222_ORBConfigAdapter.patch > > > I tried to configure the listening IP address for our server sockets. I configured all 'host' properties in config-substitution.properties to be '127.0.0.1' and got the following results: > Listening on Ports: > 1050 127.0.0.1 CORBA Naming Service > 1099 127.0.0.1 RMI Naming > 1527 127.0.0.1 Derby Connector > 2001 127.0.0.1 OpenEJB ORB Adapter > 4201 127.0.0.1 OpenEJB Daemon > 6882 127.0.0.1 OpenEJB ORB Adapter > 8009 127.0.0.1 Tomcat Connector AJP AJP > 8080 127.0.0.1 Tomcat Connector HTTP BIO HTTP > 8443 127.0.0.1 Tomcat Connector HTTPS BIO HTTPS > 9999 127.0.0.1 JMX Remoting Connector > 61613 127.0.0.1 ActiveMQ Transport Connector > 61616 127.0.0.1 ActiveMQ Transport Connector > Unfortunately, that's not accurate. netstat reveals the following actual results: > $ netstat -an | grep LISTEN > tcp4 0 0 *.6882 *.* LISTEN > tcp4 0 0 *.2001 *.* LISTEN > tcp4 0 0 *.63519 *.* LISTEN > tcp4 0 0 *.1050 *.* LISTEN > tcp4 0 0 127.0.0.1.4201 *.* LISTEN > tcp4 0 0 127.0.0.1.61613 *.* LISTEN > tcp4 0 0 127.0.0.1.61616 *.* LISTEN > tcp4 0 0 127.0.0.1.1527 *.* LISTEN > tcp4 0 0 127.0.0.1.8443 *.* LISTEN > tcp4 0 0 127.0.0.1.8009 *.* LISTEN > tcp4 0 0 127.0.0.1.8080 *.* LISTEN > tcp4 0 0 *.9999 *.* LISTEN > tcp4 0 0 *.1099 *.* LISTEN > Configuring the host properties to be an actual ip address/hostname is a bit worse (not sure what's going on with ActiveMQ): > Listening on Ports: > 1050 10.0.1.196 CORBA Naming Service > 1099 10.0.1.196 RMI Naming > 1527 10.0.1.196 Derby Connector > 2001 10.0.1.196 OpenEJB ORB Adapter > 4201 10.0.1.196 OpenEJB Daemon > 6882 10.0.1.196 OpenEJB ORB Adapter > 8009 10.0.1.196 Tomcat Connector AJP AJP > 8080 10.0.1.196 Tomcat Connector HTTP BIO HTTP > 8443 10.0.1.196 Tomcat Connector HTTPS BIO HTTPS > 9999 10.0.1.196 JMX Remoting Connector > 61613 0.0.0.0 ActiveMQ Transport Connector > 61616 0.0.0.0 ActiveMQ Transport Connector > Netstat shows: > $ netstat -an | grep LISTEN > tcp6 0 0 fe80::1%lo0.631 *.* LISTEN > tcp4 0 0 *.6882 *.* LISTEN > tcp4 0 0 *.2001 *.* LISTEN > tcp4 0 0 *.63569 *.* LISTEN > tcp4 0 0 *.1050 *.* LISTEN > tcp4 0 0 10.0.1.196.4201 *.* LISTEN > tcp4 0 0 *.61613 *.* LISTEN > tcp4 0 0 *.61616 *.* LISTEN > tcp4 0 0 10.0.1.196.1527 *.* LISTEN > tcp4 0 0 10.0.1.196.8443 *.* LISTEN > tcp4 0 0 10.0.1.196.8009 *.* LISTEN > tcp4 0 0 10.0.1.196.8080 *.* LISTEN > tcp4 0 0 *.9999 *.* LISTEN > tcp4 0 0 *.1099 *.* LISTEN -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.