Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 79983 invoked from network); 1 Mar 2011 17:05:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 17:05:06 -0000 Received: (qmail 46524 invoked by uid 500); 1 Mar 2011 17:05:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 46107 invoked by uid 500); 1 Mar 2011 17:05:02 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 46097 invoked by uid 99); 1 Mar 2011 17:05:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 17:05:02 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 17:04:55 +0000 Received: by qwj8 with SMTP id 8so4325992qwj.32 for ; Tue, 01 Mar 2011 09:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=hcbe7usSS6ttG9MNhblBKYroIjz5XqCOGl1pDPKTt1w=; b=OII6bSQcd+QaF3MzZ5rnW+Zb2lmF5wir3Xer2d3tdHRDE+D5z8VzZikORe123kEyL+ qQ4NWwUUdJtoaBg/D6/wvdg7dZfDl6kxocxIuMDjZngUGPcMDn6fQbtloKSy7bZkZzFz TmjBt+MA6gb/Z0acuMbKhDwrLb/5oqIj2Q7fc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=wiWN9OPoz0pvpPNZzs+tyji7fD6YyGJiGfQTLZMXoTTyl/WKn1vY2hdS/ljnWt0sEk RtburOj6BfLStOd55Ia6yhiWs68vRfW4+aa6kuUCg6ZCbPgx3eMPFjwLgS4CY/LELF2L PNwH0S5cLa8fzl2SZgrRQkiXR+b785D1mUAuQ= Received: by 10.229.190.204 with SMTP id dj12mr5607817qcb.101.1298999074531; Tue, 01 Mar 2011 09:04:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.248.193 with HTTP; Tue, 1 Mar 2011 08:52:43 -0800 (PST) In-Reply-To: <1298986580498-3404931.post@n5.nabble.com> References: <1298986580498-3404931.post@n5.nabble.com> From: Claus Ibsen Date: Tue, 1 Mar 2011 17:52:43 +0100 Message-ID: Subject: Re: JPA 2 Support To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi On Tue, Mar 1, 2011 at 2:36 PM, paulf wrote: > Hi, > > Do you know when Camel will support JPA2? > No we don't have any short term plan. Is the JPA2 spec actually final yet? Fell free to create a JIRA ticket about upgrading camel-jpa to support JPA 2. I think if the spec is final we should see what it takes to do this for Camel 2.8. I assume Apache OpenJPA 2.x is JPA2 compliant so we can keep using that for unit testing. > Currently when I add in the Camel JPA dependency it causes my project to > fail as Spring Roo is using JEE6 JPA2 whearas Camel is dependent on OpenJpa > 1.2.2 (JPA1). > > When I try and run my Junit test cases (as generated by Roo) I get the > following exception:- > > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'transactionManager' defined in class path resource > [META-INF/spring/applicationContext.xml]: Cannot resolve reference to bean > 'entityManagerFactory' while setting bean property 'entityManagerFactory'; > nested exception is org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'entityManagerFactory' defined in class path > resource [META-INF/spring/applicationContext.xml]: Invocation of init method > failed; nested exception is java.lang.NoSuchMethodError: > javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode; > > I think the only way round this is to regress to an earlier version of Roo > or to just not use it at all which will be a shame. > > I am using:- > > SpringSource Tool Suite 2.5.2 > Spring Roo 1.1.1 > > thanks > > Paul. > > -- > View this message in context: http://camel.465427.n5.nabble.com/JPA-2-Support-tp3404931p3404931.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/