Return-Path: Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: (qmail 4120 invoked from network); 1 Dec 2010 09:51:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Dec 2010 09:51:23 -0000 Received: (qmail 59172 invoked by uid 500); 1 Dec 2010 09:51:23 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 58759 invoked by uid 500); 1 Dec 2010 09:51:22 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 58751 invoked by uid 99); 1 Dec 2010 09:51:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 09:51:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bengt.rodehav@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 09:51:15 +0000 Received: by iwn7 with SMTP id 7so861632iwn.21 for ; Wed, 01 Dec 2010 01:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=Jj45/oExheutJfhiHjEqtskvgNXElZcnR2jCe13eYpY=; b=bS/FO3jEH611b6hjJMClbMs/Gno/EMCLZJdPS9/Z71IqRSkOihqKTlHLgQy4ooB/sl BgY+JBcez+gUmIknJEpHvJrlU4yh9/1PuRtcW9ldX8NNWfSlIyZBE1s/xBzlbSFp+n02 /3KIOYkV6/YSEdJeqK7GygTtQDeJ3G44MV1EY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=PMERojU0tdN+Zjq8HjEH8YwYqqIGy3FtlEVdt5gNs34MNNu166kp4TWmIw8t2uOi0f LFejeeo2PXw8aEvEY1zA544giqaO3mjygWCwsU6isE5orZ0TCgeBs3gR2hE0sEFbk2ib oZohs1nRI/AklmUPbMlUwP7cDHt11DnMfZDVo= MIME-Version: 1.0 Received: by 10.231.17.136 with SMTP id s8mr8735883iba.198.1291197053307; Wed, 01 Dec 2010 01:50:53 -0800 (PST) Sender: bengt.rodehav@gmail.com Received: by 10.231.147.136 with HTTP; Wed, 1 Dec 2010 01:50:53 -0800 (PST) In-Reply-To: <4CF612B9.7040302@nanthrax.net> References: <4CF612B9.7040302@nanthrax.net> Date: Wed, 1 Dec 2010 10:50:53 +0100 X-Google-Sender-Auth: Y62T_Ey8Eu28EiFuQMSEEkdE9Mc Message-ID: Subject: Re: Multiple instances of Karaf on same host From: Bengt Rodehav To: user@karaf.apache.org, jb@nanthrax.net Content-Type: multipart/alternative; boundary=0022152d7e1bb289e90496563d67 X-Virus-Checked: Checked by ClamAV on apache.org --0022152d7e1bb289e90496563d67 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for your reply Jean-Baptiste, I did think about "admin:create test" but I wasn't sure what ports it will handle. Also, a specific installation (like ours) have a lot of bundles tha= t are not part of Karaf that needs to be taken care of. That's why I wanted t= o be specific about what ports we use in production and test respectively. Do you know why Jetty seems to configure port 8080 although I only explicitly configure port 8181 (or 8180 in test)? I can't find where this port is configured. /Bengt 2010/12/1 Jean-Baptiste Onofr=C3=A9 > Hi Bengt, > > first, you can use the admin feature of Karaf. > > To create a new Karaf instance, simply make: > > admin:create test > > It will create a new instance and manage the port number by itself. > You can view the instances list (and the current state) using: > > admin:list > > Anyway, the files that you mentionned look good. > > Regards > JB > > > On 12/01/2010 09:57 AM, Bengt Rodehav wrote: > >> I'm investigating whether we can install a test version of Karaf >> side-by-side (on the same host) as our production installation. For >> different reasons this would be very useful for us. >> >> One of the problems is to make sure that the two installations don't use >> the same ports. This is what I've found out this far. I list both the >> production and the test ports that I have chosen: >> >> *etc/org.apache.karaf.management.cfg* >> - rmiRegistryPort=3D1099 (prod), 1100 (test) >> >> *etc/org.ops4j.pax.web.cfg* >> - org.osgi.service.http.port=3D8181 (prod), 8180 (test) >> - org.osgi.service.http.port.secure=3D8443 (prod), 8444 (test) >> >> *etc/org.apache.karaf.shell.cfg* >> - sshPort=3D 8101 (prod), 8102 (test) >> >> Are the above all the ports I need to change in my test installation? I >> realize of course that this is not only a Karaf issue depending on what >> bundles I install but I'm interested to know whether I've missed >> anything that=E6=84=80 part of Karaf that I need to reconfigure. >> >> >> I also seem to get a Jetty instance using the port 8080 although I do >> not configure that somewhere and I don't think it's really used for >> anything. I get the following in my log: >> >> 2010-12-01 09:25:17,295 | DEBUG | Thread-8 | >> ServerControllerImpl | ty.internal.ServerControllerImpl >> 74 | Configuring server >> [ServerControllerImpl{state=3DUNCONFIGURED}] -> >> [ConfigurationImpl{http enabled=3Dtrue,http port=3D8080,http secure >> enabled=3Dfalse,http secure port=3D8443,ssl keystore=3DC:\Documents a= nd >> Settings\berodeha\.keystore,ssl keystoreType=3Dnull,session >> timeout=3Dnull,session url=3Dnull,session cookie=3Dnull,worker >> name=3Dnull,listening addresses=3D[Ljava.lang.String;@c9caf3}] >> >> >> If possible, I would like not to use that port at all or at least have >> the possibility to reconfigure it on my test installation. >> >> /Bengt >> >> --0022152d7e1bb289e90496563d67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for your reply Jean-Baptiste,

I did think about &= quot;admin:create test" but I wasn't sure what ports it will handl= e. Also, a specific installation (like ours) have a lot of bundles that are= not part of Karaf that needs to be taken care of. That's why I wanted = to be specific about what ports we use in production and test respectively.=

Do you know why Jetty seems to configure port 8080 alth= ough I only explicitly configure port 8181 (or 8180 in test)? I can't f= ind where this port is configured.

/Bengt

2010/12/1 Jean-Baptiste Onofr=C3=A9 <jb@nanthrax.net>=
Hi Bengt,

first, you can use the admin feature of Karaf.

To create a new Karaf instance, simply make:

admin:create test

It will create a new instance and manage the port number by itself.
You can view the instances list (and the current state) using:

admin:list

Anyway, the files that you mentionned look good.

Regards
JB


On 12/01/2010 09:57 AM, Bengt Rodehav wrote:
I'm investigating whether we can install a test version of Karaf
side-by-side (on the same host) as our production installation. For
different reasons this would be very useful for us.

One of the problems is to make sure that the two installations don't us= e
the same ports. This is what I've found out this far. I list both the production and the test ports that I have chosen:

*etc/org.apache.karaf.management.cfg*
- rmiRegistryPort=3D1099 (prod), 1100 (test)

*etc/org.ops4j.pax.web.cfg*
- org.osgi.service.http.port=3D8181 (prod), 8180 (test)
- org.osgi.service.http.port.secure=3D8443 (prod), 8444 (test)

*etc/org.apache.karaf.shell.cfg*
- sshPort=3D 8101 (prod), 8102 (test)

Are the above all the ports I need to change in my test installation? I
realize of course that this is not only a Karaf issue depending on what
bundles I install but I'm interested to know whether I've missed
anything that=E6=84=80 part of Karaf that I need to reconfigure.


I also seem to get a Jetty instance using the port 8080 although I do
not configure that somewhere and I don't think it's really used for=
anything. I get the following in my log:

=C2=A0 =C2=A02010-12-01 09:25:17,295 | DEBUG | Thread-8 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |
=C2=A0 =C2=A0ServerControllerImpl =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 | ty.internal.ServerControllerImpl
=C2=A0 =C2=A0 =C2=A0 74 | Configuring server
=C2=A0 =C2=A0[ServerControllerImpl{state=3DUNCONFIGURED}] ->
=C2=A0 =C2=A0[ConfigurationImpl{http enabled=3Dtrue,http port=3D8080,http = secure
=C2=A0 =C2=A0enabled=3Dfalse,http secure port=3D8443,ssl keystore=3DC:\Doc= uments and
=C2=A0 =C2=A0Settings\berodeha\.keystore,ssl keystoreType=3Dnull,session =C2=A0 =C2=A0timeout=3Dnull,session url=3Dnull,session cookie=3Dnull,worke= r
=C2=A0 =C2=A0name=3Dnull,listening addresses=3D[Ljava.lang.String;@c9caf3}= ]


If possible, I would like not to use that port at all or at least have
the possibility to reconfigure it on my test installation.

/Bengt


--0022152d7e1bb289e90496563d67--