Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 84551 invoked from network); 7 Sep 2009 11:22:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Sep 2009 11:22:31 -0000 Received: (qmail 62475 invoked by uid 500); 7 Sep 2009 11:22:31 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 62396 invoked by uid 500); 7 Sep 2009 11:22:31 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 62386 invoked by uid 99); 7 Sep 2009 11:22:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 11:22:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnodet@gmail.com designates 209.85.220.209 as permitted sender) Received: from [209.85.220.209] (HELO mail-fx0-f209.google.com) (209.85.220.209) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 11:22:19 +0000 Received: by fxm5 with SMTP id 5so1985802fxm.22 for ; Mon, 07 Sep 2009 04:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=23klTJE0y4+4CUvYCeWml2m7ONujRUzMPAlx05Oj0+M=; b=pcYCH/lJoxLCMQs9BZj/IEHCOu8krURNVsW9FRT7YAbjxccu/Ghh4g0OJ9aMIimTF3 vNlcztc/hUqdVjdx9d2AK9p2AYUiINkJdPOYqF7v+y4mCg2U/n/QWDTfI2KuNCNzVAd8 jrXMqojpJMYK0dcw5TRK03sZNs0W/fKqC+D8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XSlAO+sO4Rkx46/f6IcN7eZ6dit179orBVnVOxPM9rbWghERJ+B4uIfiMMA8UNLo2O w0LoV9oXUg9P6FH31EKC5X3kGjtsUf7cCoCB1vZOAmeFeXhF5xM/3E+nCZrj7YeQQNiZ rvAPCOwIkHvCi8f2eVw1Z+WYlfMRm73OB4k4A= MIME-Version: 1.0 Received: by 10.223.144.70 with SMTP id y6mr537530fau.12.1252322519513; Mon, 07 Sep 2009 04:21:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 7 Sep 2009 13:21:59 +0200 Message-ID: Subject: Re: [Karaf] admin:create'd instance launched from the command line From: Guillaume Nodet To: dev@felix.apache.org Content-Type: multipart/alternative; boundary=0022158df8f7eb7c270472fb0e50 X-Virus-Checked: Checked by ClamAV on apache.org --0022158df8f7eb7c270472fb0e50 Content-Type: text/plain; charset=ISO-8859-1 Right, currently, the sshd port for child instances is managed by the commands, but RMI and HTTP or any other port aren't. I think it can be done through the command line by connecting to the child instance and updating the configurations for the config admin, but it's really tedious and a better way need to be found. I guess we'd need a generic mechanism to handle port conflicts, not sure what's the best way yet. Thoughts welcomed ! On Mon, Sep 7, 2009 at 12:33, Eoghan Glynn wrote: > Hi Folks, > > If I launch an admin:create'd instance via admin:start from the master > karaf > instance, all is hunky-dorey. > > However, if instead the child instance is run from the command line via the > generated instances/ directory tree, then I'm see a port clash on the > JMX RMI connector[1] if the master instance is still runing. > > So I guess the question is, should we automatically override the jmxrmi > port > for the admin:create'd instance? (presumably via the serviceUrl property > picked up by OSGI-INF/blueprint/karaf-management.xml) > > Or should the JMX RMI connector be disabled for the child instance? (as the > management tooling may be expecting port 1099 or nothing) > > We may have a similar issue with the default 8181 port for the HTTP > service. > > Cheers, > Eoghan > > > [1] > Exception in thread "JMX Connector Thread > [service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi]" > java.lang.RuntimeException: Could not start JMX connector server > at > > org.apache.felix.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:103) > Caused by: java.io.IOException: Cannot bind to URL > [rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException: > jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi] > at > > javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804) > at > > javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417) > at > > org.apache.felix.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:101) > Caused by: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception > is > java.rmi.AlreadyBoundException: jmxrmi] > at > com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122) > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --0022158df8f7eb7c270472fb0e50--