>>>>> Jean-Baptiste Onofré <[email protected]>: > Karaf 4.2.6 already use the correct pax-web version (7.2.x) working with > Java 11.
> All karaf itests on Jenkins and on my machine are running with Java 11, > including the servlet and web ones. As it turns out, I may have been too clever for my own good...? :-) I thought this would be a good way to avoid eclipse warnings, independent of whether I was running on a java 8 JRE or a java 11 JRE: https://github.com/steinarb/handlereg/blob/05f067463533abba399432d25913face62986add/pom.xml#L614 Compiling with the java 11, gave me this in the require-capability header of the manifest.mf: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=11))" If I understand the explanation of osgi.ee, this means that the bundle required that all of its dependencies was fulfilled from bundles with byte code versions of java 11 or later...? In any case: removing the profile settings and always use <source>1.8</source> <target>1.8</target> got the bundle loading again.
