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 22:51:00 UTC

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

    [ https://issues.apache.org/jira/browse/FELIX-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277514#comment-17277514 ] 

Karl Pauls commented on FELIX-6287:
-----------------------------------

Ok, [~puce] - upon reflection, I guess it would be good if the Felix framework and the main would have a module info that make it work on the module path ootb. I think there are 3 things needed for this namely,

# Add a module-info (probably should be open to allow reflection for things like gogo) - preferably in a way that it still can be compiled with java8 (I'm thinking about using moditect like in atomos)
# filter the Felix module itself for the package detection so that we don't export our own packages twice
# add support for automatic modules to the package detection

I'll have a look at that.

> 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)