|
When we deploy a bundle with a persistenceUnit, the OsgiPersistenceProviderService add the bundle to the OsgiClassLoader but when the bundle is undeploy, the OsgiClassLoader is not cleared and the bundle is not removed.
So if we try to redeploy the same bundle, we have an "java.lang.IllegalArgumentException: Not an managed type" because the cache contains the old class in the classloader
|