Re: openjpa 2.4.1

2016-06-14 Thread ellirael
Has anybody got a working example with OpenJPA 2.4.1? My model EntityManager is not registered as a service. My api cannot start: Error executing command: Error executing command on bundles: Error starting bundle 223: Uses constraint violation. Unable to resolve resource

openjpa/2.4.1 and jpa/2.3.0 features

2016-06-14 Thread ellirael
openjpa/2.4.1 feature depends on and installs persistence-api 2.0 featute. jpa/2.3.0 feature depends on and installs persistence-api 2.1 featute. We have two versions of persistence api. Can it be some sort of version conflict between openjpa/2.4.1 and jpa/2.3.0 features? -- View this message

Karaf 4.0.5 jdbc-config

2016-06-14 Thread conejo
I have an installation of karaf 4.0.5. I create the file etc/org.ops4j.datasource-myDS with the following information: url = jdbc:h2:file:./db/myDatabase dataSourceName = myDS osgi.jdbc.driver.name = H2-pool-xa The result is that two javax.sql.DataSource services are created with the same name =

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-06-14 Thread Timothy Ward
An optional package import is “optional” meaning that it doesn’t need to be wired by the OSGi framework for the bundle to resolve. If the package isn’t wired then there will be no classes available from that package at runtime. As I said previously. Optional packages require a lot of thought

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-06-14 Thread Debraj Manna
Thanks Timothy. Removing resolution:optional solved the issue. But any guess why resolution:optional was creating the issue.? Hi Debra, I note that there are a lot of optional package imports in the manifest snippet that you’ve provided. Optional package imports require a lot of careful

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-06-14 Thread Timothy Ward
Hi Debra, I note that there are a lot of optional package imports in the manifest snippet that you’ve provided. Optional package imports require a lot of careful management and are hard to get right. In this case it looks as though the package import is declared as optional even though it

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-06-14 Thread Debraj Manna
I am not able to make this work yet. Can some one suggest some thing what could be going wrong? On Wed, May 11, 2016 at 9:51 PM, Debraj Manna wrote: > Hi Jean, > > I am facing a similiar problem when I tried to use Afterburner from my toy > application to an actual