Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6EAB9674 for ; Fri, 24 May 2013 20:24:07 +0000 (UTC) Received: (qmail 92704 invoked by uid 500); 24 May 2013 20:24:07 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 92670 invoked by uid 500); 24 May 2013 20:24:07 -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 92658 invoked by uid 99); 24 May 2013 20:24:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 20:24:07 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of techhusky@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bk0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 20:24:03 +0000 Received: by mail-bk0-f50.google.com with SMTP id ik8so1732043bkc.23 for ; Fri, 24 May 2013 13:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kEieCiwr4PAUDhvlzKBD8EU0NDE3whsXsVK9zYUE8ys=; b=g92fVwXpmeWgU9mzS7Dk7wn0fZhKKdUISj/4Z663/ttGqc8A+6KnDlA7otK0UBZ0Zh R1ZSY74aGvguB+GrGnHTdPun9XlpslDCjeyZlT0S7dqkOpegaBfVFC2sAivZ02uZ9Jt5 fKiqxRqL/Rtzq5/RX1gpXuUvX/Yl3cF+fX9JfMM4xrbnY/kNpS4zTN3Tb7rX2ZMcSQVC g3qkrWF2TY8APN8FUPK2lDOTXI8q8VKDi8ON3vncUmeFFwJplxdt3mN30nJdtIvuS71y 46PBbhSwEqwcBssf1tjGeR9cF7mMXo5IBDRgiSO0IE6803mfvZDV7yzTHmkNDdFnEVPL 6SoA== MIME-Version: 1.0 X-Received: by 10.204.168.201 with SMTP id v9mr9621051bky.116.1369427022075; Fri, 24 May 2013 13:23:42 -0700 (PDT) Received: by 10.204.225.200 with HTTP; Fri, 24 May 2013 13:23:41 -0700 (PDT) In-Reply-To: <1369420602634-7584023.post@n2.nabble.com> References: <1369417523519-7584021.post@n2.nabble.com> <1369420602634-7584023.post@n2.nabble.com> Date: Fri, 24 May 2013 15:23:41 -0500 Message-ID: Subject: Re: FieldStrategy found From: Jeremy Bauer To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=bcaec52c66ad32935e04dd7c9371 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec52c66ad32935e04dd7c9371 Content-Type: text/plain; charset=ISO-8859-1 It looks like the strategy you've defined isn't being picked up on the annotation scan. If it were a problem related to loading your handler/strategy class, you see an exception from createEntityManager(). The most common cause is a missing OSGi bundle import. I've also seen cases where this issue is caused by having multiple copies of OpenJPA binaries in the environment, each being loaded by different classloaders. That can result in the @Strategy class being scanned by the runtime != @Strategy class used by the application. Beyond that, you might look into using the OSGi console, if possible, to determine whether your bundle is able to resolve the import. -Jeremy On Fri, May 24, 2013 at 1:36 PM, rwheeler wrote: > Sorry yes I am in OSGI enviroment. I do have > org.apache.openjpa.persistence.jdbc being imported. This is what I have > from my trace log for that particular field 39598 camel TRACE [Camel > (557-camel-32) thread #19 - timer://myTimer] openjpa.MetaData - "id" > has > mapping strategy > "org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy". > > > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/FieldStrategy-not-found-tp7584021p7584023.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > --bcaec52c66ad32935e04dd7c9371--