You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2021/02/02 23:33:00 UTC

[jira] [Resolved] (FELIX-6287) Support running on module path

     [ https://issues.apache.org/jira/browse/FELIX-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Pauls resolved FELIX-6287.
-------------------------------
    Resolution: Fixed

Done in https://github.com/apache/felix-dev/commit/bc669376c0a1a26fa8ef60854a7b458ceba2e22b.

[~puce], could you try and see if the current framework-7.1.0-SNAPSHOT and main-7.1.0-SNAPSHOT (I deployed them so either use them via maven [0] or rebuild them from GitHub) do what you would like them todo on the module path and if so let me know on this issue (and reopen it otherwise)?

[0] https://repository.apache.org/content/repositories/snapshots/org/apache/felix/org.apache.felix.framework/7.1.0-SNAPSHOT/org.apache.felix.framework-7.1.0-20210202.232326-1.jar
https://repository.apache.org/content/repositories/snapshots/org/apache/felix/org.apache.felix.main/7.1.0-SNAPSHOT/org.apache.felix.main-7.1.0-20210202.233133-1.jar

> Support running on module path
> ------------------------------
>
>                 Key: FELIX-6287
>                 URL: https://issues.apache.org/jira/browse/FELIX-6287
>             Project: Felix
>          Issue Type: Improvement
>    Affects Versions: framework-6.0.3
>            Reporter: Florian Brunner
>            Assignee: Karl Pauls
>            Priority: Major
>             Fix For: framework-7.0.2
>
>         Attachments: module-path-issue-1.txt, module-path-issue-2.txt
>
>
> Currently, when running the framework on the module path, I get the following exception:
> {code:java}
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected boolean java.net.URLStreamHandler.equals(java.net.URL,java.net.URL) accessible: module java.base does not "opens java.net" to module org.apache.felix.framework
> {code}
> and
> {code:java}
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.felix.framework.URLHandlersStreamHandlerProxy
> {code}
> Make sure the framework works properly on the module-path as well



--
This message was sent by Atlassian Jira
(v8.3.4#803005)