Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE28E91DB for ; Fri, 4 May 2012 14:30:25 +0000 (UTC) Received: (qmail 63390 invoked by uid 500); 4 May 2012 14:30:25 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 63346 invoked by uid 500); 4 May 2012 14:30:25 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 63337 invoked by uid 99); 4 May 2012 14:30:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 14:30:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heavy@ungoverned.org designates 209.85.213.49 as permitted sender) Received: from [209.85.213.49] (HELO mail-yw0-f49.google.com) (209.85.213.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 14:30:17 +0000 Received: by yhjj52 with SMTP id j52so3819862yhj.22 for ; Fri, 04 May 2012 07:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=wgYxkzzyv0WTGhRgGVj1v74nkC59JAzCLk9+S+uhlcY=; b=V5CK0YQlZ3r2njvGIt4ScTZ+mAPj2Y+gFT8iT0OrK6bUs/KjCZihlMgeqBZAWQzJ0P zK9Y6QMgEctcU42pZrxosO+kc66Tm3t7Lgb89S3dflFc1W+CmjPIe0p6WDpv3AVZpMK5 Vu0po1iNjePg0gJGv0Fp8lBebCG2PlPigMZmoK+QheRmqiNz8x8Vh4KNnFQxg1oyCnaa 1GF3a8IUBKP856808sg/CfsRcrDRlMXuwvhypLVOU8R1PR9opa2tm7WHMuytYIUzKpv4 MTCHllmrTKLfFQlGzEMGC0cLFeIOynJliD/Co/ed7tEeGhPuP9vRCOXXWPGc4Y2gguEy bwgQ== Received: by 10.60.169.174 with SMTP id af14mr8688223oec.13.1336141796234; Fri, 04 May 2012 07:29:56 -0700 (PDT) Received: from Richard-S-Halls-iMac.local (adsl-99-62-222-230.dsl.sgnwmi.sbcglobal.net. [99.62.222.230]) by mx.google.com with ESMTPS id d6sm7374095oeh.3.2012.05.04.07.29.55 (version=SSLv3 cipher=OTHER); Fri, 04 May 2012 07:29:55 -0700 (PDT) Message-ID: <4FA3E7E2.4050805@ungoverned.org> Date: Fri, 04 May 2012 10:29:54 -0400 From: "Richard S. Hall" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: Felix autodeploy with several directories References: <4F88375C.6030408@artenum.com> <4F883995.1030300@ungoverned.org> <4F883FE0.3080203@artenum.com> <4F8BE8D7.6070106@artenum.com> <4FA3DE28.9010607@artenum.com> In-Reply-To: <4FA3DE28.9010607@artenum.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQmrNMZi3VJFdfLT8CzfBikJa5S1ZH3bcgqf/mlnQveibGutiIksEQadVIWlDUiqk9sjIJUF X-Virus-Checked: Checked by ClamAV on apache.org It sounds like you are causing the Gogo shell bundle to be refreshed or something...not sure why. -> richard On 5/4/12 09:48 , Beno�t Thi�bault wrote: > Hi everyone, > > I left my question of bundle auto-deployment with FileInstall aside > for some time, even though I couldn't make it work. > > I am now back on the problem and found why FileInstall did not work. I > did not have the ConfigAdmin bundle and it seemed this prevented > FileInstall from working correctly. > > But now, FileInstall has a very strange behaviour: > > I indicated a ./lib folder to FileInstall in which I put a sun.reflect > bundle. I also increased the log level felix.fileinstall.log.level to > 4 and left other settings to default. > > When Felix starts, I have the usual gogo command prompt. When I type > "lb", I see all the bundles in the bundle directory are installed, but > not the one in the ./lib directory. > > After 2 seconds (the default watch period of FileInstall), the bundle > in the ./lib directory is loaded, but the gogo prompt appears again. > And when I type "lb", everything crashes... What happened? > > Here is the full console output: > > {felix.fileinstall.poll (ms) = 2000, felix.fileinstall.dir = > /home/ben/dev/IME/Felix-4.0.2/./lib, felix.fileinstall.log.level = 4, > felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = > /tmp/fileinstall-6181262646369158171, felix.fileinstall.filter = null, > felix.fileinstall.start.level = 0} > [WARNING] org.apache.felix.ipojo.arch.gogo.Arch : The specification > org.apache.felix.ipojo.arch.gogo.Arch is not implemented by > org.apache.felix.ipojo.arch.gogo.Arch it might be a superclass or the > class itself. > ____________________________ > Welcome to Apache Felix Gogo > > g! lb > START LEVEL 1 > ID|State |Level|Name > 0|Active | 0|System Bundle (4.0.2) > 1|Resolved | 1|Bundle exporting com.sun.awt classes (1.0.0) > 2|Resolved | 1|Bundle exporting Sun's JPEG classes (1.0.0) > 3|Active | 1|Servlet API Bundle (3.0.0.v201103241727) > 4|Active | 1|jython (0.0.0) > 5|Active | 1|Apache Jakarta log4j Plug-in > (1.2.15.v201012070815) > 6|Active | 1|Apache Commons Logging Plug-in > (1.1.1.v201101211721) > 7|Active | 1|Apache Felix Bundle Repository (1.6.6) > 8|Active | 1|Apache Felix Configuration Admin Service (1.2.8) > 9|Active | 1|Apache Felix File Install (3.2.0) > 10|Active | 1|Apache Felix Gogo Command (0.12.0) > 11|Active | 1|Apache Felix Gogo Runtime (0.10.0) > 12|Active | 1|Apache Felix Gogo Shell (0.10.0) > 13|Active | 1|Apache Felix iPOJO (1.8.0) > 14|Active | 1|Apache Felix iPOJO Gogo Command (1.0.1) > 15|Resolved | 1|Bundle exporting sun.misc classes (1.0.0) > g! Installed /home/ben/dev/IME/Felix-4.0.2/lib/sun.reflect-1.0.0.jar > {felix.fileinstall.poll (ms) = 2000, felix.fileinstall.dir = > /home/ben/dev/IME/Felix-4.0.2/./lib, felix.fileinstall.log.level = 4, > felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = > /tmp/fileinstall-7939584661433319533, felix.fileinstall.filter = null, > felix.fileinstall.start.level = 0} > [WARNING] org.apache.felix.ipojo.arch.gogo.Arch : The specification > org.apache.felix.ipojo.arch.gogo.Arch is not implemented by > org.apache.felix.ipojo.arch.gogo.Arch it might be a superclass or the > class itself. > ____________________________ > Welcome to Apache Felix Gogo > > g! lb > gosh: java.lang.IllegalStateException: session is closed > gogo: IllegalStateException: Invalid BundleContext. > java.lang.IllegalStateException: Invalid BundleContext.gosh: stopping > framework > > at > org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514) > at > org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:173) > at org.apache.felix.gogo.shell.Shell.shutdown(Shell.java:183) > at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:170) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) > at > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) > at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) > at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) > at > org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) > at org.apache.felix.gogo.shell.Activator.run(Activator.java:75) > at java.lang.Thread.run(Thread.java:662) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org