Re: OpenJPA connection issue with Karaf 4.0.x

2017-06-29 Thread Tim McCaskill
For a better look at my code to my sample bundle, I have uploaded it to bitbucket https://bitbucket.org/tmccask/audit_tester -- View this message in context: http://karaf.922171.n3.nabble.com/OpenJPA-connection-issue-with-Karaf-4-0-x-tp4050887p4050888.html Sent from the Karaf - User mailing

OpenJPA connection issue with Karaf 4.0.x

2017-06-29 Thread Tim McCaskill
I'm trying to get an application running on ServiceMix 7.0.1 which has Karaf 4.0.9 but I cannot get the entity manager to populate. I keep bashing my head against it, but getting nowhere. And web searches for this error are very slim and haven't helped me much. I have a simple case built that

CommandSessionHolder.getSession() no longer works after upgrade to Karaf 4

2017-06-29 Thread Martin Lichtin
Trying to port a Completer (using the deprecated interface) to Karaf 4. The code calls CommandSessionHolder.getSession(), unfortunately that no longer returns the session. Is there an alternative way to access the Felix CommandSession in an old-style Completer?

Re: Conditional Features and capabilities

2017-06-29 Thread jeremie.bre...@gmail.com
Thanks ! On 2017-06-29 14:57 (+0200), Guillaume Nodet wrote: > Actually, requirements are supported in conditionals. > You need to prepend "req:" in front of the requirement, see the following > example: > >

Re: Conditional Features and capabilities

2017-06-29 Thread Guillaume Nodet
Actually, requirements are supported in conditionals. You need to prepend "req:" in front of the requirement, see the following example: https://github.com/apache/karaf/blob/master/assemblies/features/standard/src/main/feature/feature.xml#L267 Guillaume 2017-06-29 14:55 GMT+02:00

Conditional Features and capabilities

2017-06-29 Thread jeremie.bre...@gmail.com
Hi, I have two features implementing the same capability (and I can only install one of both - For example a capability "database" and two features, "derby" and "H2"). I have also a third feature, "web-user-interface", and I want that, when this feature and the capability defined earler are

Transaction Problem on Hibernate 5

2017-06-29 Thread Jeongpil An
Hi, Karaf Users and Developers! I'm using Hibernate 4.3.11 on Karaf 4.0.6, because Hibernate 5.2.0 is not worked well. ( It still be same on Karaf 4.1.1 and hibernate 5.2.8) It seems that Hibernate 5.2.0 doesn't support transaction completion on Karaf 4, in case of method call between

Antw: Using maven bundle plugin to compile and bundle code not in src/main/java

2017-06-29 Thread alexander.sahler
Hello Tom. It's nothing to do with the bundle plugin at all. All you have to do is to set the sourceDirectory tag in the pom file (as subnode of build node). Please have a look here: https://maven.apache.org/guides/mini/guide-using-one-source-directory.html