Thanks Stuart and Karl.
 
I was under the impression that a bundle had to be a Jar, I never realised that 
all that is required is the META-INF directory (thanks Stuart).
 
Karl, In the config properties URL, I put file:// not file: as the protocol :-(
 
Everything is working now, thanks guys, you've been a massive help.
 
Much appreciated,
 
Tom
 


--- On Tue, 28/10/08, Karl Pauls <[EMAIL PROTECTED]> wrote:

From: Karl Pauls <[EMAIL PROTECTED]>
Subject: Re: Unjarred Felix
To: [email protected], [EMAIL PROTECTED]
Date: Tuesday, 28 October, 2008, 11:28 AM

Well, I just tested it using felix 1.2.1 and the current trunk. It
works in both cases:

> unzip felix-1.2.1.zip
> cd felix-1.2.1
> mkdir unpack
> cd unpack
> jar -xf ../bin/felix.jar
> cd ..
> java -Dfelix.config.properties=file:conf/config.properties -cp unpack
org.apache.felix.main.Main

Welcome to Felix.
=================

Enter profile name: test_unpack

-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.2.1)
[   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.0)
->

Make sure you are in the right location when starting felix and that
your felix.config.properties does contain the correct path.

regards,

Karl

On Tue, Oct 28, 2008 at 12:13 PM, Thomas Richardson
<[EMAIL PROTECTED]> wrote:
> Hi
>
> Having set felix.config.properties, I  tried running Felix when unjarred,
and the system appears to hang, that is, after being prompted for a profile
name, no further prompt appears.
>
> The spec says the framework is represented as the system bundle, as
bundles appear to always be packaged as a Jar, I assumed that this is the reason
why Felix is packaged as a Jar. If Felix wasn't a Jar, there would be no
mainfest, no OSGi headers, and therefore it wouldn't be the system bundle.
>
> Apologies if my understanding is of this concept is completely wrong :-)
>
> Tom
>
>
>
>
>
>



-- 
Karl Pauls
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




      

Reply via email to