Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-7109

Karaf 4.3.1 Display Errors When Framework Security is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 4.3.1
    • None
    • karaf
    • None

    Description

      Dears,

       

      When enabling karaf framework-security feature and start karaf, the errors below are displayed in the log.

      • Configuration:
        • Java Version: JDK 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 Equinox as framework I get this error: ERROR [CM Configuration Updater (Update: pid=org.ops4j.pax.logging)] 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")
      • When using Felix as framework I get this one: [CM Configuration Updater (Update: pid=org.ops4j.pax.logging)] 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_OPS4J_PAX_LOGGING_COLOR_DEBUG") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:?]

      Please note, that such configuration is well working with Karaf 4.1.0 and I get this error when upgrading to Karaf 4.3.1.

       

      Do you have any idea about the cause of these errors ?

       

      Thank you in advance.

      Best Regards.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            wmegdich Wael Megdich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: