Seems the error is being thrown by the Karaf Shell. I've never created any shell commands, so I'm not sure if there is an issue with that. You could try by making just a simple pojo with the entity manager injected and remove any references to the karaf shell (including your maven manifest). This might not help, but since you've had this problem for over a week, I'd be inclined to work with the bare minimum.
Before doing what I've suggested, can you confirm your features file has the following: <feature>transaction</feature> <feature>jndi</feature> <feature>jdbc</feature> <feature>pax-jdbc-h2</feature> <feature>pax-jdbc-pool-dbcp2</feature> <feature>pax-jdbc-config</feature> <feature>jpa</feature> <feature>hibernate-orm</feature> Secondly, can you run the following command in karaf: service:list DataSource The logs showed the source being registered, but I just want to double check. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050647.html Sent from the Karaf - User mailing list archive at Nabble.com.
