Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-7437

Active mq web console error in karaf with java.security.policy

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.15.11
    • Fix Version/s: None
    • Component/s: Web Console
    • Labels:
      None
    • Environment:

      (Docker) java: amazoncorretto:8u242

      Activemq : 5.15.11

      Karaf: 4.2.8

      Pax-web-features: 7.3.6 (Overwritten repo)

      Spring: 5.1.9.RELEASE_1 (using classpath xsd url in activemq.xml)

      Camel :  2.22.1

       

      Description

      Running karaf with java.security.policy=${karaf.etc}/all.policy (preset in system properties, just uncommented) i get a stacktrace when accessing activemq web console. 

       

      Contents of all.policy(removed license for readability):

      grant

      { permission java.security.AllPermission; }

      ;

       

      I need to have the java security manager active because our applicaties still relies on RMI and the RMIClassloader won't work without a securitymanager. Unfortunately for the web console i get this exception:

      java.security.AccessControlException: access denied ("javax.security.auth.AuthPermission" "getSubject")

       

      I added a text file with the full stack trace. I am unsure in which component the problem lies, but the rest of karaf seems to work.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wborgesius Willem Borgesius

              Dates

              • Created:
                Updated:

                Issue deployment