From dev-return-19726-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 28 22:26:04 2011 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D5AE9C4F for ; Mon, 28 Nov 2011 22:26:04 +0000 (UTC) Received: (qmail 5820 invoked by uid 500); 28 Nov 2011 22:26:03 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 5769 invoked by uid 500); 28 Nov 2011 22:26:03 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 5689 invoked by uid 99); 28 Nov 2011 22:26:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 22:26:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 22:26:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 99A48A5E27 for ; Mon, 28 Nov 2011 22:25:40 +0000 (UTC) Date: Mon, 28 Nov 2011 22:25:40 +0000 (UTC) From: "Rick Curtis (Resolved) (JIRA)" To: dev@openjpa.apache.org Message-ID: <1142014270.19924.1322519140630.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (OPENJPA-302) PCEnhancer needs target classes on classpath MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis resolved OPENJPA-302. --------------------------------- Resolution: Fixed > PCEnhancer needs target classes on classpath > -------------------------------------------- > > Key: OPENJPA-302 > URL: https://issues.apache.org/jira/browse/OPENJPA-302 > Project: OpenJPA > Issue Type: Improvement > Components: docs > Affects Versions: 0.9.7 > Environment: Eclipse > Reporter: Carl Smotricz > Assignee: Jacob Nowosatka > Priority: Minor > Fix For: 2.2.0 > > Attachments: OPENJPA-302.patch > > > The documentation (sections 3.5.2.1, 3.12.1.2) doesn't make it clear that the classes to be enhanced need to be on the class path of the PCEnhancer application or Ant task. In an Eclipse environment, I battled for some hours to get the enhancer to work. > In my setup, the following appears to be true: > * The application needs a classpath consisting of the OpenJPA libraries as well as the java compilation destination directory for the compiled entity classes. Here's how I ran the program (as an application) under Ant: > > > > > > * As an Ant task, the taskdef needs the OpenJPA libraries on its classpath, but it does no good to include the compiled classes destination path there. Rather, the openjpa task will accept a nested classpath element, and this classpath must contain both the OpenJPA libraries and the compiled entity classes path. Here's my Ant target for this: > > > > > > > > > > > > > > > > > Hopefully augmenting the doc with some of this information will save other users some pain. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira