Hi,

I have a system with the following setup. 
Producer application that sends JMS messages and a consumer application that
receives those message and extracts some information. Consumer then persists
the extracted information in database. I am using OpenJPA with Postgres as
my persistence layer. 

Everything works fine when I install the applications (producer and
consumer) as OSGi bundles in Karaf. When I exit Karaf and start it again,
the bundles are active again. Producer is again sending message and the
consumer receives those message but this time it cannot store the message in
database. I am getting the following exceptions: 



The error says, the entity classes are not enhanced. But in the maven
configuration of the bundle that provides entites, I have the following
plugin for enhancement:



Since the persistence works without any problem on the first installation
and fails after restarting karaf, I believe this is something to do with
bundle start order. In the persistence.xml, adding or removing the following
properties does not solve the problem either


Please let me out here to trace the problem source or how to fix it.

Thank you.
Rakesh



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Persisting-based-on-OpenJPA-fails-after-karaf-restart-tp4026857.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to