Skip to Content
0
Former Member
Jan 11, 2012 at 02:20 PM

JPA and CAF

34 Views

Hello,

I try to use JPA to query custom data source, but my persistence.xml is overwriten by CAF, so it will use the system datasource and I will always have the exception like following.

Persistence unit 'XXXXX' requested from archive 'XXXX~caf~ejbmodule.jar' is not present in application 'XXXX~caf~ear' or is not visible to the requested archive. Resolved PU root archive path is 'null', resolved PU name is 'null'.: 

Is there any solution to enable multi-persistence unit with CAF?

Regards,

TS