karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yperey <yann.pe...@nagra.com>
Subject Re: Eclipselink + Karaf + Oracle JDBC: Help required
Date Tue, 15 Oct 2013 08:00:05 GMT
Thanks nseb, you are right.

In fact there are several errors there. The first one is to try to use the
EclipseLink 2.5.0 packages within Karaf as it would require the
javax.persistence package 2.1.0 (JPA implementation) which would enter in
conflict with the already existing one (Aries) which implements the 2.0
version of the JPA specification.

So first correction uninstall the specified Eclipselink needed packages:

>osgi:install -s mvn:org.eclipse.persistence/javax.persistence/2.1.0
>osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/2.5.0
>osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.asm/2.5.0
>osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.5.0
>osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/2.5.0
>osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.5.0

and install these one instead:
osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.asm/2.4.2
osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/2.4.2
osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/2.4.2
osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.4.2
osgi:install -s
mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.4.2

Then an Eclipselink adaptor has to be created to register manually an OSGI
service to specify the ExclipseLink's persistence provider implementation
(thanks to lbu:
[url]htp://karaf.922171.n3.nabble.com/Karaf-OSGi-Web-Service-with-EclipseLink-No-Persistence-provider-td4028199.html[/url])

and finally I was having a package import/export issue as the API of the
service was in the same package but from another bundle as the
implementation class.

These three points have solved my issue. 





--
View this message in context: http://karaf.922171.n3.nabble.com/Eclipselink-Karaf-Oracle-JDBC-Help-required-tp4029928p4029950.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Mime
View raw message