Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 46853 invoked from network); 30 Apr 2010 09:20:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 09:20:18 -0000 Received: (qmail 93678 invoked by uid 500); 30 Apr 2010 09:20:18 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 93607 invoked by uid 500); 30 Apr 2010 09:20:16 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 93599 invoked by uid 99); 30 Apr 2010 09:20:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 09:20:15 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=AWL,FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 09:20:10 +0000 Received: from jim.nabble.com ([192.168.236.80]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O7mNx-0005KQ-OQ for users@openjpa.apache.org; Fri, 30 Apr 2010 02:19:49 -0700 Date: Fri, 30 Apr 2010 02:19:49 -0700 (PDT) From: leoisiah To: users@openjpa.apache.org Message-ID: <1272619189715-4984650.post@n2.nabble.com> Subject: "class file for javax.persistence.TypedQuery not found" error upon upgrading from OpenJPA 1.2.x to OpenJPA 2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Good day. I tried to upgrade the OpenJPA my application is using from 1.2.x to 2.0. After changing the .jar file and reconfiguring the classpath, an error appeared upon building the application. It says: ========= cannot access javax.persistence.TypedQuery class file for javax.persistence.TypedQuery not found FetchPlan fetch = oq.getFetchPlan(); ========= The error points to my code which goes like: /***** Query q; OpenJPAQuery oq = OpenJPAPersistence.cast(q); FetchPlan fetch = oq.getFetchPlan(); // error points to this line *****/ Note that the said code works perfectly fine with OpenJPA 1.2.x. Did I miss out on something that caused the error? -- View this message in context: http://openjpa.208410.n2.nabble.com/class-file-for-javax-persistence-TypedQuery-not-found-error-upon-upgrading-from-OpenJPA-1-2-x-to-Ope0-tp4984650p4984650.html Sent from the OpenJPA Users mailing list archive at Nabble.com.