Hi Damiano,

On Mon, 2022-12-26 at 18:57 +0100, Damiano Albani wrote:
> Hello,
> 
> It has taken me some time (weeks!) but I think I've found the
> solution to
> the problem:

(snip)

That is great to know and thanks for sharing the resolution! I took a
look at your feature model definition, and one thing that is missing
(because it's Sling-specific) is the definition of the "oak-server"
OSGi bundle [1]

That bundle bridges between the Sling world and the Oak world, and
plays a couple of classloader tricks, which I suspect have the same
effect as the bootdelegation that you perform [2].

You could review that code and check if you can apply the same patterns
in your codebase, which would allow you to do away with the boot
delegation.

Thanks,
Robert

[1]:
https://github.com/apache/sling-org-apache-sling-starter/blob/2535962ee0f3d98235ff941872bf0811d1f6cfea/src/main/features/oak/oak_base.json#L121
[2]:
https://github.com/apache/sling-org-apache-sling-jcr-oak-server/tree/master/src/main/java/org/apache/sling/jcr/oak/server/internal

Reply via email to