I'm experiencing similar issues on Jeode (basically 1.1.8) where
getClassLoader() is returing null.
When this is the case LogFactory.getFactory() returns a different instance of
LogFactory each time it is called. This means I cannot call setAttribute on a
LogFactory and expect future calls to getLog to use the same instance.
LogFactory uses a map ("factories") of
ClassLoader->LogFactory. Where ClassLoader == null it cannot be used as a key
in this map, therefore previously created instances are not found.
I have included a patch to fix this problem. It adds an additional static
variable "nullClassLoaderFactory" that performs the same function as the
factories map, but for cases where ClassLoader is null. If the factories map
is accessed and the ClassLoader is null this variable can be used instead.