Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-2052

PropertySet Classloader issues

    XMLWordPrintable

Details

    Description

      Currently, propertysets are loaded via PropertySetManager.getInstance(name, props).

      This works for the default installation, however it will not work in the case where propertyset is deployed as an ejb, with the ofbiz propertyset deployed separately as part of the jira app (weird setup I know).

      The solution is pretty simple and will work for everyone, just change that call to use the overloaded version that also takes in a classloader, and pass in the current class' classloader.

      So in PropertyUtils.getPropertySet:

      return PropertySetManager.getInstance("ofbiz", ofbizArgs, PropertyUtils.class.getClassLoader());

      In PropertiesManager:

      PropertySet ofbizPs = PropertySetManager.getInstance("ofbiz", ofbizArgs, getClass().getClassLoader());

      Attachments

        Activity

          People

            mike@atlassian.com Mike Cannon-Brookes
            834365193cce Hani Suleiman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: