Hi JB, Using the sample provided by Stephen, I am able to reproduce the issue. Indeed the bundle would remain in grace period and the log is printing namespace handler for aries transaction 2.0.0. I look back into what I did, I went back to using jpa 1.0. Thanks guys, now I can update it to 2.0.
Also works for postgresql after installing pax-jdbc-postgresql. Obviously I've mixed this issue with another issue I still have, which I will start another thread. Thanks! Regards, Allan On 8 June 2017 at 20:02, Jean-Baptiste Onofré <[email protected]> wrote: > Hi Allan, > > that would be great if you can reproduce and share your project. Then, I > will take a look. > > Thanks ! > Regards > JB > > On 06/08/2017 01:55 PM, Allan C. wrote: > >> It was kind of an early setup + POC. The log files have been deleted but >> I can try to reproduce this issue with 4.0.5. No promise though. Will get >> back to you. >> >> Regards, Allan. >> >> Sent from Gmail mobile. >> >> On 8 Jun 2017 19:36, "Jean-Baptiste Onofré" <[email protected] <mailto: >> [email protected]>> wrote: >> >> You should have the cause of the grace period in the log. >> >> I bet on the namespace. Can you check that ? >> >> Regards >> JB >> >> On 06/08/2017 01:04 PM, Allan C. wrote: >> >> 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] >> <mailto:[email protected]> <mailto:[email protected] >> >> <mailto:[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 >> <http://www.osgi.org/xmlns/blueprint/v1.0.0> >> <http://www.osgi.org/xmlns/blueprint/v1.0.0 >> <http://www.osgi.org/xmlns/blueprint/v1.0.0>>" >> xmlns:jpa="http://aries.apach >> e.org/xmlns/jpa/v2.0.0 >> <http://aries.apache.org/xmlns/jpa/v2.0.0> >> <http://aries.apache.org/xmlns/jpa/v2.0.0 >> <http://aries.apache.org/xmlns/jpa/v2.0.0>>" >> xmlns:tx="http://aries.apache. >> org/xmlns/transactions/v2.0.0 >> <http://aries.apache.org/xmlns/transactions/v2.0.0> >> <http://aries.apache.org/xmlns/transactions/v2.0.0 >> <http://aries.apache.org/xmlns/transactions/v2.0.0>>" >> xmlns:xsi="http://www.w3.org/ >> 2001/XMLSchema-instance >> <http://www.w3.org/2001/XMLSchema-instance> >> <http://www.w3.org/2001/XMLSchema-instance >> <http://www.w3.org/2001/XMLSchema-instance>>" >> xsi:schemaLocation="http://www >> .osgi.org/xmlns/blueprint/v1.0.0 >> <http://www.osgi.org/xmlns/blueprint/v1.0.0> >> <http://www.osgi.org/xmlns/blueprint/v1.0.0 >> <http://www.osgi.org/xmlns/blueprint/v1.0.0>> >> https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd >> <https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd> >> <https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd >> <https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>> >> http://aries.apache.org/xmlns/jpa/v2.0.0 >> <http://aries.apache.org/xmlns/jpa/v2.0.0> >> <http://aries.apache.org/xmlns/jpa/v2.0.0 >> <http://aries.apache.org/xmlns/jpa/v2.0.0>> >> http://aries.apache.org/xmlns/transactions/v2.0.0 >> <http://aries.apache.org/xmlns/transactions/v2.0.0> >> <http://aries.apache.org/xmlns/transactions/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.St <http://com.rma.data.dao.St >> >oreDao" /> >> >> </blueprint> >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4- >> tp4050569p4050614.html >> <http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf- >> 4-tp4050569p4050614.html> >> <http://karaf.922171.n3.nabble >> .com/Hibernate-JPA-and-Karaf-4-tp4050569p4050614.html >> <http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf- >> 4-tp4050569p4050614.html>> >> Sent from the Karaf - User mailing list archive at >> Nabble.com. >> >> >> >> -- Jean-Baptiste Onofré >> [email protected] <mailto:[email protected]> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com >
