Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Thank for all I'm running karaf pltaform like servicemix 4.0 I.E. karaf 2.2.2 and camel 2.8.1 and camel-jpa 2.8.1 define Apache ServiceMix :: Specs :: Java Persistence API 1.4 (1.8.0) not Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) I've defined a hermes-jpa features initialy for jpa jndi transaction camel-jap and all other dependencies required. I've changed it to it just a remplacement of camel-jap without org.apache.servicemix.bundles/org.apache.servicemix.bundles.openjpa/1.2.1_2 and mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.java-persistence-api-1.1.1/1.8.0 and with jpa jndi transaction and mvn:org.apache.openjpa/openjpa/2.1.1 this work perfectly thank A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5723049.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Hello! Camel use the "Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1)" bundle in its camel-jpa component [1] too. [1] https://svn.apache.org/repos/asf/camel/trunk/platforms/karaf/features/src/main/resources/features.xml Best, Christian On Tue, Nov 20, 2012 at 10:02 AM, sekaijin wrote: > Hello, > I tried the opposite: > uninstall > Apache ServiceMix :: Specs :: Java Persistence API 1.4 (1.8.0) > insatall > Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) and > > It works > > Now I have to find out which feature install Apache ServiceMix :: Specs :: > Java Persistence API > > A + JYT > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722992.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Sounds good. You can do cat on the mvn: urls of the repos and grep for the bundle uri. Christian On 11/20/2012 10:02 AM, sekaijin wrote: > Hello, > I tried the opposite: > uninstall > Apache ServiceMix :: Specs :: Java Persistence API 1.4 (1.8.0) > insatall > Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) and > > It works > > Now I have to find out which feature install Apache ServiceMix :: Specs :: > Java Persistence API > > A + JYT > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722992.html > Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Hello, I tried the opposite: uninstall Apache ServiceMix :: Specs :: Java Persistence API 1.4 (1.8.0) insatall Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) and It works Now I have to find out which feature install Apache ServiceMix :: Specs :: Java Persistence API A + JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722992.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Hello, I'd actually several versions of JPA in bundles I uninstalled Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) but this does not change. thank A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722991.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
could you execute: exports | grep "javax.persistence.spi" What do you see? Best, Christian On Mon, Nov 19, 2012 at 6:23 PM, sekaijin wrote: > thank you, > I deleted everything > I redémaré Karaf > > > the feature [installed ] [1.0.2-SNAPSHOT] camel-activemq hermes > is > activemq > camel-jms > activemq-blueprint > activemq-camel > th feature [installed ] [1.0.2-SNAPSHOT] hermes-ressources hermes > is > wrap:mvn:ojdbc/ojdbc/14 > mvn:commons-lang/commons-lang/2.6 > mvn:org.apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2 > mvn:org.apache.geronimo.specs/geronimo-stax-api_1.0_spec/1.0.1 > wrap:mvn:c3p0/c3p0/0.9.1.2 > wrap:mvn:net.jcip/jcip-annotations/1.0 > blueprint:file:etc/activemq-broker.xml > blueprint:file:etc/hermesDataSources.xml > blueprint:file:etc/suiviDataSource.xml > blueprint:file:etc/transcoDataSource.xml > the feature [installed ] [1.0.2-SNAPSHOT] hermes-bdd hermes > is > camel-jap > and lib with facilities > I installed: > > features:install jpa jndi transaction > install -s mvn:commons-collections/commons-collections/3.2.1 > install -s mvn:commons-pool/commons-pool/1.5.4 > install -s mvn:commons-dbcp/commons-dbcp/1.4 > install -s mvn:commons-lang/commons-lang/2.6 > install -s wrap:mvn:net.sourceforge.serp/serp/1.13.1 > install -s mvn:org.apache.openjpa/openjpa/2.1.1 > > install -s mvn:org.apache.aries/org.apache.aries.util/0.4 > install -s mvn:net.lr.tutorial.karaf.cameljpa/jpa2jms/1.0-SNAPSHOT > > I have no other bundle > and the same exception > > A+JYT > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722964.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
thank you, I deleted everything I redémaré Karaf the feature [installed ] [1.0.2-SNAPSHOT] camel-activemq hermes is activemq camel-jms activemq-blueprint activemq-camel th feature [installed ] [1.0.2-SNAPSHOT] hermes-ressources hermes is wrap:mvn:ojdbc/ojdbc/14 mvn:commons-lang/commons-lang/2.6 mvn:org.apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2 mvn:org.apache.geronimo.specs/geronimo-stax-api_1.0_spec/1.0.1 wrap:mvn:c3p0/c3p0/0.9.1.2 wrap:mvn:net.jcip/jcip-annotations/1.0 blueprint:file:etc/activemq-broker.xml blueprint:file:etc/hermesDataSources.xml blueprint:file:etc/suiviDataSource.xml blueprint:file:etc/transcoDataSource.xml the feature [installed ] [1.0.2-SNAPSHOT] hermes-bdd hermes is camel-jap and lib with facilities I installed: features:install jpa jndi transaction install -s mvn:commons-collections/commons-collections/3.2.1 install -s mvn:commons-pool/commons-pool/1.5.4 install -s mvn:commons-dbcp/commons-dbcp/1.4 install -s mvn:commons-lang/commons-lang/2.6 install -s wrap:mvn:net.sourceforge.serp/serp/1.13.1 install -s mvn:org.apache.openjpa/openjpa/2.1.1 install -s mvn:org.apache.aries/org.apache.aries.util/0.4 install -s mvn:net.lr.tutorial.karaf.cameljpa/jpa2jms/1.0-SNAPSHOT I have no other bundle and the same exception A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958p5722964.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem
Hi, the exception Caused by: java.lang.ClassCastException: org.apache.openjpa.persistence.PersistenceProviderImpl cannot be cast to javax.persistence.spi.PersistenceProvider typically means that you have two interfaces PeristenceProvider on your classpath. So either there are two bundles that export this package or you have the package exported by jre.properties and by a bundle. Christian On 11/19/2012 04:51 PM, sekaijin wrote: > Hello, > I did the tutorial christian with many dificultées. > > Thank you because it is clear. > My goal is to make a bundle jms2jpa with a model with many relationship. I > had a lot of pb to get it to work. > > I tried many solutions found on the net and I got to do work. > I intended to recover the historical Karaf list of features and bundles that > I have installed. but I had an OutOfMemory and I lost history > the platform does not rebooting I returned to zero by following step by step > tutorial. > > but it does not work with JPA > the list of deployed bundles > > the error is > I think I'm missing a bundle but I do not find that > thank to help me > A+JYT > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-tp5722958.html > Sent from the Camel - Users mailing list archive at Nabble.com.