The root cause of this is that the CompositeEnhancer does not add the marker interface ManagedComposite. Because the interface is not there, there are multiple attempts to enhance the same class.