You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Müller <ch...@gmail.com> on 2012/11/19 21:25:21 UTC

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 <je...@sap.aphp.fr>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

Posted by sekaijin <je...@sap.aphp.fr>.
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

Posted by Christian Schneider <ch...@die-schneider.net>.
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

Posted by Christian Müller <ch...@gmail.com>.
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 <je...@sap.aphp.fr>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

Posted by sekaijin <je...@sap.aphp.fr>.
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

Posted by sekaijin <je...@sap.aphp.fr>.
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.