2009/7/6 Karl Pauls <[email protected]>

> On Sun, Jul 5, 2009 at 6:24 PM, Jools<[email protected]> wrote:
> > Doh, yes. Should have read the message.....
> >
> > As you can tell, I'm a bit of a newbie here myself, but I recall at the
> osgi
> > conference there is an RFC for providing a standard way to laugh osgi
> > application frameworks.
> >
> > I assume Felix will be wanting something which follows this FRC ?
>
> It already implements it.
>

yes, as Karl says Felix already supports the new launching RFC

for those interested the code for the current Felix launcher is here:


http://svn.apache.org/repos/asf/felix/trunk/main/src/main/java/org/apache/felix/main/Main.java

it's relatively straightforward - but I was suggesting people might
want to look at the Felix installers subproject, which is supposed
to provide installable images of Felix (these could then make the
example bundle URLs absolute based on the install directory)

   https://svn.apache.org/repos/asf/felix/trunk/installers

IMHO fixing the installers is better than changing the launcher as
the launcher is actually doing the right thing (resolving relative
URLs based on the current working directory) so the problem is
really the relative URLs in the default Felix configuration

unfortunately, the Felix installers subproject has stalled recently
because no-one has time to maintain it - so if someone could
help out here it would be much appreciated :)

regards,
>
> Karl
>
> > --Jools
> >
> >
> > 2009/7/5 Stuart McCulloch <[email protected]>
> >
> >> 2009/7/5 Jools <[email protected]>
> >>
> >> > Hi James,
> >> >
> >> > You'll need write permissions in the directory you are executing in so
> >> that
> >> > the cache directory can be made.
> >> >
> >> > Or you can specify the bundle cache dir as the first argument to the
> >> felix
> >> > command.
> >> >
> >> > java -jar felix.jar <cachedir>
> >> >
> >>
> >> actually I think James just needs to use the following command:
> >>
> >>   java -jar bin/felix.jar
> >>
> >> from the directory above the "bin" directory - this is because the
> >> Felix launcher is basic and does not try to guess where it's been
> >> installed (you'll notice the example URLs are relative to the main
> >> Felix installation directory)
> >>
> >> [ http://felix.apache.org/site/apache-felix-usage-documentation.html ]
> >>
> >> we would like to provide an 'installer' that could update the example
> >> config file with the correct installed location, but other issues keep
> >> taking precedence - of course if someone would like to contribute
> >> a patch to provide a Felix installer (or improve the Felix launcher)
> >> feel free to attach it to a new task/feature on JIRA
> >>
> >> Alternatively, you can specify the location for the cache directory in
> the
> >> > config.properties in the ./config dir.
> >> >
> >> > Hope it helps.
> >> >
> >> > Cheers,
> >> >
> >> > --Jools
> >> >
> >> > 2009/7/5 James Carroll <[email protected]>
> >> >
> >> > > I'm trying to get started with Felix and have run into a problem
> right
> >> > > off the bat.  I downloaded the framework (the site said 1.8.1 was
> >> > > available, but 1.8.0 seems to have come down), unzipped it, and
> tried
> >> to
> >> > > start it up. Here's what I got:
> >> > >
> >> > > j...@cheyenne:~/Programs/Felix/felix-1.8.0/bin$ java -jar felix.jar
> >> > >
> >> > > Welcome to Felix.
> >> > > =================
> >> > >
> >> > > Auto-properties install: org.osgi.framework.BundleException: Unable
> to
> >> > > cache bundle: file:bundle/org.apache.felix.shell-1.2.0.jar
> >> > > Auto-properties install: org.osgi.framework.BundleException: Unable
> to
> >> > > cache bundle: file:bundle/org.apache.felix.shell.tui-1.2.0.jar
> >> > > Auto-properties install: org.osgi.framework.BundleException: Unable
> to
> >> > > cache bundle:
> file:bundle/org.apache.felix.bundlerepository-1.4.0.jar
> >> > > Auto-properties start: org.osgi.framework.BundleException: Unable to
> >> > > cache bundle: file:bundle/org.apache.felix.shell-1.2.0.jar
> >> > > Auto-properties start: org.osgi.framework.BundleException: Unable to
> >> > > cache bundle: file:bundle/org.apache.felix.shell.tui-1.2.0.jar
> >> > > Auto-properties start: org.osgi.framework.BundleException: Unable to
> >> > > cache bundle:
> file:bundle/org.apache.felix.bundlerepository-1.4.0.jar
> >> > >
> >> > >
> >> > > Being kinda new I can't say where to begin to find out how to fix
> this
> >> > > so if someone could point this noob in the right direction I would
> be
> >> > > much obliged.
> >> > >
> >> > > Thanks,
> >> > >
> >> > >
> >> > >
> >> > >
> ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: [email protected]
> >> > > For additional commands, e-mail: [email protected]
> >> > >
> >> > >
> >> >
> >>
> >> --
> >> Cheers, Stuart
> >>
> >
>
>
>
> --
> Karl Pauls
> [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Cheers, Stuart

Reply via email to