Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 30BE3200B50 for ; Fri, 29 Jul 2016 14:32:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2F7A0160A79; Fri, 29 Jul 2016 12:32:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 75F7F160A61 for ; Fri, 29 Jul 2016 14:32:21 +0200 (CEST) Received: (qmail 56737 invoked by uid 500); 29 Jul 2016 12:32:20 -0000 Mailing-List: contact issues-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 issues@karaf.apache.org Received: (qmail 56725 invoked by uid 99); 29 Jul 2016 12:32:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2016 12:32:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 735FB2C029E for ; Fri, 29 Jul 2016 12:32:20 +0000 (UTC) Date: Fri, 29 Jul 2016 12:32:20 +0000 (UTC) From: "Christian Schneider (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KARAF-4615) Cannot get OpenJPA 2.4.1 to work due to JPA 2.1 being installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Jul 2016 12:32:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399255#comment-15399255 ] Christian Schneider edited comment on KARAF-4615 at 7/29/16 12:31 PM: ---------------------------------------------------------------------- I finally found a way to make both hibernate 4.3 and openjpa 2.4.1 work. Of course not at the same time .. but at least at all. Just pushed a change on master .. can you test this? was (Author: chris@die-schneider.net): I finally found a way to make both hibernate 4.3 and openjpa 2.4.1 work. Of course not at the same time .. but at least at all. > Cannot get OpenJPA 2.4.1 to work due to JPA 2.1 being installed > --------------------------------------------------------------- > > Key: KARAF-4615 > URL: https://issues.apache.org/jira/browse/KARAF-4615 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.0.5 > Reporter: Bengt Rodehav > Assignee: Christian Schneider > Fix For: 4.0.6 > > > In order to use OpenJPA 2.4.1 both the "openjpa" (2.4.1) feature and the "jpa" (2.3.0) features need to be installed. > However, OpenJPA needs JPA 2.0 - it does not work with JPA 2.1. But when installing the "jpa" (2.3.0) feature, JPA 2.1 is being installed. > This has been discussed on the Karaf user list under the subject "Migrating from Karaf 2.4.1 to 4.0.5, JPA problems". > I have, as a workaround, modified the enterprise-4.0.5-features.xml, feature "jpa" (2.3.0), as follows: > * I have changed the version range for the peristence-api feature from [2.0.0,2.2.0) to [2.0.0,2.1.0). This disqualifies JPA 2.1 and instead cause JPA 2.0 to be installed. > * The JPA 2.1 bundle seemed to be providing the package org.osgi.service.jpa which is mandatory. I therefore added the following dependency: > ** mvn:org.osgi/org.osgi.service.jpa/1.0.0 > So my modified "jpa" (2.3.0) feature now looks like this: > >
JPA implementation provided by Apache Aries JPA 2.x. NB: this feature doesn't provide the JPA engine, you have to install one by yourself (OpenJPA for instance)
> transaction-api > mvn:org.osgi/org.osgi.service.jpa/1.0.0 > persistence-api > mvn:org.apache.felix/org.apache.felix.coordinator/1.0.2 > mvn:org.osgi/org.osgi.service.jdbc/1.0.0 > mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.3.0 > mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.3.0 > mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.3.0 > > aries-blueprint > mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.3.0 > >
-- This message was sent by Atlassian JIRA (v6.3.4#6332)