I am successfully running multiple bundles, that provide classes with the
same name but different versions.

However when I try to do this with classes that provide JPA managed classes,
I am getting class cast exceptions (java.lang.ClassCastException:
some.package.ManagedClass cannot be cast to some.package.ManagedClass).

My changes to run multiple versions of JPA managed classes so far are:
1) update the version of the jar that provides these classes (3.2.1 ->
4.0.0)
2) ensure it uses the 4.0.0 version of supporting jars by using
Import-Package in pom
3) change the persistence.xml to have a different persistence-unit name
(pu_mysource3 -> pu_mysource4). 
 This file has <exclude-unlisted-classes>true</exclude-unlisted-classes>

Any suggestions on additional configuration changes necessary to run
multiple versions of JPA classes?

Thanks,
Timothy




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to