This does remind me that I keep meaning to ask if anyone knows/remembers why
the bundles are in the start levels they are and whether or not this is
necessary.... e.g. why is commons.log in start level 1 (and not 0)?

In this particular case, it seems like we should move jcr.resource into
start level 15, with the other jcr bundles.

OR...

we should get rid of start levels at all and just stick everything in 0.

In either case, I think we should use Require-Bundle to express the
dependency between servlets.get and jcr.resource. I usually don't love the
use of Require-Bundle but in this case, we need to document the dependency
somewhere (even though we recover from the error)

Justin


On Sun, Mar 28, 2010 at 4:20 AM, Ian Boston <[email protected]> wrote:

> Hi
> What us the procedure for handling unlisted bundle dependencies ?
>
> eg, servlets/get has a dependency on resources since it has a redirect.cnd
> with a super type defined in jcr/resource
>
> If servlets get loads it node types before jsr/resource the there is an
> exception, eg
> Caused by: org.apache.jackrabbit.core.nodetype.InvalidNodeTypeDefException:
> [{http://sling.apache.org/jcr/sling/1.0}Redirect<http://sling.apache.org/jcr/sling/1.0%7DRedirect>]
> invalid supertype: 
> {http://sling.apache.org/jcr/sling/1.0}Resource<http://sling.apache.org/jcr/sling/1.0%7DResource>
>
> This only happens on certain OS's since the load sequence is file system
> order dependent with disconnected bundles in the same start level. (eg its
> OK on OSX which lists directors in natural order, but not ok on ext3 which
> lists in date order iirc)
>
> and a second question.
>
> Is it possible to change, invert or randomize the start order in Felix so
> that I don't have to test startup on all the OS's I can run a VM for ?
>
>
> Ian
>
> (perhaps redirect.cnd should be in jcr/resources ? )

Reply via email to