From dcampbell@example.com Thu Oct 01 05:39:36 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 16409 invoked from network); 1 Oct 2009 05:39:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 05:39:36 -0000 Received: (qmail 18617 invoked by uid 500); 1 Oct 2009 05:39:35 -0000 Delivered-To: dcampbell@example.com Received: (qmail 18556 invoked by uid 500); 1 Oct 2009 05:39:35 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 18546 invoked by uid 99); 1 Oct 2009 05:39:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 05:39:35 +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 dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-pz0-f190.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 05:39:25 +0000 Received: by pzk28 with SMTP id 28so2511557pzk.30 for <dcampbell@example.com>; Wed, 30 Sep 2009 22:39:04 -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=LOX+WWcrBuYGjv9rO8Sfe5B7U1Pj1uz2aPH2VpWw+KM=; b=kRDqZVlSPIl3u5EATJFbQUAic6kxEB6m/gGsgXQ+M5Ma+LuS9GR527LGLtp1t8Vap4 KQNGAwGd2EFA91JuLh8nvuhu8CN4Ug3EPhGLQQemnmjQ6k5jCU6ozQZMVynLP+g3kSur NBL0Za9dqk5HADHhOSCoYv17MZUR5h5t+grtQ= 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=g1iwSt04oodyveZNLWWhN7I4/hOJLa80d85w5NzWz/O+Pdc5sSrkLinBZhDIurhmHV EWYzguUpep/Ea4qnqomfFsA5hVbmy8YrdCvNgrs+PWXYrcmuITd+FSdPv0oB2/2IJsfB 4ZorTeFMXAak4OBgajO6UChpN4iLk/+kAulvo= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id p11mr77571rvi.14.1254375544370; Wed, 30 Sep 2009 22:39:04 -0700 (PDT) In-Reply-To: <7957070.441254270912371.JavaMail.SYSTEM@4Home_LV530> References: <3526831.421254270581981.JavaMail.SYSTEM@4Home_LV530> <7957070.441254270912371.JavaMail.SYSTEM@4Home_LV530> Date: Wed, 30 Sep 2009 22:39:04 -0700 Message-ID: <dcampbell@example.com> Subject: Re: Failing to use remote shell From: Allen Lau <dcampbell@example.com> To: dcampbell@example.com Content-Type: multipart/alternative; boundary=000e0cd10628bcb8d70474d91006 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd10628bcb8d70474d91006 Content-Type: text/plain; charset=UTF-8 Matt, Does your device use dhcp or some other means to set the ip? If you can the ip from an environment variable, then I think you can set the osgi.shell.telnet.ip=${env.variable}. Not sure of the exact syntax though, maybe someone else can help? Allen On Tue, Sep 29, 2009 at 5:35 PM, Matt Tennant <dcampbell@example.com> wrote: > > Hi Allen, > > Thanks, I guess I misunderstood how that property works. Setting the value > at startup fixed the problem. > > Does this mean the only two valid values for this property are either > 83.161.120.155 or the external ip address of the host device? One or the other, > right? If so, is there a better way to specify the "other", in this case? > It's a bit inconvenient to determine the appropriate IP address at startup > time, especially with the limited shell utilities available on our host > device. Alternatively, I could force the remote shell bundle to start up > only after another bundle has programatically set osgi.shell.telnet.ip, but > that is a bit hokey. > > Or am I totally missing something? > > Thanks, > Matt > > > ----- Original Message ----- > From: "Allen Lau" <dcampbell@example.com> > To: dcampbell@example.com > Sent: Tuesday, September 29, 2009 4:37:46 PM GMT -08:00 US/Canada Pacific > Subject: Re: Failing to use remote shell > > Did you happen to set the > "osgi.shell.telnet.ip" to an ip other than 83.161.120.155? > > Otherwise, you can only telnet to the server from the local machine where > Felix was started. > > On Tue, Sep 29, 2009 at 4:22 PM, Matt Tennant <dcampbell@example.com> wrote: > > > Hi all, > > > > I've been trying to use the Apache Felix Remote Shell (as described at > > http://felix.apache.org/site/apache-felix-remote-shell.html) in our > > application. A partner of ours had it working, and it looks like a great > > feature. However, it isn't working out of the box for me. > > > > I am using a Felix 1.8.0 framework download. > > > > I have these jars included in my bundles: > > org.apache.felix.shell-1.2.0.jar > > org.apache.felix.shell.remote-1.0.4.jar > > > > I have these lines included in my config.properties: > > osgi.shell.telnet=on > > osgi.shell.telnet.port=6666 > > osgi.shell.telnet.maxconn=2 > > osgi.shell.telnet.socketTimeout=0 > > > > I've noticed that the first line (osgi.shell.telnet=on) is not mentioned > in > > the reference I linked above, but it is in the config.properties of our > > partner. I've tried both with and without that line. I've also tried > > specifying that value at the command line rather than in > config.properties. > > There seems to be no effect. > > > > When it's running, the window that launched Felix (if it was launched > > interactively at all), can use the Felix shell just fine. But telnet to > > port 6666 is rejected (connection refused). I've tried telneting from > linux > > and from Windows using Putty. > > > > I know this doesn't seem like a lot to go on, but the feature is so > simple > > that I'm not sure what other details to add. If anyone can help, or ask > > clarifying questions that might help, I would appreciate it! > > > > Thanks, > > Matt > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dcampbell@example.com > > For additional commands, e-mail: dcampbell@example.com > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dcampbell@example.com > For additional commands, e-mail: dcampbell@example.com > > --000e0cd10628bcb8d70474d91006-- From dcampbell@example.com Thu Oct 01 07:14:19 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 46965 invoked from network); 1 Oct 2009 07:14:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 07:14:19 -0000 Received: (qmail 73874 invoked by uid 500); 1 Oct 2009 07:14:19 -0000 Delivered-To: dcampbell@example.com Received: (qmail 73799 invoked by uid 500); 1 Oct 2009 07:14:18 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 73789 invoked by uid 99); 1 Oct 2009 07:14:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 07:14:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fg-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 07:14:07 +0000 Received: by fg-out-1718.google.com with SMTP id d23so2232563fga.10 for <dcampbell@example.com>; Thu, 01 Oct 2009 00:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=OWT45a7oDhPDJAABLgkMP3FWFdA8IULhm8+cb0CA5a0=; b=rLVVzq00uiWlvCvQNcX0NSrstZUIhm6OWba8EkGy7daS7oLjcQFXSTXYFUjJ9yzY9R d6Umr0+87rshyJDtbvUdyqsJQdpN/i/4Jhu7OVlM7NVx4bOKReNsy5/3G0MUIirCzd6b f/1UzPRT2vciKWsRXuEojsPQJ6R+zbqxUwt3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=A4crOKDa79PX8ipGJ6w1D1CX4TuRF9CvG29JrMUtgXLwIq0sG/PqUqsnGrd/Q58JX8 PRtc9s7daqNDLebuPUVJhKInYmZaUmn7xUAFDklAvpgDQIQO07gvZwGjUfIhJrDeJQlw u8gcnxnG3wz6Jnnjw98jePzUAEDneHDoiqmBQ= Received: by 83.161.120.155 with SMTP id z26mr804840fgg.76.1254381227628; Thu, 01 Oct 2009 00:13:47 -0700 (PDT) Received: from ?83.161.120.155? (bsl-rtr.day.com [83.161.120.155]) by mx.google.com with ESMTPS id l12sm936806fgb.5.283.161.120.155.13.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Oct 2009 00:13:47 -0700 (PDT) Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 09:13:48 +0200 From: Felix Meschberger <dcampbell@example.com> User-Agent: Thunderbird 83.161.120.155 (X11/20090817) MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: Failing to use remote shell References: <7957070.441254270912371.JavaMail.SYSTEM@4Home_LV530> In-Reply-To: <7957070.441254270912371.JavaMail.SYSTEM@4Home_LV530> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Matt Tennant schrieb: > Hi Allen, > > Thanks, I guess I misunderstood how that property works. Setting the value at startup fixed the problem. > > Does this mean the only two valid values for this property are either 83.161.120.155 or the external ip address of the host device? One or the other, right? If so, is there a better way to specify the "other", in this case? It's a bit inconvenient to determine the appropriate IP address at startup time, especially with the limited shell utilities available on our host device. Alternatively, I could force the remote shell bundle to start up only after another bundle has programatically set osgi.shell.telnet.ip, but that is a bit hokey. You could set the value to 83.161.120.155 which means "any". This widely opens your container. Regards Felix > > Or am I totally missing something? > > Thanks, > Matt > > > ----- Original Message ----- > From: "Allen Lau" <dcampbell@example.com> > To: dcampbell@example.com > Sent: Tuesday, September 29, 2009 4:37:46 PM GMT -08:00 US/Canada Pacific > Subject: Re: Failing to use remote shell > > Did you happen to set the > "osgi.shell.telnet.ip" to an ip other than 83.161.120.155? > > Otherwise, you can only telnet to the server from the local machine where > Felix was started. > > On Tue, Sep 29, 2009 at 4:22 PM, Matt Tennant <dcampbell@example.com> wrote: > >> Hi all, >> >> I've been trying to use the Apache Felix Remote Shell (as described at >> http://felix.apache.org/site/apache-felix-remote-shell.html) in our >> application. A partner of ours had it working, and it looks like a great >> feature. However, it isn't working out of the box for me. >> >> I am using a Felix 1.8.0 framework download. >> >> I have these jars included in my bundles: >> org.apache.felix.shell-1.2.0.jar >> org.apache.felix.shell.remote-1.0.4.jar >> >> I have these lines included in my config.properties: >> osgi.shell.telnet=on >> osgi.shell.telnet.port=6666 >> osgi.shell.telnet.maxconn=2 >> osgi.shell.telnet.socketTimeout=0 >> >> I've noticed that the first line (osgi.shell.telnet=on) is not mentioned in >> the reference I linked above, but it is in the config.properties of our >> partner. I've tried both with and without that line. I've also tried >> specifying that value at the command line rather than in config.properties. >> There seems to be no effect. >> >> When it's running, the window that launched Felix (if it was launched >> interactively at all), can use the Felix shell just fine. But telnet to >> port 6666 is rejected (connection refused). I've tried telneting from linux >> and from Windows using Putty. >> >> I know this doesn't seem like a lot to go on, but the feature is so simple >> that I'm not sure what other details to add. If anyone can help, or ask >> clarifying questions that might help, I would appreciate it! >> >> Thanks, >> Matt >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dcampbell@example.com >> For additional commands, e-mail: dcampbell@example.com >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dcampbell@example.com > For additional commands, e-mail: dcampbell@example.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 09:35:14 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 83176 invoked from network); 1 Oct 2009 09:35:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 09:35:14 -0000 Received: (qmail 37664 invoked by uid 500); 1 Oct 2009 09:35:14 -0000 Delivered-To: dcampbell@example.com Received: (qmail 37589 invoked by uid 500); 1 Oct 2009 09:35:14 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Delivered-To: moderator for dcampbell@example.com Received: (qmail 35497 invoked by uid 99); 1 Oct 2009 09:30:44 -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 dcampbell@example.com designates 83.161.120.155 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=adK8XPpRfnnoIUOMVhHi4azXkkpmF9Zz9JMuZKAuw5Y=; b=MfBGbPz+gaCbhhOYrwjArmo0eYWSFRSXMl1rkAougB2tNUKMTGmKigpDr0Xrqx7heg VolvRp5+kNQlSbi4kmp7r34iBFm7yZATAid42RlHrnsVDBMKQwYSAJyZ8EuIIGtMIGVz cRcR7RwN/3NRJMsujOMB0zzOWkeXOna06rPC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=R6xd2Er1MxL54TeXC64cQ9MOUqPc45O4/gpnPWzvwnUP/AV93iTVwNkJ316XhLkKjm tC6Mn779YfHUwysmiDXW2mwp95kqGd5X+Qpp0+G+BBHiCuY82iYiYPlKrhUDg1PvDwN4 jz7tfoWGoma+9+7c3xQaU4peE8MSSG3MlkGIE= MIME-Version: 1.0 Date: Thu, 1 Oct 2009 11:29:13 +0200 Message-ID: <dcampbell@example.com> Subject: question From: samira chaouki <dcampbell@example.com> To: dcampbell@example.com Content-Type: multipart/alternative; boundary=00c09ffb561be5204f0474dc47af X-Virus-Checked: Checked by ClamAV on apache.org --00c09ffb561be5204f0474dc47af Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello. I=92m developing a new module in Felix but I have some troubles. I want to use the method *installBundle *which is in the package *org.apache.felix.framework * Although I import this package in the pom.xml of the module I have imported it did not compile. *Samira CHAOUKI* *Mail : dcampbell@example.com* *Tel : *06 34 87 31 58 --00c09ffb561be5204f0474dc47af-- From dcampbell@example.com Thu Oct 01 09:41:42 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 85089 invoked from network); 1 Oct 2009 09:41:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 09:41:41 -0000 Received: (qmail 40829 invoked by uid 500); 1 Oct 2009 09:41:41 -0000 Delivered-To: dcampbell@example.com Received: (qmail 40775 invoked by uid 500); 1 Oct 2009 09:41:41 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 40761 invoked by uid 99); 1 Oct 2009 09:41:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 09:41:41 +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 dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f223.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 09:41:31 +0000 Received: by fxm23 with SMTP id 23so2563911fxm.6 for <dcampbell@example.com>; Thu, 01 Oct 2009 02:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=8a0zlszIJVWZKlvYgPDlCAInHnFXVJKRmwZW2RpqT9s=; b=iyTl4zywZR89c0ySdDEqFMp1bMwnRIOmaq0gNyC6/9ZwVAfMas+cJyfsvXauxD9aXY 0dEmdC9X/IzW1Pkg/kjPstUxpo32IE8ynymswq1lBIOBlq4fyDHvSCAunYpJHhywZ6Ej P26GFSGVSe/L//mTp+EnvXf/TzOdch60NC+yk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Bufbh1Uw48DWys1yXiAdynogAdKM8bFvIJJaptPE7RCjQwzULRDzJiEdMuZ3iiosJk XLuyBuiwPOOA0tLsumi2+ouIFNcwWTclREpsRaZUVFzcUSKHz+Xd96DH8c5/VD/gVpp1 ZG+JDeqj+i7q8RxNc857QdPaRBPkuO+o2Dlk8= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id d6mr979316fgf.29.1254390011357; Thu, 01 Oct 2009 02:40:11 -0700 (PDT) Date: Thu, 1 Oct 2009 11:40:11 +0200 Message-ID: <dcampbell@example.com> Subject: question From: samira chaouki <dcampbell@example.com> To: dcampbell@example.com Content-Type: multipart/alternative; boundary=00c09ffb568e096c020474dc6f05 X-Virus-Checked: Checked by ClamAV on apache.org --00c09ffb568e096c020474dc6f05 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello. I=92m developing a new module in Felix but I have some troubles. I want to use the method *installBundle *which is in the package *org.apache.felix.framework * Although I import this package in the pom.xml of the module I have imported it did not compile. *Samira CHAOUKI* *Mail : dcampbell@example.com* *Tel : *06 34 87 31 58 --00c09ffb568e096c020474dc6f05-- From dcampbell@example.com Thu Oct 01 09:48:53 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 88193 invoked from network); 1 Oct 2009 09:48:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 09:48:53 -0000 Received: (qmail 54437 invoked by uid 500); 1 Oct 2009 09:48:52 -0000 Delivered-To: dcampbell@example.com Received: (qmail 54392 invoked by uid 500); 1 Oct 2009 09:48:52 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 54382 invoked by uid 99); 1 Oct 2009 09:48:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 09:48:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO outbound-mail-309.bluehost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Oct 2009 09:48:40 +0000 Received: (qmail 5433 invoked by uid 0); 1 Oct 2009 09:48:18 -0000 Received: from unknown (HELO host118.hostmonster.com) (83.161.120.155) by outboundproxy6.bluehost.com with SMTP; 1 Oct 2009 09:48:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=AKLSn0XG8wyCO69dLdeRdVYw7mpQW3Zmjmf8ZUkXqUkB1GG81PjPWb+RF8b8kf5M4ceZY2aY0etFioRpXIvst922VXujEFJw60bUSwA3Kt9e5UtxxCcyTOvewAr5PCPs; Received: from 105.223.77-86.rev.gaoland.net ([83.161.120.155] helo=heavyweight.sfr) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <dcampbell@example.com>) id 1MtIGo-0001Wi-81 for dcampbell@example.com; Thu, 01 Oct 2009 03:48:18 -0600 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 11:48:16 +0200 From: "Richard S. Hall" <dcampbell@example.com> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: ServiceLoader and OSGi? References: <dcampbell@example.com> In-Reply-To: <dcampbell@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 83.161.120.155 authed with dcampbell@example.com} X-Virus-Checked: Checked by ClamAV on apache.org Did this issue ever get resolved? As far as I can see, you are trying to find a service provider from the SPI bundle, but the SPI bundle doesn't have any visibility to the service provider, so it cannot find it. You cannot use ServiceLoader in the normal way in OSGi. -> richard On 5/18/09 22:04, Moloney, Tim M wrote: > I've attached my example project. To build it just run 'mvn install'. > To run it from the command line, run 'RunFooFromOsgi'. To run it within > Eclipse, import the project, then run fooOsgi. RunFooFromMain (command > line) and fooMain (Eclipse) run the example service provider > successfully outside of Felix. > > If I run my example code from the command line (RunFooFromOsgi), no > service providers are found. > > If I run my example code from within Eclipse, I get the following: > > Welcome to Felix. > ================= > > -> In com.example.foo.osgi.Activator.start(): > ERROR: Error starting file:target/com.example.foo.osgi-0.1.0.jar > (org.osgi.framework.BundleException: Activator start error in bundle > com.example.foo.osgi [5].) > java.util.ServiceConfigurationError: com.example.foo.spi.Foo: Provider > com.example.foo.impl.FooImpl could not be instantiated: > java.lang.ClassCastException > at java.util.ServiceLoader.fail(ServiceLoader.java:207) > at java.util.ServiceLoader.access$100(ServiceLoader.java:164) > at > java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353) > at java.util.ServiceLoader$1.next(ServiceLoader.java:421) > at com.example.foo.spi.FooFactory.getFoo(FooFactory.java:17) > at com.example.foo.osgi.Activator.start(Activator.java:17) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction > .java:589) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1458) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) > at > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.lang.ClassCastException > at java.lang.Class.cast(Class.java:2990) > at > java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345) > ... 8 more > > > Tim Moloney The reasonable man adapts himself > to > ManTech Real-time Systems Laboratory the world; the unreasonable one > persists > 2015 Cattlemen Road in trying to adapt the world to > himself. > Sarasota, FL 34232 Therefore all progress depends on > the > +1-220-317-9853 unreasonable man. - George > Bernard Shaw > > > >> -----Original Message----- >> From: Richard S. Hall [mailto:dcampbell@example.com] >> Sent: Monday, May 18, 2009 10:11 >> To: dcampbell@example.com >> Subject: Re: ServiceLoader and OSGi? >> >> On 5/18/09 9:31 AM, Moloney, Tim M wrote: >> >>> I have a very simple service provider that works outside of OSGi. >>> >>> I tried using it in Felix but it fails with a ClassCastException. >>> >>> Is this somehow related to the different class loaders in >>> >> the different >> >>> bundles? >>> >>> >> Probably. >> >> >>> Any suggestions on how to get past this? >>> >>> >> Not enough information to say. >> >> -> richard >> >> >>> Thanks. >>> >>> >>> Tim Moloney The reasonable man adapts himself to >>> MRSL the world; the unreasonable one persists >>> 2015 Cattlemen Road in trying to adapt the world to himself. >>> Sarasota, FL 34232 Therefore all progress depends on the >>> +1-220-317-9853 unreasonable man. George Bernard Shaw >>> >>> >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dcampbell@example.com >> For additional commands, e-mail: dcampbell@example.com >> >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dcampbell@example.com >> For additional commands, e-mail: dcampbell@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 09:56:24 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 90407 invoked from network); 1 Oct 2009 09:56:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 09:56:24 -0000 Received: (qmail 63193 invoked by uid 500); 1 Oct 2009 09:56:23 -0000 Delivered-To: dcampbell@example.com Received: (qmail 63129 invoked by uid 500); 1 Oct 2009 09:56:23 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 63119 invoked by uid 99); 1 Oct 2009 09:56:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 09:56:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO outbound-mail-309.bluehost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Oct 2009 09:56:12 +0000 Received: (qmail 14868 invoked by uid 0); 1 Oct 2009 09:54:51 -0000 Received: from unknown (HELO host118.hostmonster.com) (83.161.120.155) by outboundproxy6.bluehost.com with SMTP; 1 Oct 2009 09:54:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=AIVW+q6PRD8TWS4+tzxggOcikSrwIIvkJ5Vu1vCOGP79oelK8RNJaGoBC+YoRMkQQLCDVn3ZsMxbX+ny+EpIK8G5LiPKpcb+ZZVWQH2Kzsgv/OoM34xqc52MX/YoySL/; Received: from 105.223.77-86.rev.gaoland.net ([83.161.120.155] helo=heavyweight.sfr) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <dcampbell@example.com>) id 1MtIN8-0003Cw-QL for dcampbell@example.com; Thu, 01 Oct 2009 03:54:51 -0600 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 11:54:48 +0200 From: "Richard S. Hall" <dcampbell@example.com> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: question References: <dcampbell@example.com> In-Reply-To: <dcampbell@example.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 83.161.120.155 authed with dcampbell@example.com} X-Virus-Checked: Checked by ClamAV on apache.org You should not be using anything inside any org.apache.felix.* package, you should be using classes in org.osgi.framework.*. You do this by importing them in your manifest file and creating a bundle activator for your bundle. If you are new to OSGi, you might want to check out some basic tutorials...we have a basic one in our documentation area: http://felix.apache.org/site/apache-felix-osgi-tutorial.html -> richard On 10/1/09 11:29, samira chaouki wrote: > Hello. > > I'm developing a new module in Felix but I have some troubles. > > I want to use the method *installBundle *which is in the package > *org.apache.felix.framework > * > > Although I import this package in the pom.xml of the module I have imported > it did not compile. > > > > *Samira CHAOUKI* > > *Mail : dcampbell@example.com* > > *Tel : *06 34 87 31 58 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 09:56:54 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 90487 invoked from network); 1 Oct 2009 09:56:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 09:56:54 -0000 Received: (qmail 63767 invoked by uid 500); 1 Oct 2009 09:56:53 -0000 Delivered-To: dcampbell@example.com Received: (qmail 63678 invoked by uid 500); 1 Oct 2009 09:56:53 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 63668 invoked by uid 99); 1 Oct 2009 09:56:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 09:56:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.prosyst.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 09:56:42 +0000 Received: (qmail 17142 invoked from network); 1 Oct 2009 09:55:57 -0000 Received: from wizard.prosyst.com (HELO ?83.161.120.155?) (83.161.120.155) by mail.prosyst.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 1 Oct 2009 09:55:57 -0000 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 11:56:21 +0200 From: Roman Roelofsen <dcampbell@example.com> User-Agent: Thunderbird 83.161.120.155 (X11/20090817) MIME-Version: 1.0 To: dcampbell@example.com Subject: Felix Framework Distribution as Maven artifact Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, is the Felix framework distribution (e.g. http://apache.prosite.de/felix/felix-framework-2.0.0.tar.gz) also available as a maven artifact? Cheers, Roman --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 10:09:59 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 93866 invoked from network); 1 Oct 2009 10:09:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 10:09:59 -0000 Received: (qmail 71762 invoked by uid 500); 1 Oct 2009 10:09:57 -0000 Delivered-To: dcampbell@example.com Received: (qmail 71692 invoked by uid 500); 1 Oct 2009 10:09:57 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 71682 invoked by uid 99); 1 Oct 2009 10:09:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:09:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-fx0-f223.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:09:47 +0000 Received: by fxm23 with SMTP id 23so2578863fxm.6 for <dcampbell@example.com>; Thu, 01 Oct 2009 03:05:27 -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=hxV1TdM26NUof34TbF92rJ6lTm2+GZcEiB3/uxA2fvg=; b=gzCeyRx8tj/cHhaMZJ5AtuiikM1Uf2ZY9VGuzwxz8YgqPBZAejueid/pjuICembk3T AO6JObuZLzTuJ/ccBI+5NhIRWRFUpTH/XYJL/t1XNyyxzqELfky+X69WUFH8iWn5VGCe ZX0nIeDlNV3FmLwYSm9ZkQmeh7D3rmeeUs3zc= 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=sdlWmAot2onL8AE/OisDynu3JXbGnoHXoB9e+uN3wcDZPAzUxWbT2qA3x8y8wuoWzA TYcG33hxVVIayEH5Vjzv2mKxTr2YJKXKZLodrlDWFNQ7zSbKNX6+RlzUgfOTN4nsfmq3 WWyGNdjKFWHnxocRoRT1uDQXe3IkwTwShQfng= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id y6mr995286fgh.24.1254391527396; Thu, 01 Oct 2009 03:05:27 -0700 (PDT) In-Reply-To: <dcampbell@example.com> References: <dcampbell@example.com> Date: Thu, 1 Oct 2009 12:05:27 +0200 Message-ID: <dcampbell@example.com> Subject: Re: Felix Framework Distribution as Maven artifact From: Karl Pauls <dcampbell@example.com> To: dcampbell@example.com Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org No. The distribution is not available from maven but the individual components (including main and framework) are. If you are looking for what is bin/felix.jar in the distribution you can go with the org.apache.felix.main from maven. Otherwise, the distribution is basically just a zip of our main subproject from svn after a mvn install (minus the src,.svn, etc.) . regards, Karl On Thu, Oct 1, 2009 at 11:56 AM, Roman Roelofsen <dcampbell@example.com> wrote: > > Hi, > > is the Felix framework distribution (e.g. > http://apache.prosite.de/felix/felix-framework-2.0.0.tar.gz) also available > as a maven artifact? > > Cheers, > > Roman > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dcampbell@example.com > For additional commands, e-mail: dcampbell@example.com > > -- Karl Pauls dcampbell@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 10:18:44 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 99085 invoked from network); 1 Oct 2009 10:18:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 10:18:44 -0000 Received: (qmail 79404 invoked by uid 500); 1 Oct 2009 10:18:43 -0000 Delivered-To: dcampbell@example.com Received: (qmail 79345 invoked by uid 500); 1 Oct 2009 10:18:43 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 79335 invoked by uid 99); 1 Oct 2009 10:18:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:18:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO outbound-mail-104.bluehost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Oct 2009 10:18:32 +0000 Received: (qmail 32477 invoked by uid 0); 1 Oct 2009 10:08:33 -0000 Received: from unknown (HELO host118.hostmonster.com) (83.161.120.155) by outboundproxy3.bluehost.com with SMTP; 1 Oct 2009 10:08:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=M8eapUiBcCmIbp304ywxU2qQsr6DBmzvNpQ/yavFTMbG48/Y+u/GU2JEc2y5yzOJOog8wibJBK72VtYqII2wSnXQ7K17+LZDUVf+2ofN3CAEYCXLJpc9Veyo5jHraHKV; Received: from 105.223.77-86.rev.gaoland.net ([83.161.120.155] helo=heavyweight.sfr) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <dcampbell@example.com>) id 1MtIaP-0001eu-Ct for dcampbell@example.com; Thu, 01 Oct 2009 04:08:33 -0600 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 12:08:31 +0200 From: "Richard S. Hall" <dcampbell@example.com> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: Felix Framework Distribution as Maven artifact References: <dcampbell@example.com> In-Reply-To: <dcampbell@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 83.161.120.155 authed with dcampbell@example.com} X-Virus-Checked: Checked by ClamAV on apache.org No, because it is not a JAR file...is is a packaging of the framework and needed shell bundles to use the framework. -> richard On 10/1/09 11:56, Roman Roelofsen wrote: > > Hi, > > is the Felix framework distribution (e.g. > http://apache.prosite.de/felix/felix-framework-2.0.0.tar.gz) also > available as a maven artifact? > > Cheers, > > Roman > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dcampbell@example.com > For additional commands, e-mail: dcampbell@example.com > --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 10:26:47 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 2602 invoked from network); 1 Oct 2009 10:26:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 10:26:47 -0000 Received: (qmail 90622 invoked by uid 500); 1 Oct 2009 10:26:47 -0000 Delivered-To: dcampbell@example.com Received: (qmail 90564 invoked by uid 500); 1 Oct 2009 10:26:46 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 90554 invoked by uid 99); 1 Oct 2009 10:26:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:26:46 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO tux17.hoststar.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:26:35 +0000 Received: from [83.161.120.155] ([83.161.120.155]) (authenticated bits=0) by tux17.hoststar.ch (8.13.6/8.12.11) with ESMTP id n91AQH3U022542 for <dcampbell@example.com>; Thu, 1 Oct 2009 12:26:17 +0200 Date: Thu, 01 Oct 2009 12:26:15 +0200 From: Jeremias Maerki <dcampbell@example.com> To: dcampbell@example.com Subject: Re: ServiceLoader and OSGi? In-Reply-To: <dcampbell@example.com> References: <dcampbell@example.com> <dcampbell@example.com> Message-Id: <dcampbell@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.50.02 [en] X-Virus-Checked: Checked by ClamAV on apache.org Just in case anyone is interested: I've written a little bundle to work around that problem and to get Apache FOP and Batik working in an OSGi environment. The Apache XML Graphics project makes heavy use of the META-INF/services mechanism for plug-ins. My bundle provides code to transparently provide plug-in classes, be that in an OSGi environment or in a plain Java environment. And it works for Java >=3D 1.4 (i.e. doesn't use ServiceLoader). It seems to work quite nicely for me so far, but I haven't taken the time to clean up everything and publish it. And I'm using my own Ant-based Bundle-Manifest creator (i.e. not BND) which is equally unpublished. But if there's interest, I could do that work and publish it (be that on my own website, as part of Apache XML Graphics or Apache Felix) in the next few weeks (when my immediate deadlines are past). Here's how some client code would look like: Services services =3D Services.getInstance(); //Dynamic registration of ImagePreloaders Iterator iter =3D services.getServiceProvider(ImagePreloader.class).= getServiceFactories(); while (iter.hasNext()) { ServiceFactory factory =3D (ServiceFactory)iter.next(); registerPreloader((ImagePreloader)factory.createInstance()); } Sorry, no generics, since I have to support Java 1.4 for the time being. On 01.10.2009 11:48:16 Richard S. Hall wrote: > Did this issue ever get resolved? >=20 > As far as I can see, you are trying to find a service provider from the= =20 > SPI bundle, but the SPI bundle doesn't have any visibility to the=20 > service provider, so it cannot find it. You cannot use ServiceLoader in= =20 > the normal way in OSGi. >=20 > -> richard >=20 > On 5/18/09 22:04, Moloney, Tim M wrote: > > I've attached my example project. To build it just run 'mvn install'. > > To run it from the command line, run 'RunFooFromOsgi'. To run it withi= n > > Eclipse, import the project, then run fooOsgi. RunFooFromMain (command > > line) and fooMain (Eclipse) run the example service provider > > successfully outside of Felix. > > > > If I run my example code from the command line (RunFooFromOsgi), no > > service providers are found. > > > > If I run my example code from within Eclipse, I get the following: > > > > Welcome to Felix. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > -> In com.example.foo.osgi.Activator.start(): > > ERROR: Error starting file:target/com.example.foo.osgi-0.1.0.jar > > (org.osgi.framework.BundleException: Activator start error in bundle > > com.example.foo.osgi [5].) > > java.util.ServiceConfigurationError: com.example.foo.spi.Foo: Provider > > com.example.foo.impl.FooImpl could not be instantiated: > > java.lang.ClassCastException > > at java.util.ServiceLoader.fail(ServiceLoader.java:207) > > at java.util.ServiceLoader.access$100(ServiceLoader.java:164) > > at > > java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353) > > at java.util.ServiceLoader$1.next(ServiceLoader.java:421) > > at com.example.foo.spi.FooFactory.getFoo(FooFactory.java:17) > > at com.example.foo.osgi.Activator.start(Activator.java:17) > > at > > org.apache.felix.framework.util.SecureAction.startActivator(SecureActio= n > > .java:589) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:1458) > > at > > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) > > at > > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) > > at java.lang.Thread.run(Thread.java:619) > > Caused by: java.lang.ClassCastException > > at java.lang.Class.cast(Class.java:2990) > > at > > java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345) > > ... 8 more > > > > > > Tim Moloney The reasonable man adapts himsel= f > > to > > ManTech Real-time Systems Laboratory the world; the unreasonable one > > persists > > 2015 Cattlemen Road in trying to adapt the world to > > himself. > > Sarasota, FL 34232 Therefore all progress depends o= n > > the > > +1-220-317-9853 unreasonable man. - George > > Bernard Shaw > > > > > > =20 > >> -----Original Message----- > >> From: Richard S. Hall [mailto:dcampbell@example.com] > >> Sent: Monday, May 18, 2009 10:11 > >> To: dcampbell@example.com > >> Subject: Re: ServiceLoader and OSGi? > >> > >> On 5/18/09 9:31 AM, Moloney, Tim M wrote: > >> =20 > >>> I have a very simple service provider that works outside of OSGi. > >>> > >>> I tried using it in Felix but it fails with a ClassCastException. > >>> > >>> Is this somehow related to the different class loaders in > >>> =20 > >> the different > >> =20 > >>> bundles? > >>> > >>> =20 > >> Probably. > >> > >> =20 > >>> Any suggestions on how to get past this? > >>> > >>> =20 > >> Not enough information to say. > >> > >> -> richard > >> > >> =20 > >>> Thanks. > >>> > >>> > >>> Tim Moloney The reasonable man adapts himself to > >>> MRSL the world; the unreasonable one persists > >>> 2015 Cattlemen Road in trying to adapt the world to himself. > >>> Sarasota, FL 34232 Therefore all progress depends on the > >>> +1-220-317-9853 unreasonable man. George Bernard Shaw > >>> > >>> Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 10:27:10 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 2993 invoked from network); 1 Oct 2009 10:27:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 10:27:10 -0000 Received: (qmail 92815 invoked by uid 500); 1 Oct 2009 10:27:10 -0000 Delivered-To: dcampbell@example.com Received: (qmail 92770 invoked by uid 500); 1 Oct 2009 10:27:10 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 92760 invoked by uid 99); 1 Oct 2009 10:27:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:27:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.prosyst.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:26:59 +0000 Received: (qmail 21018 invoked from network); 1 Oct 2009 10:26:14 -0000 Received: from wizard.prosyst.com (HELO ?83.161.120.155?) (83.161.120.155) by mail.prosyst.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 1 Oct 2009 10:26:14 -0000 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 12:26:39 +0200 From: Roman Roelofsen <dcampbell@example.com> User-Agent: Thunderbird 83.161.120.155 (X11/20090817) MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: Felix Framework Distribution as Maven artifact References: <dcampbell@example.com> <dcampbell@example.com> In-Reply-To: <dcampbell@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Richard S. Hall wrote: > No, because it is not a JAR file...is is a packaging of the framework > and needed shell bundles to use the framework. It does not need to be a jar. You can attach maven assembly descriptors to artifacts and upload them to a mvn repo as well. Clients can use <classifier> and <type> to resolve against those attached files. Anyway... I will cherry-pick the required bundles from the repo. Thanks for the update! Roman --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 10:40:05 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 5938 invoked from network); 1 Oct 2009 10:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 10:40:05 -0000 Received: (qmail 9571 invoked by uid 500); 1 Oct 2009 10:40:04 -0000 Delivered-To: dcampbell@example.com Received: (qmail 9513 invoked by uid 500); 1 Oct 2009 10:40:04 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 9503 invoked by uid 99); 1 Oct 2009 10:40:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:40:04 +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 dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fg-out-1718.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:39:54 +0000 Received: by fg-out-1718.google.com with SMTP id e21so1591467fga.10 for <dcampbell@example.com>; Thu, 01 Oct 2009 03:39:34 -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=sY/cj3KS9/mtXE9RX8tQAUO7iKIU8kLN/cR9K1hoTKI=; b=BFPr8CbuIR0zEAa2Mdb44QsCRooSrb0Lv9sY6GgeLHlGyH7zQphVIbcrNvwVvn3a6G DsQs1JK6lFW7760vbgH7doFg7nMIoI/aVEli9km257ihpl6EVvnfeRpmRBfSsIBBDPE4 t+fEjg3sdntGxPqid+o/DwQBf3AprJnNFQ1C8= 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=VACEz8Tbzd68oKmHtndpBH7/k5xhdKyjrx3tVS0fA4mWgNydUV4ScL9uA1jbFZeZB3 rtcSEv0hrKsC51FWkap4HOhbeGAfbdDuOrBhGy9r2hf/v/Sbks24Ht6+m9QYeanf+vr/ DpI7LA/P00XY2mnIar4hy2+xE6uIRs3CJaYts= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id o19mr957744fgo.45.1254393573593; Thu, 01 Oct 2009 03:39:33 -0700 (PDT) In-Reply-To: <dcampbell@example.com> References: <dcampbell@example.com> <dcampbell@example.com> Date: Thu, 1 Oct 2009 12:39:33 +0200 Message-ID: <dcampbell@example.com> Subject: Re: question From: samira chaouki <dcampbell@example.com> To: dcampbell@example.com Content-Type: multipart/alternative; boundary=00163600cfe45cd1b80474dd430a X-Virus-Checked: Checked by ClamAV on apache.org --00163600cfe45cd1b80474dd430a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable In my bundle I need to instanciate Felix class which represent the framework. 2009/10/1 Richard S. Hall <dcampbell@example.com> > You should not be using anything inside any org.apache.felix.* package, y= ou > should be using classes in org.osgi.framework.*. You do this by importing > them in your manifest file and creating a bundle activator for your bundl= e. > If you are new to OSGi, you might want to check out some basic > tutorials...we have a basic one in our documentation area: > > http://felix.apache.org/site/apache-felix-osgi-tutorial.html > > -> richard > > > > On 10/1/09 11:29, samira chaouki wrote: > >> Hello. >> >> I=92m developing a new module in Felix but I have some troubles. >> >> I want to use the method *installBundle *which is in the package >> *org.apache.felix.framework >> * >> >> Although I import this package in the pom.xml of the module I have >> imported >> it did not compile. >> >> >> >> *Samira CHAOUKI* >> >> *Mail : dcampbell@example.com* >> >> *Tel : *06 34 87 31 58 >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dcampbell@example.com > For additional commands, e-mail: dcampbell@example.com > > --00163600cfe45cd1b80474dd430a-- From dcampbell@example.com Thu Oct 01 10:55:43 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 11479 invoked from network); 1 Oct 2009 10:55:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 10:55:42 -0000 Received: (qmail 27713 invoked by uid 500); 1 Oct 2009 10:55:42 -0000 Delivered-To: dcampbell@example.com Received: (qmail 27645 invoked by uid 500); 1 Oct 2009 10:55:42 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 27635 invoked by uid 99); 1 Oct 2009 10:55:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 10:55:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO outbound-mail-155.bluehost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Oct 2009 10:55:30 +0000 Received: (qmail 29309 invoked by uid 0); 1 Oct 2009 10:55:08 -0000 Received: from unknown (HELO host118.hostmonster.com) (83.161.120.155) by outboundproxy5.bluehost.com with SMTP; 1 Oct 2009 10:55:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=ujDhTFQVZ0/lnddPX7ELGvwNOTJpwj2XqxYhEK4wDd+XF7UL3dyVuwuIgqYtE31/IzkCZvlRTftADE1Rsbv8qcQzejlUrmDDjYEyAa2HfbIHUygX9yzpBFmMhzarcUAi; Received: from 105.223.77-86.rev.gaoland.net ([83.161.120.155] helo=heavyweight.sfr) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <dcampbell@example.com>) id 1MtJJT-0004oI-Th for dcampbell@example.com; Thu, 01 Oct 2009 04:55:08 -0600 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 12:55:05 +0200 From: "Richard S. Hall" <dcampbell@example.com> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: ServiceLoader and OSGi? References: <dcampbell@example.com> <dcampbell@example.com> <dcampbell@example.com> In-Reply-To: <dcampbell@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 83.161.120.155 authed with dcampbell@example.com} X-Virus-Checked: Checked by ClamAV on apache.org Well, definitely make it available somehow so people can take a dcampbell@example.com. -> richard On 10/1/09 12:26, Jeremias Maerki wrote: > Just in case anyone is interested: I've written a little bundle to work > around that problem and to get Apache FOP and Batik working in an OSGi > environment. The Apache XML Graphics project makes heavy use of the > META-INF/services mechanism for plug-ins. > > My bundle provides code to transparently provide plug-in classes, be > that in an OSGi environment or in a plain Java environment. And it works > for Java>= 1.4 (i.e. doesn't use ServiceLoader). It seems to work quite > nicely for me so far, but I haven't taken the time to clean up > everything and publish it. And I'm using my own Ant-based > Bundle-Manifest creator (i.e. not BND) which is equally unpublished. But > if there's interest, I could do that work and publish it (be that on my > own website, as part of Apache XML Graphics or Apache Felix) in the next > few weeks (when my immediate deadlines are past). > > Here's how some client code would look like: > > Services services = Services.getInstance(); > > //Dynamic registration of ImagePreloaders > Iterator iter = services.getServiceProvider(ImagePreloader.class).getServiceFactories(); > while (iter.hasNext()) { > ServiceFactory factory = (ServiceFactory)iter.next(); > registerPreloader((ImagePreloader)factory.createInstance()); > } > > Sorry, no generics, since I have to support Java 1.4 for the time being. > > On 01.10.2009 11:48:16 Richard S. Hall wrote: > >> Did this issue ever get resolved? >> >> As far as I can see, you are trying to find a service provider from the >> SPI bundle, but the SPI bundle doesn't have any visibility to the >> service provider, so it cannot find it. You cannot use ServiceLoader in >> the normal way in OSGi. >> >> -> richard >> >> On 5/18/09 22:04, Moloney, Tim M wrote: >> >>> I've attached my example project. To build it just run 'mvn install'. >>> To run it from the command line, run 'RunFooFromOsgi'. To run it within >>> Eclipse, import the project, then run fooOsgi. RunFooFromMain (command >>> line) and fooMain (Eclipse) run the example service provider >>> successfully outside of Felix. >>> >>> If I run my example code from the command line (RunFooFromOsgi), no >>> service providers are found. >>> >>> If I run my example code from within Eclipse, I get the following: >>> >>> Welcome to Felix. >>> ================= >>> >>> -> In com.example.foo.osgi.Activator.start(): >>> ERROR: Error starting file:target/com.example.foo.osgi-0.1.0.jar >>> (org.osgi.framework.BundleException: Activator start error in bundle >>> com.example.foo.osgi [5].) >>> java.util.ServiceConfigurationError: com.example.foo.spi.Foo: Provider >>> com.example.foo.impl.FooImpl could not be instantiated: >>> java.lang.ClassCastException >>> at java.util.ServiceLoader.fail(ServiceLoader.java:207) >>> at java.util.ServiceLoader.access$100(ServiceLoader.java:164) >>> at >>> java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353) >>> at java.util.ServiceLoader$1.next(ServiceLoader.java:421) >>> at com.example.foo.spi.FooFactory.getFoo(FooFactory.java:17) >>> at com.example.foo.osgi.Activator.start(Activator.java:17) >>> at >>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction >>> .java:589) >>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1458) >>> at >>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) >>> at >>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) >>> at java.lang.Thread.run(Thread.java:619) >>> Caused by: java.lang.ClassCastException >>> at java.lang.Class.cast(Class.java:2990) >>> at >>> java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345) >>> ... 8 more >>> >>> >>> Tim Moloney The reasonable man adapts himself >>> to >>> ManTech Real-time Systems Laboratory the world; the unreasonable one >>> persists >>> 2015 Cattlemen Road in trying to adapt the world to >>> himself. >>> Sarasota, FL 34232 Therefore all progress depends on >>> the >>> +1-220-317-9853 unreasonable man. - George >>> Bernard Shaw >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Richard S. Hall [mailto:dcampbell@example.com] >>>> Sent: Monday, May 18, 2009 10:11 >>>> To: dcampbell@example.com >>>> Subject: Re: ServiceLoader and OSGi? >>>> >>>> On 5/18/09 9:31 AM, Moloney, Tim M wrote: >>>> >>>> >>>>> I have a very simple service provider that works outside of OSGi. >>>>> >>>>> I tried using it in Felix but it fails with a ClassCastException. >>>>> >>>>> Is this somehow related to the different class loaders in >>>>> >>>>> >>>> the different >>>> >>>> >>>>> bundles? >>>>> >>>>> >>>>> >>>> Probably. >>>> >>>> >>>> >>>>> Any suggestions on how to get past this? >>>>> >>>>> >>>>> >>>> Not enough information to say. >>>> >>>> -> richard >>>> >>>> >>>> >>>>> Thanks. >>>>> >>>>> >>>>> Tim Moloney The reasonable man adapts himself to >>>>> MRSL the world; the unreasonable one persists >>>>> 2015 Cattlemen Road in trying to adapt the world to himself. >>>>> Sarasota, FL 34232 Therefore all progress depends on the >>>>> +1-220-317-9853 unreasonable man. George Bernard Shaw >>>>> >>>>> >>>>> > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dcampbell@example.com > For additional commands, e-mail: dcampbell@example.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 11:02:10 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 12611 invoked from network); 1 Oct 2009 11:02:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 11:02:10 -0000 Received: (qmail 30224 invoked by uid 500); 1 Oct 2009 11:02:09 -0000 Delivered-To: dcampbell@example.com Received: (qmail 30163 invoked by uid 500); 1 Oct 2009 11:02:09 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Received: (qmail 30150 invoked by uid 99); 1 Oct 2009 11:02:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 11:02:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dcampbell@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO outbound-mail-124.bluehost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Oct 2009 11:01:57 +0000 Received: (qmail 32245 invoked by uid 0); 1 Oct 2009 11:00:36 -0000 Received: from unknown (HELO host118.hostmonster.com) (83.161.120.155) by outboundproxy4.bluehost.com with SMTP; 1 Oct 2009 11:00:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=lK9NKuK+OmV9fXVwfNBETGoxXNPp08amsvX78V7uCu9yGStAYl6yTaHphP2l3QnrsrCijwwqouxdSVFyp08pMC/Li9506kjX78BQ2htpZC+/58TQcKT+UGp7xPdneQyR; Received: from 105.223.77-86.rev.gaoland.net ([83.161.120.155] helo=heavyweight.sfr) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <dcampbell@example.com>) id 1MtJOl-0006aZ-Gm for dcampbell@example.com; Thu, 01 Oct 2009 05:00:35 -0600 Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 13:00:33 +0200 From: "Richard S. Hall" <dcampbell@example.com> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:83.161.120.155pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: dcampbell@example.com Subject: Re: question References: <dcampbell@example.com> <dcampbell@example.com> <dcampbell@example.com> In-Reply-To: <dcampbell@example.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 83.161.120.155 authed with dcampbell@example.com} X-Virus-Checked: Checked by ClamAV on apache.org IC, then you still probably don't need to access the Felix framework class directly...you probably want to look at: http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding You need to refer to the wiki page because for some reason our static web site content is out of sync with the wiki... -> richard On 10/1/09 12:39, samira chaouki wrote: > In my bundle I need to instanciate Felix class which represent the > framework. > > > 2009/10/1 Richard S. Hall<dcampbell@example.com> > > >> You should not be using anything inside any org.apache.felix.* package, you >> should be using classes in org.osgi.framework.*. You do this by importing >> them in your manifest file and creating a bundle activator for your bundle. >> If you are new to OSGi, you might want to check out some basic >> tutorials...we have a basic one in our documentation area: >> >> http://felix.apache.org/site/apache-felix-osgi-tutorial.html >> >> -> richard >> >> >> >> On 10/1/09 11:29, samira chaouki wrote: >> >> >>> Hello. >>> >>> I'm developing a new module in Felix but I have some troubles. >>> >>> I want to use the method *installBundle *which is in the package >>> *org.apache.felix.framework >>> * >>> >>> Although I import this package in the pom.xml of the module I have >>> imported >>> it did not compile. >>> >>> >>> >>> *Samira CHAOUKI* >>> >>> *Mail : dcampbell@example.com* >>> >>> *Tel : *06 34 87 31 58 >>> >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dcampbell@example.com >> For additional commands, e-mail: dcampbell@example.com >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: dcampbell@example.com For additional commands, e-mail: dcampbell@example.com From dcampbell@example.com Thu Oct 01 13:01:50 2009 Return-Path: <dcampbell@example.com> Delivered-To: dcampbell@example.com Received: (qmail 58663 invoked from network); 1 Oct 2009 13:01:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Oct 2009 13:01:49 -0000 Received: (qmail 17214 invoked by uid 500); 1 Oct 2009 13:01:49 -0000 Delivered-To: dcampbell@example.com Received: (qmail 17154 invoked by uid 500); 1 Oct 2009 13:01:49 -0000 Mailing-List: contact dcampbell@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:dcampbell@example.com> List-Unsubscribe: <mailto:dcampbell@example.com> List-Post: <mailto:dcampbell@example.com> List-Id: <users.felix.apache.org> Reply-To: dcampbell@example.com Delivered-To: mailing list dcampbell@example.com Delivered-To: moderator for dcampbell@example.com Received: (qmail 96862 invoked by uid 99); 1 Oct 2009 12:54:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <dcampbell@example.com> Date: Thu, 01 Oct 2009 14:54:01 +0200 From: Felix Meschberger <dcampbell@example.com> Reply-To: Felix Dev <dcampbell@example.com> User-Agent: Thunderbird 83.161.120.155 (X11/20090817) MIME-Version: 1.0 To: users <dcampbell@example.com>, Apache Announcements <dcampbell@example.com> Subject: [ANN] Apache Felix Web Console version 2.0.0 Released Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org The Felix team is pleased to announce the release of Apache Felix Web Console version 2.0.0. The Apache Felix Web Console is a Web Based Management Console for OSGi Frameworks. See http://felix.apache.org/apache-felix-web-console.html for more information on the Apache Felix Web Console. The major theme of this release is support for branding (FELIX-1015). Another important aspect is that plugins do not need to extend from AbstractWebConsolePlugin anymore to have the common header and footer rendered (FELIX-1013). This release is available from http://felix.apache.org/site/downloads.cgi and Maven: <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.webconsole</artifactId> <version>2.0.0</version> </dependency> Release Notes: ** Bug * [FELIX-1160] - WebConsole Manifest.MF should specify required version for Servlet API (2.4) * [FELIX-1164] - Updating a configuration containing a property configured with unbound array size * [FELIX-1224] - Component display depends on ManagedService[Factory] instances to be registered for components * [FELIX-1230] - Configuration Page depends on ManagedService[Factory] instances to be registered for components * [FELIX-1270] - Displaying the bundle detail view resolves a bundle * [FELIX-1275] - On the Bundles page, when bundle details are displayed inline, the links to imported and importing bundles are invalid. * [FELIX-1389] - Main div is not closed * [FELIX-1415] - "Reload" button in webconsole bundles list doesn't work * [FELIX-1460] - Can't view installed but unresolved bundle details page * [FELIX-1622] - NullPointerException * [FELIX-1623] - Configuration status tabs not correctly rendered in FireFox 3.5 * [FELIX-1630] - Make WebConsole more independent * [FELIX-1632] - Remove reference to KXml from NOTICE and LICENSE and update OSGi copyright years * [FELIX-1636] - Html footer and header are always added to the response for a servlet plugin ** Improvement * [FELIX-1171] - Enhance Configuration Status Page * [FELIX-1191] - Add logging to OBR support plugin * [FELIX-1215] - Provide hyperlinks when referring to bundles * [FELIX-1217] - Move install/update to separate page * [FELIX-1221] - Display the alias ID created by Karaf Features when showing service details * [FELIX-1282] - Cleanup bundle: do not export SCR API, only embedd header parser * [FELIX-1283] - Order page titles in top navigation ignoring case * [FELIX-1569] - Remove deprecated Render interface * [FELIX-1637] - Support additional CSS references provided by plugins ** New Feature * [FELIX-1644] - Reintroduce button to update a single bundle * [FELIX-1013] - Improve console extensibility * [FELIX-1607] - Enhance the Web Console Event Plugin
{'source': 'Apache Software Foundation Public Mail Archives'}