Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D052217FDB for ; Tue, 3 Feb 2015 17:55:47 +0000 (UTC) Received: (qmail 90533 invoked by uid 500); 3 Feb 2015 17:55:48 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 90495 invoked by uid 500); 3 Feb 2015 17:55:48 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 90484 invoked by uid 99); 3 Feb 2015 17:55:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 17:55:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [217.70.183.196] (HELO relay4-d.mail.gandi.net) (217.70.183.196) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 17:55:22 +0000 Received: from mfilter39-d.gandi.net (mfilter39-d.gandi.net [217.70.178.170]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id EA0C21720B2 for ; Tue, 3 Feb 2015 18:55:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter39-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter39-d.gandi.net (mfilter39-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id ZGnw9JQh71sn for ; Tue, 3 Feb 2015 18:54:59 +0100 (CET) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.10] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 399321720A4 for ; Tue, 3 Feb 2015 18:54:58 +0100 (CET) Message-ID: <54D10B72.5070107@nanthrax.net> Date: Tue, 03 Feb 2015 18:54:58 +0100 From: =?UTF-8?B?SmVhbi1CYXB0aXN0ZSBPbm9mcsOp?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: dev@karaf.apache.org Subject: Re: Aries JPA feature and Eclipselink conflict References: <54D0F3E5.4020002@nanthrax.net> <54D10005.1010700@nanthrax.net> <8C756173-4931-41FF-AD1B-EF9D999D0FF2@jlab.com.ar> In-Reply-To: <8C756173-4931-41FF-AD1B-EF9D999D0FF2@jlab.com.ar> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org In that case, eclipselink feature should not depend to the jpa feature=20 and install its own spec bundle (it's weird anyway ;)). Regards JB On 02/03/2015 06:34 PM, Rodrigo Serra wrote: > Hello, > > Eclipselink need they own jpa spec bundle because others eclipselink bu= ndle has direct relation with it. See here: https://bitbucket.org/rmserra= /karaf-eclipselink > > Regards, > Rodrigo > >> El 3/2/2015, a las 14:17, Giuseppe Gerla es= cribi=C3=B3: >> >> no >> if I digit the command >> karaf@root> list -t 0 | grep gero >> [ 56] [Active ] [ ] [ 30] geronimo-jta_1.1_spec (1.1= .1) >> [ 70] [Active ] [ ] [ 80] geronimo-jms_1.1_spec (1.1= .1) >> [ 95] [Active ] [ ] [ 50] geronimo-annotation_1.0_sp= ec >> (1.1.1) >> [ 96] [Active ] [ ] [ 50] >> geronimo-j2ee-management_1.1_spec (1.0.1) >> [ 115] [Active ] [ ] [ 50] >> geronimo-j2ee-connector_1.5_spec (2.0.0) >> >> >> The only JPA api bundle is hibernate 2.1 >> >> I think that the problem is in eclipselink import package >> >> Import-Package: javax.naming;resolution:=3Doptional,javax.persistence;= jp >> a=3D"2.1";version=3D"[1.1.0,2.2)",javax.persistence.criteria;jpa=3D"2.= 1";ve >> rsion=3D"[1.1.0,2.2)",javax.persistence.metamodel;jpa=3D"2.1";.... >> >> >> As you can see they specified the jpa=3D"2.1" that is not present in t= he >> export package of hibernate api: >> >> Export-Package: javax.persistence;uses:=3D"javax.persistence.metamodel= ,j >> avax.persistence.criteria,javax.persistence.spi";version=3D"2.1.0",jav= a >> x.persistence.criteria;uses:=3D"javax.persistence.metamodel,javax.pers= i >> stence";version=3D"2.1.0",javax.persistence.metamodel;version=3D"2.1.0= ",j >> avax.persistence.spi;uses:=3D"javax.persistence,javax.sql";version=3D"= 2.1 >> .0" >> >> >> Regards >> Giuseppe >> >> 2015-02-03 18:06 GMT+01:00 Jean-Baptiste Onofr=C3=A9 = : >> >>> For me, it doesn't seem related specifically to the hibernate API bun= dle, >>> but more for the version. >>> >>> So, you use the jpa 2.0 feature (using the Geronimo Spec bundle) ? >>> >>> Regards >>> JB >>> >>> >>> On 02/03/2015 06:03 PM, Giuseppe Gerla wrote: >>> >>>> I don't know if there is an EclipseLink feature. >>>> As you can see in my feature I define each bundle manually. >>>> The problem is that EclipseLink bundles don't work with hibernate ap= i. It >>>> shows this error >>>> >>>> karaf@root> ERROR: Bundle org.eclipse.persistence.jpa [130] Error >>>> starting >>>> mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.5.2 >>>> (org.osgi.framework.BundleException: Unresolved constraint in bundle >>>> org.eclipse.persistence.jpa [130]: Unable to resolve 130.0: missing >>>> requirement [130.0] osgi.wiring.package; >>>> (&(osgi.wiring.package=3Djavax.persistence)(jpa=3D2.1)(version> >>>> =3D1.1.0)(!(version>=3D2.2.0)) >>>> )) >>>> org.osgi.framework.BundleException: Unresolved constraint in bundle >>>> org.eclipse.persistence.jpa [130]: Unable to resolve 130.0: missing >>>> requirement [130.0] osgi.wiring.package; (&(osgi.wiring.package=3D >>>> javax.persistence)(jpa=3D2.1)(version>=3D1.1.0)(!(version>=3D2.2.0))= ) >>>> at >>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:40= 02) >>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:= 2045) >>>> at >>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299= ) >>>> at >>>> org.apache.felix.framework.FrameworkStartLevelImpl.run( >>>> FrameworkStartLevelImpl.java:304) >>>> at java.lang.Thread.run(Thread.java:745) >>>> >>>> >>>> Regards >>>> Giuseppe >>>> >>>> >>>> 2015-02-03 17:14 GMT+01:00 Jean-Baptiste Onofr=C3=A9 : >>>> >>>> Hi, >>>>> >>>>> we can do a conditional feature. >>>>> >>>>> The jpa feature (JPA 2.1) installs the Hibernate JPA 2.1 spec bundl= e. >>>>> >>>>> Does it mean that EclipseLink feature install its own JPA spec bund= le ? >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> >>>>> On 02/03/2015 05:10 PM, Giuseppe Gerla wrote: >>>>> >>>>> Hi all >>>>>> I need to use Aries-JPA in combination with eclipselink and mysql. >>>>>> I prepare following feature to install all dependency. >>>>>> >>>>>> >>>>>> >>>>>> transaction >>>>>> jndi >>>>>> jpa >>>>>> jms >>>>>> >>>>>> >>>>>> >>>>> start-level=3D'30'>mvn:org.apache.aries.jpa/org.apache. >>>>>> aries.jpa.eclipselink.adapter/1.0.0-SNAPSHOT >>>>>> >>>>>> mvn:org.apache.servicemix.bundles/org.apache. >>>>>> servicemix.bundles.commons-dbcp/1.4_3 >>>>>> >>>>>> mvn:mysql/mysql-connector-java/${mysql.connector.version} >>>>>> >>>>>> >>>>>> mvn:org.eclipse.persistence/javax.persistence/ >>>>>> ${jpa.eclipselink.version} >>>>>> >>>>>> mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/= ${ >>>>>> eclipselink.version} >>>>>> >>>>>> mvn:org.eclipse.persistence/org.eclipse. >>>>>> persistence.asm/${eclipselink.version} >>>>>> >>>>>> mvn:org.eclipse.persistence/org.eclipse.persistence.core/$= { >>>>>> eclipselink.version} >>>>>> >>>>>> mvn:org.eclipse.persistence/org.eclipse. >>>>>> persistence.jpa/${eclipselink.version} >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> The problem is that after the installation of this feature, I have= to >>>>>> manually uninstall >>>>>> >>>>>> mvn: org.hibernate.javax.persistence / hibernate-jpa-2.1-api / >>>>>> 1.0.0.Final >>>>>> >>>>>> contained in the jpa feature because it is in conflict with >>>>>> >>>>>> mvn: org.eclipse.persistence / javax.persistence / 2.1.0 >>>>>> >>>>>> which is necessary for EclipseLink. >>>>>> >>>>>> >>>>>> Is it possible to uninstall the hibernate bundle automatically? Is= it >>>>>> possible install jpa feature excluding hibernate bundle? >>>>>> >>>>>> >>>>>> Thanks >>>>>> Regards >>>>>> Giuseppe >>>>>> >>>>>> >>>>>> -- >>>>> Jean-Baptiste Onofr=C3=A9 >>>>> jbonofre@apache.org >>>>> http://blog.nanthrax.net >>>>> Talend - http://www.talend.com >>>>> >>>>> >>>> >>> -- >>> Jean-Baptiste Onofr=C3=A9 >>> jbonofre@apache.org >>> http://blog.nanthrax.net >>> Talend - http://www.talend.com >>> > > --=20 Jean-Baptiste Onofr=C3=A9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com