[
https://issues.apache.org/jira/browse/KARAF-7111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wael Megdich updated KARAF-7111:
--------------------------------
Attachment: image-2021-04-29-09-41-59-693.png
> 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: image-2021-04-29-09-34-32-977.png,
> image-2021-04-29-09-41-59-693.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.3.4#803005)