Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-287

The TCCL needs to be set in additional places when configuring the log manager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • Undefined

    Description

      This follows up on LOGMGR-283. Referencing the actual class should also be wrapped for cases when the static initialization may invoke a type from another module.

      An example of this would be in WildFly to create a custom handler that depends on javax.json.bind.api and org.eclipse.yasson and execute JsonBuilder.create() in a static intializater. A CNFE will be thrown because the implementation cannot be found as org.jboss.as.standalone is set as the TCCL.

      The fix is quite simple just wrapping the Class.forName() with WrappedAction.execute(Supplier).

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: