Hi,

as the persistence.xml defines the entity, it has to be in the same classloader.
So, it has to be in the bundle, or the bundle containing the persistence.xml
should import the package containing the entities (from the other bundle).

Regards
JB

On 03/26/2018 04:27 PM, GFO wrote:
> Hello JB,
> 
> 
> Here is a zip of my project which reproduces the error:
> https://ufile.io/fb27x. Can you have a look?
> 
> Thanks for the example, but my bundles are not structured the same way. I
> read it is a good practice to separate entites from persistence.xml. It is
> in the same bundle in your example. Which way is the better?
> 
> Thanks,
> GFO
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to