lucee's bundled felix version does not support jrt protocol

Description

We are in the process of upgrading from jdk 8 --> jdk 11 and encountered a compatibility issue with an Apache Felix dependency embedded in 5.3.x Lucee jar. (exception below)

JDK 9 and up introduced a new way of loading resources, including the JRT protocol. Apache Felix Framework version 6.0.1 currently has a bug that doesn't support JRT within its url handling code (without add-opens flag), but has fixed this issue in 6.0.2. See https://issues.apache.org/jira/browse/FELIX-6035?jql=project%20%3D%20FELIX%20AND%20fixVersion%20%3D%20framework-6.0.2

Unfortunately, all Lucee 5.3.x jars include 6.0.1 Apache Felix classes within it making it impossible to exclude and rely on the later version in our app. In order to support JRT, would love if Lucee would either upgrade to the JRT supported version of Apache Felix or rip it out allowing clients to choose the required compatible version

Cheers, casey yancey

Exception:

java.lang.IllegalStateException: Unknown protocol: jrt
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalForm(URLHandlersStreamHandlerProxy.java:482) ~[lucee-5.3.1.94-RC.jar:?]
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalForm(URLHandlersStreamHandlerProxy.java:474) ~[lucee-5.3.1.94-RC.jar:?]
at java.base/java.net.URL.toExternalForm(URL.java:1001) ~[?:?]
at java.base/java.net.URL.toString(URL.java:987) ~[?:?]
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:267) ~[lucee-5.3.1.94-RC.jar:?]
at java.base/java.net.URL.openConnection(URL.java:1051) ~[?:?]
at java.base/java.net.URL.openStream(URL.java:1117) ~[?:?]
at java.base/java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1738) ~[?:?]

Environment

Open JDK 11.0.2 (we are testing it out, currently production is jdk 8)
Lucee 5.3.1.94-RC in our production (but also problem with latest release 5.3.1.102)

Status

Assignee

Unassigned

Reporter

Casey Yancey

Labels

None

Fix versions

Affects versions

5.3.1.102
5.3.1.94

Priority

New