Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-863

Security exception when security manager is enabled in Liferay portal

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.11
    • logback-core
    • None
    • java 6 / MacOSX 10.7

    Description

      I try to use logback in a portlet app with the Liferay portal, whose new version (6.2.0) let administrators set up the java security management dynamically.

      When the portlet app starts up (in the Liferay environment), the property "java.security.policy" is always null, and System.getSecurityManager() returns the current manager (null if no set, not null if set).

      Logback always breaks in PackagingDataCalculator.getCodeLocation(Class) and PackagingDataCalculator.populateFrameStack(StackTraceElementProxy[]) because it calls Class<T>.getProtectionDomain() and Class<T>.getClassLoader().

      Attachments

        Activity

          People

            logback-dev Logback dev list
            p.tran Philippe Tran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: