karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas_cage <conai...@gmail.com>
Subject Re: Unable to create EntityManagerFactory
Date Mon, 29 May 2017 14:08:17 GMT
I see these bundles in resolved state:

 112 | Resolved    |  80 | 1.1.1                   | geronimo-jms_1.1_spec
 119 | Resolved    |  80 | 2.0.13                  | Apache MINA Core
 123 | Resolved    |  80 | 1.9.2.1                 | Apache ServiceMix ::
Bundl
 223 | Resolved    |  80 | 1.3.0                   | ClassMate
 224 | Resolved    |  80 | 3.20.0.GA               | Javassist
 225 | Resolved    |  80 | 1.2                     | javax.interceptor API
 226 | Resolved    |  80 | 1.6.6                   | Byte Buddy (without
depend
 227 | Resolved    |  80 | 2.7.7.5                 | Apache ServiceMix ::
Bundl
 228 | Resolved    |  80 | 1.6.1.5                 | Apache ServiceMix ::
Bundl
 229 | Resolved    |  80 | 5.0.1.Final             |
hibernate-commons-annotati
 230 | Resolved    |  80 | 5.2.8.Final             | hibernate-core
 232 | Resolved    |  80 | 5.2.8.Final             | hibernate-osgi
 233 | Resolved    |  80 | 2.0.3.Final             | Java Annotation Indexer
 234 | Resolved    |  80 | 3.3.0.Final             | JBoss Logging 3
 899 | Resolved    |  80 | 2.1.0.v201304241213     | Java Persistence API
2.1
 905 | Resolved    |  80 | 1.0.0.201505202023      |
org.osgi:org.osgi.service.


When I try to create the EntityManagerFactory, I get below exception

Exception occurred while creating entity manager :No Persistence provider
for En
tityManager named MY_PU
javax.persistence.PersistenceException: No Persistence provider for
EntityManage
r named store
        at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.
java:61)
        at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.
java:39)

Am I missing something w.r.t to PersistenceProvider/EntityManager bundle
installation (so that I can see EntityManager getting started), if that is
the case, then can you please share how to install it? Also how can I make
the status from Resolved to Active for above bundles?



--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-create-EntityManagerFactory-tp4050478p4050491.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Mime
View raw message