Hi,

Sorry I can't see the output of the jdbc:ds-list.

By the way, if jdbc:tables print your tables, you're right about your
datasource, it's probably ok ;)

But I see that your persistence unit declared in persistence.xml is
referentiel-unit but in your blueprint you want to use a persistence
unit named "my-unit".

I think your problem is here ;)

<jpa:context unitname="my-unit" property="entityManager" />

François

On 21/03/2018 15:01, GFO wrote:
> Hi,
>
> To add information to my post, I think my DataSource is really fine.
>
> Indeed, when I do: 
>
> jdbc:ds-list, I have the following result:
>
>
>
> And when I do, for example, jdbc:tables, I see tables from my Oracle DB. So
> the DataSource is OK, right?
>
> So, do you agree my problem doesn't come from DataSource? 
> But it doesn't explain the debug message I still see "The persistence unit
> referentiel-unit in bundle nsis-common-referentiel-entity/0.0.1.SNAPSHOT
> cannot be registered because no DataSourceFactory service for JDBC driver
> oracle.jdbc.driver.OracleDriver exists." and the fail of the other bundle
> which uses my entity+persistence bundle.
>
> Does the main error,
>
> Missing dependencies:
> (&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=person))(objectClass=javax.persistence.EntityManagerFactory
>
> can come from JPA problem? I saw several threads about bugs in
> AriesJPA/Hibernate/etc. in OSGi envs.
>
>
> Thanks a lot.
> GFO
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to