[ https://issues.apache.org/jira/browse/KARAF-7111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-7111: ---------------------------------------- Target Version/s: (was: 4.4.1, 4.3.8) > Karaf 4.3.1 Display Errors When Framework Security is enabled > ------------------------------------------------------------- > > Key: KARAF-7111 > URL: https://issues.apache.org/jira/browse/KARAF-7111 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.3.1 > Reporter: Wael Megdich > Assignee: Jean-Baptiste Onofré > Priority: Major > Attachments: bundle-12.png, image-2021-04-29-09-41-59-693.png, > image-2021-04-29-14-33-22-207.png, permission.PNG > > > Dears, > > When enabling Karaf framework-security some errors will be displayed in the > container log. > Configuration: > * Java Version: 11 > * Karaf Version: 4.3.1 > * etc/system.properties is configured as follows: > _java.security.policy==*${karaf.etc}/all.policy*_ > _org.osgi.framework.security=osgi_ > > When using Felix as OSGI framework I get this error: > _*ERROR* [FelixStartLevel] Unexpected problem calling configuration plugin > [org.osgi.service.cm.ConfigurationPlugin, id=31, > bundle=26/mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.3.1]_ > _java.security.AccessControlException: access denied > ("java.lang.RuntimePermission" > "getenv.ORG_APACHE_KARAF_COMMAND_ACL_SHELL_EXEC")_ > > When switching to Equinox, I get this one: > _*ERROR* [pipe-log:tail] Unexpected problem calling configuration plugin > [org.osgi.service.cm.ConfigurationPlugin, id=108, > bundle=26/mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.3.1]_ > _java.security.AccessControlException: access denied > ("java.lang.RuntimePermission" "getenv.ORG_OPS4J_PAX_LOGGING_COLOR_DEBUG")_ > > Please note that such configuration is working with Karaf 4.1.0 and I get > this error when upgrading to Java 11 and Karaf 4.3.1 > > Do you have any idea about the origin of the issue ? > > Thank you in advance. > Best Regards. > > Wael > -- This message was sent by Atlassian Jira (v8.20.10#820010)