You found a bug. I change to DomainArtifactClassLoaderRepository which keeps track of the created domains class loaders and avoids creating duplicated.