Hi all, I am having issues getting a very simple JPA example running, and I am out of ideas on where to head next.
I pretty much have the same problem described here: http://karaf.922171.n3.nabble.com/JPA-with-Karaf-td4031000.html The posts there suggest it should be fixed with 3.0.1 (which I am using), but it does not appear to be. The very odd thing is that I did get it working once, but now it's broken again and I don't know why. I've installed the following features, transaction,jpa,openjpa,jndi, and jdbc. I can connect to the database through the JDBC commands and all of that is working just fine. My bundle will not start though. Here are the log messages I get when installing my bundle: 2014-04-15 16:11:28,366 | WARN | Local user karaf | container | 114 - org.apache.aries.jpa.container - 1.0.0 | There are no providers available. 2014-04-15 16:11:28,367 | INFO | Local user karaf | Activator | 244 - com.pww.test.demo - 1.0.0.SNAPSHOT | Hello updated!! 2014-04-15 16:11:28,372 | INFO | Local user karaf | BlueprintContainerImpl | 19 - org.apache.aries.blueprint.core - 1.4.0 | Bundle com.pww.test.demo is waiting for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name =test))(objectClass=javax.persistence.EntityManagerFactory))] 2014-04-15 16:11:28,373 | WARN | Local user karaf | container | 114 - org.apache.aries.jpa.container - 1.0.0 | There are no providers available. and the out of running `ls | grep persistence`: karaf@root(jdbc)> ls | grep persistence [javax.persistence.spi.PersistenceProvider] javax.persistence.provider = org.apache.openjpa.persistence.PersistenceProviderImpl javax.persistence.spi.PersistenceProvider = org.apache.openjpa.persistence.PersistenceProviderImpl Not really sure what to look at next. Any thoughts or ideas would be great. Thanks!
