-
Bug
-
Resolution: Won't Do
-
Major
-
jBPM 6.3.0.Final
-
None
-
NEW
-
NEW
-
When deploying a project using JPAPlaceholderStrategy the KModuleDeploymentService fails
with "No Persistence provider for EntityManager named demo:test:1.0".
The reason is, that the persistence.xml has been loaded by the project classloader,
but KModuleDeploymentService.boostrapRuntimeEnvironmentBuilder(...) is run with a different (war module) class loader.
The error can be avoided by using the code from JPAPlaceholderStrategy's constructor
(switching the currentThread classloader with the project classloader). So that the provided persistence.xml can be located by the active classloader within the project. This again results in a new error so is probably no solution.