Hi Jamie When will be this Cookbook available? Is early access of this book available?
Regards Krzysztof On 16.04.2014 01:04, Jamie G. wrote: > Hi, > > The below is from the work in progress of Apache Karaf Cookbook: > > Chapter 7 :: Providing a persistence layer with Apache Aries and OpenJPA. > > Recipe 1:: Installing OpenJPA modules into Apache Karaf. > Recipe 2:: Installing Apache Aries modules into Apache Karaf. > Recipe 3:: Build a project with persistence layer for deployment in Karaf. > Recipe 4:: Build a project with persistence layer and transaction > support for deployment in Karaf. > > https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter7 > > Recipe #3 should be sufficient to get JPA working. Recipe #4 adds JTA. > > The write up to accompany the recipes will be in the forth coming books. > > Enjoy, > Jamie > > On Tue, Apr 15, 2014 at 5:56 PM, Nick Stuart <[email protected]> > wrote: >> 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! -- Krzysztof Sobkowiak JEE & OSS Architect | Technical Architect @ Capgemini Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center <http://www.pl.capgemini-sdm.com/> | Wroclaw e-mail: [email protected] <mailto:[email protected]> | Twitter: @KSobkowiak
