Hello. Thanks for the help. I think. I installed the JPA, transaction and Hibernate 4.3.6.Final features.
And this is my persistence.xml <? Xml version = "1.0" encoding = "UTF-8"?> <Persistence xsi: schemaLocation = "http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" xmlns = "http://java.sun.com/xml/ns/persistence" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" version = "2.0"> <Persistence-unit name = "salazarJPA" transaction-type = "JTA"> <! - OPEN JPA -> <! - Provider> org.apache.openjpa.persistence.PersistenceProviderImpl </ provider -> <! - HIBERNATE -> <Provider> org.hibernate.jpa.HibernatePersistenceProvider </ provider> <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/gestords)</jta-data-source> <Class> es.salazaryasociados.db.model.Cliente </ class> <Class> es.salazaryasociados.db.model.Documento </ class> <Class> es.salazaryasociados.db.model.Expediente </ class> <Class> es.salazaryasociados.db.model.Pago </ class> <Class> es.salazaryasociados.db.model.Responsable </ class> <Class> es.salazaryasociados.db.model.User </ class> <Class> es.salazaryasociados.db.model.Role </ class> <Validation-mode> AUTO </ validation-mode> <Properties> <! - JPA> <Property name = "openjpa.jdbc.DBDictionary" value = "hsql (SimulateLocking = true)" /> <Property name = "openjpa.jdbc.SynchronizeMappings" value = "buildSchema (ForeignKeys = true)" /> <Property name = "openjpa.Log" value = "slf4j" /> -> <! - Hibernate -> <Property name = "hibernate.dialect" value = "org.hibernate.dialect.HSQLDialect" /> <Property name = "hibernate.show_sql" value = "true" /> </ Properties> </ Persistence-unit> </ Persistence> The service is installed: 185 [es.salazar asociados.db.service.IDataService] salazarDB (168) And also the persistence unit: 200 [javax.persistence.EntityManagerFactory] salazarDB (168) -- View this message in context: http://karaf.922171.n3.nabble.com/Migration-to-Karaf-4-0-1-tp4042982p4042984.html Sent from the Karaf - User mailing list archive at Nabble.com.
