Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.3 Pro
-
2.03
-
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());