I've encountered something similar to what you're facing now. I'm not quite
certain what caused the bundle not starting but IIRC I think the Dao bundle
in grace period is resolved after trying with several different hibernate
versions.

I wish I could be more of help.

Regards, Allan.

Sent from Gmail mobile.

On 8 Jun 2017 18:40, "Jack" <[email protected]> wrote:

No error in the logs, but the status of the bundle shows "Grace Period"

Below is my blueprint file

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
           xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0";
           xmlns:tx="http://aries.apache.org/xmlns/transactions/v2.0.0";
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
           http://aries.apache.org/xmlns/jpa/v2.0.0
           http://aries.apache.org/xmlns/transactions/v2.0.0";>


    <jpa:enable/>
    <tx:enable/>

        <bean id="storeDaoImpl" class="com.data.dao.impl.StoreDaoImpl" >
         <jpa:context property="entityManager" unitname="toshibarma"/>
        <tx:transaction method="*" value="Required"/>
        </bean>

        <service id="storeDao" ref="storeDaoImpl"
interface="com.rma.data.dao.StoreDao" />

</blueprint>



--
View this message in context: http://karaf.922171.n3.nabble.
com/Hibernate-JPA-and-Karaf-4-tp4050569p4050614.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to