Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Jean-Baptiste Onofré
Hi Alex, I don't think it's a good idea to update only SCR without updating other part of Karaf (ClassNotFoundException seems to come from a compendium package). I strongly recommend to focus on the current 4.2.0 distribution and clearly list the issue to me: I will add a sample (eventuall

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Tim Ward
That actually doesn’t look like a fatal exception, all that’s happening is that Metatype is unable to retrieve the ManagedService from SCR. It may indicate a problem down the line with receiving config though. Tim Sent from my iPhone > On 19 May 2018, at 03:36, David Jencks wrote: > > Mayb

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread David Jencks
Maybe try upgrading config admin also? There are a lot of new capabilities ds takes advantage of. David Jencks Sent from my iPhone > On May 18, 2018, at 11:07 AM, Alex Soto wrote: > > Tried adding Felix SCR 2.1.0, but it looks like it is not as simple: > > org.osgi.framework.ServiceExceptio

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Alex Soto
Tried adding Felix SCR 2.1.0, but it looks like it is not as simple: org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/cm/ManagedService at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:352) ~[?:?]

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Alex Soto
Hi JB, Which branch, I’d like to try it. Best regards, Alex soto > On May 18, 2018, at 12:46 PM, Jean-Baptiste Onofré wrote: > > 4.2.1-SNAPSHOT already updated to DS 1.4 (SCR 2.1.0) (ready on one of my > branch). > > Regards > JB > > On 18/05/2018 17:50, Alex Soto wrote: >> Great, I solv

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Jean-Baptiste Onofré
4.2.1-SNAPSHOT already updated to DS 1.4 (SCR 2.1.0) (ready on one of my branch). Regards JB On 18/05/2018 17:50, Alex Soto wrote: Great, I solved the Eclipse problem.  Thanks. Yes, Karaf provides DS 1.3,  but no DS 1.4 out off the box. Maybe this is available from Aries? Best regards, Alex

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Tim Ward
This is the one you want https://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.scr/2.1.0 1.4 is backward compatible with 1.3 so it should be possible to just do a drop-in replacement. Tim Sent from my iPhone > On 18 May 2018, at 17:50, Alex Soto wrote: > > Great, I solved th

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Alex Soto
Great, I solved the Eclipse problem. Thanks. Yes, Karaf provides DS 1.3, but no DS 1.4 out off the box. Maybe this is available from Aries? Best regards, Alex soto > On May 18, 2018, at 11:18 AM, Tim Ward wrote: > > Hi, > > Answers inline: > > Sent from my iPhone > > On 18 May 2018, at

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Tim Ward
Hi, Answers inline: Sent from my iPhone > On 18 May 2018, at 16:55, Alex Soto wrote: > > Thank you Tim for the very detailed explanation. > There are two problems I don’t know how to resolve: > > 1- BND generates this for my bundle: > > Require-Capability: > osgi.extender;f

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Alex Soto
Actually, BND is adding two Require-Capabiility entries for osgi.component with different versions: Require-Capability osgi.extender;filter:="(&(osgi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0)))",osgi.service;filter:="(objectClass=org.osgi.service.transactio

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Alex Soto
Thank you Tim for the very detailed explanation. There are two problems I don’t know how to resolve: 1- BND generates this for my bundle: Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0)))” This is because I

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread Tim Ward
Hi Alex, The bundles you need are listed in the bndrun for the JPA version of the enRoute application, but as I think you’re using OpenJPA (rather than Hibernate) it may help to explain things in relation to the Transaction Control JPA integration test for OpenJPA. I’m sure that at least some o